Class TapestryHttpModule
-
- org.apache.tapestry5.http.modules.TapestryHttpModule
-
public final class TapestryHttpModule extends
The Tapestry module for HTTP handling classes.
-
-
Constructor Summary
Constructors Constructor Description TapestryHttpModule(PropertyShadowBuilder shadowBuilder, RequestGlobals requestGlobals, PipelineBuilder pipelineBuilder, ApplicationGlobals applicationGlobals)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
bind(ServiceBinder binder)
ApplicationInitializer
buildApplicationInitializer(org.slf4j.Logger logger, <ApplicationInitializerFilter> configuration)
Initializes the application, using a pipeline ofApplicationInitializer
s.buildHttpServletRequest()
Builds a shadow of the RequestGlobals.HTTPServletRequest property.HttpServletRequestHandler
buildHttpServletRequestHandler(org.slf4j.Logger logger, <HttpServletRequestFilter> configuration, RequestHandler handler, applicationCharset, TapestrySessionFactory sessionFactory)
buildHttpServletResponse()
Dispatcher
<Dispatcher> configuration, ChainBuilder chainBuilder)
Ordered contributions to the MasterDispatcher service allow different URL matching strategies to occur.Request
buildRequest(PropertyShadowBuilder shadowBuilder)
Builds a shadow of the RequestGlobals.request property.RequestHandler
buildRequestHandler(org.slf4j.Logger logger, <RequestFilter> configuration, Dispatcher masterDispatcher)
Response
buildResponse()
Builds a shadow of the RequestGlobals.response property.ServletApplicationInitializer
buildServletApplicationInitializer(org.slf4j.Logger logger, <ServletApplicationInitializerFilter> configuration, ApplicationInitializer initializer)
SessionPersistedObjectAnalyzer
<,SessionPersistedObjectAnalyzer> configuration, StrategyBuilder strategyBuilder)
The master SessionPersistedObjectAnalyzer.static void
,> configuration)
Contributes factory defaults that may be overridden.void
contributeHttpServletRequestHandler(OrderedConfiguration<HttpServletRequestFilter> configuration, boolean gzipCompressionEnabled, GZipFilter gzipFilter)
StoreIntoGlobals Stores the request and response intoRequestGlobals
at the start of the pipeline IgnoredPaths Identifies requests that are known (via the IgnoredPathsFilter service's configuration) to be mapped to other applications GZip Handles GZIP compression of response streams (if supported by client)static void
,SessionPersistedObjectAnalyzer> configuration)
Identifies String, Number and Boolean as immutable objects, a catch-all handler for Object (that understands theImmutableSessionPersistedObject
annotation), and a handler forOptimizedSessionPersistedObject
.
-
-
-
Constructor Detail
-
TapestryHttpModule
public TapestryHttpModule(PropertyShadowBuilder shadowBuilder, RequestGlobals requestGlobals, PipelineBuilder pipelineBuilder, ApplicationGlobals applicationGlobals)
-
-
Method Detail
-
bind
public static void bind(ServiceBinder binder)
-
contributeFactoryDefaults
public static void ,> configuration)
Contributes factory defaults that may be overridden.
-
buildRequest
public Request buildRequest(PropertyShadowBuilder shadowBuilder)
Builds a shadow of the RequestGlobals.request property. Note again that the shadow can be an ordinary singleton, even though RequestGlobals is perthread.
-
buildHttpServletRequest
public buildHttpServletRequest()
Builds a shadow of the RequestGlobals.HTTPServletRequest property. Generally, you should inject theRequest
service instead, as future version of Tapestry may operate beyond just the servlet API.
-
buildHttpServletResponse
public buildHttpServletResponse()
- Since:
- 5.1.0.0
-
buildResponse
public Response buildResponse()
Builds a shadow of the RequestGlobals.response property. Note again that the shadow can be an ordinary singleton, even though RequestGlobals is perthread.
-
buildMasterDispatcher
@Marker(Primary.class) public <Dispatcher> configuration, ChainBuilder chainBuilder)
Ordered contributions to the MasterDispatcher service allow different URL matching strategies to occur.
-
buildSessionPersistedObjectAnalyzer
@Marker(Primary.class) public <,SessionPersistedObjectAnalyzer> configuration, StrategyBuilder strategyBuilder)
The master SessionPersistedObjectAnalyzer.- Since:
- 5.1.0.0
-
contributeSessionPersistedObjectAnalyzer
public static void ,SessionPersistedObjectAnalyzer> configuration)
Identifies String, Number and Boolean as immutable objects, a catch-all handler for Object (that understands theImmutableSessionPersistedObject
annotation), and a handler forOptimizedSessionPersistedObject
.- Since:
- 5.1.0.0
-
buildApplicationInitializer
@Marker(Primary.class) public ApplicationInitializer buildApplicationInitializer(org.slf4j.Logger logger, <ApplicationInitializerFilter> configuration)
Initializes the application, using a pipeline ofApplicationInitializer
s.
-
buildHttpServletRequestHandler
public HttpServletRequestHandler buildHttpServletRequestHandler(org.slf4j.Logger logger, <HttpServletRequestFilter> configuration, @Primary RequestHandler handler, @Symbol("tapestry.charset") applicationCharset, TapestrySessionFactory sessionFactory)
-
buildRequestHandler
@Marker(Primary.class) public RequestHandler buildRequestHandler(org.slf4j.Logger logger, <RequestFilter> configuration, @Primary Dispatcher masterDispatcher)
-
buildServletApplicationInitializer
public ServletApplicationInitializer buildServletApplicationInitializer(org.slf4j.Logger logger, <ServletApplicationInitializerFilter> configuration, @Primary ApplicationInitializer initializer)
-
contributeHttpServletRequestHandler
public void contributeHttpServletRequestHandler(OrderedConfiguration<HttpServletRequestFilter> configuration, @Symbol("tapestry.gzip-compression-enabled") boolean gzipCompressionEnabled, @Autobuild GZipFilter gzipFilter)
- StoreIntoGlobals
- Stores the request and response into
RequestGlobals
at the start of the pipeline - IgnoredPaths
- Identifies requests that are known (via the IgnoredPathsFilter service's configuration) to be mapped to other applications
- GZip
- Handles GZIP compression of response streams (if supported by client)
-
-