org.springframework.extensions.surf.support
Class DefaultRequestContextFactory
java.lang.Object
org.springframework.extensions.surf.support.BaseFactory
org.springframework.extensions.surf.support.AbstractRequestContextFactory
org.springframework.extensions.surf.support.DefaultRequestContextFactory
- All Implemented Interfaces:
- org.springframework.context.ApplicationContextAware, RequestContextFactory
public class DefaultRequestContextFactory
- extends AbstractRequestContextFactory
The default Web Framework implementation of RequestContextFactory
- Author:
- muzquiano
Method Summary |
void |
initModel(RequestContext context,
javax.servlet.http.HttpServletRequest request)
Initializes the model and places it onto the request context |
RequestContext |
newInstance(javax.servlet.ServletRequest request)
Produces a new RequestContext instance for a given request. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultRequestContextFactory
public DefaultRequestContextFactory()
newInstance
public RequestContext newInstance(javax.servlet.ServletRequest request)
throws RequestContextException
- Produces a new RequestContext instance for a given request. Always returns
a RequestContext instance - or an exception is thrown.
- Specified by:
newInstance
in interface RequestContextFactory
- Specified by:
newInstance
in class AbstractRequestContextFactory
- Returns:
- The RequestContext instance
- Throws:
RequestContextException
initModel
public void initModel(RequestContext context,
javax.servlet.http.HttpServletRequest request)
throws WebFrameworkServiceException
- Initializes the model and places it onto the request context
- Parameters:
context
- request
-
- Throws:
WebFrameworkServiceException
Copyright © 2009 SpringSource, Inc. All Rights Reserved.