org.springframework.extensions.surf
Interface RequestContextFactory

All Known Implementing Classes:
AbstractRequestContextFactory, DefaultRequestContextFactory

public interface RequestContextFactory

Interface for a RequestContext factory.

A request context factory is invoked by the framework at the start of the request chain. It is responsible for producing a RequestContext object which is bound to the request. The RequestContext object is a single object instance with which all downstream framework elements can consult.

The RequestContext object is scoped to the request.

Author:
muzquiano

Field Summary
static String SILENT_INIT
          Request level marker to the factory impl to perform minimum silent init on the creation of the request - this ensures no authenticated connections etc.
static String USER_ENDPOINT
          Request level marker to the factory impl to override the endpoint used to load user meta-data during the instantiation of the request context.
 
Method Summary
 RequestContext newInstance(javax.servlet.ServletRequest request)
          Produces a new RequestContext instance for a given request.
 

Field Detail

SILENT_INIT

static final String SILENT_INIT
Request level marker to the factory impl to perform minimum silent init on the creation of the request - this ensures no authenticated connections etc. are made during init

See Also:
Constant Field Values

USER_ENDPOINT

static final String USER_ENDPOINT
Request level marker to the factory impl to override the endpoint used to load user meta-data during the instantiation of the request context.

See Also:
Constant Field Values
Method Detail

newInstance

RequestContext newInstance(javax.servlet.ServletRequest request)
                           throws RequestContextException
Produces a new RequestContext instance for a given request. Always returns a new RequestContext instance - or an exception is thrown.

Returns:
The RequestContext instance
Throws:
RequestContextException


Copyright © 2009 SpringSource, Inc. All Rights Reserved.