Expert Spring MVC and Web Flow

(Dana P.) #1
Table 5-1.

Interfaces of the Processing Pipeline

Interface Name

Default Bean Name

Purpose

Chain

Can

Multiple?

Detect All?

org.springframework.web.servlet. handlerMapping

M

aps requests to handlers (e.g.,

Controller

s)

Yes

Yes

HandlerMappingorg.springframework.web.servlet.

none

Instance of adapter pattern, decouples

Yes

No

HandlerAdapter

handlers from the

DispatcherServlet

org.springframework.web.servlet. viewResolver

M

aps view names to view instances

Yes

Yes

ViewResolverorg.springframework.web.servlet. handlerExceptionResolver

M

ap exceptions to handlers and views

Yes

Yes

HandlerExceptionResolverorg.springframework.web.multipart. multipartResolver

St

rategy interface to handle file uploads

No

No

MultipartResolverorg.springframework.web.servlet. localeResolver

St

rategy interface for resolving the

No

No

LocaleResolver Locale

of a request

org.springframework.web.servlet. themeResolver

St

rategy interface for resolving a theme for

No

No

ThemeResolver

this request (not used directly in the DispatcherServlet

)

82 CHAPTER 5 ■THE PROCESSING PIPELINE

Free download pdf