org.springframework.extensions.surf.support
Class DefaultPageMapper
java.lang.Object
org.springframework.extensions.surf.support.BaseFactoryBean
org.springframework.extensions.surf.support.AbstractPageMapper
org.springframework.extensions.surf.support.DefaultPageMapper
- All Implemented Interfaces:
- PageMapper
public class DefaultPageMapper
- extends AbstractPageMapper
The default Web Framework implementation of PageMapper.
The page mapper class originated as a means for mapping page
context into the request context object. When Surf originated,
it was entirely relied upon for determination of dispatch page
and context.
With Alfresco 3.3, Surf now uses Spring MVC to resolve pages
and page types. The page mapper is only relied upon to provide
additional context which may arrive in the form of request
parameters.
The following request parameter keys are defined:
f The format id
o The object id
Requests may arrive as per the following example patterns:
A simple request for a page:
/
A request for a page in a given format:
/?f=
A request for an object:
/obj/
A request for a page with an object bound into context:
/?o=
A request for a page of a specific type:
/type/
A request for a page of a specific type, with format and object binding:
/type/?f=&o=
For an empty request, a best effort is made to determine the root
page for the site.
- Author:
- muzquiano
- See Also:
RequestParameterLinkBuilder
,
DefaultLinkBuilder
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultPageMapper
public DefaultPageMapper(WebFrameworkServiceRegistry serviceRegistry)
executeMapper
public void executeMapper(RequestContext context,
javax.servlet.ServletRequest request)
throws PageMapperException
- Description copied from class:
AbstractPageMapper
- Execute mapper.
- Specified by:
executeMapper
in class AbstractPageMapper
- Parameters:
context
- the contextrequest
- the request
- Throws:
PageMapperException
- the page mapper exception
Copyright © 2009 SpringSource, Inc. All Rights Reserved.