public class ContextIDInterceptor extends Interceptor
ContextIDGenerator
Manageable.State
BOOTSTRAPPED, BOOTSTRAPPING, DEINITIALIZING, INITIALIZING, UNUSABLE, USABLE
Constructor and Description |
---|
ContextIDInterceptor() |
Modifier and Type | Method and Description |
---|---|
HttpServletRequest |
beginRequest(HttpServletRequest httpRequest) |
protected void |
bootstrapImpl(Map<String,String> properties)
Performs the bootstrap procedure (actual implementation).
|
void |
endRequest(HttpServletRequest httpRequest,
HttpServletResponse httpResponse) |
protected void |
initImpl(Map<String,String> properties)
Performs the initialization procedure (actual implementation).
|
afterCallingConvention, afterFunctionCall, beforeCallingConvention, beforeFunctionCall, getApi
assertUsable, bootstrap, deinit, deinitImpl, getState, init, isBootstrapped, isUsable
protected void bootstrapImpl(Map<String,String> properties) throws MissingRequiredPropertyException, InvalidPropertyValueException, BootstrapException
Manageable
Manageable.bootstrap(Map)
, the state and
the argument will have been checked and the state will have been set to
Manageable.BOOTSTRAPPING
.
The implementation of this method in class Manageable
is
empty.
bootstrapImpl
in class Manageable
properties
- the bootstrap properties, not null
.MissingRequiredPropertyException
- if a required property is not given.InvalidPropertyValueException
- if the value of a certain property is invalid.BootstrapException
- if the bootstrapping failed for any other reason.protected void initImpl(Map<String,String> properties) throws MissingRequiredPropertyException, InvalidPropertyValueException, InitializationException
Manageable
Manageable.init(Map)
, the state and the
argument will have been checked and the state will have been set to
Manageable.INITIALIZING
.
The implementation of this method in class Manageable
is
empty.
initImpl
in class Manageable
properties
- the initialization properties, not null
.MissingRequiredPropertyException
- if a required property is not given.InvalidPropertyValueException
- if the value of a certain property is invalid.InitializationException
- if the initialization failed, for any other reason.public HttpServletRequest beginRequest(HttpServletRequest httpRequest)
beginRequest
in class Interceptor
public void endRequest(HttpServletRequest httpRequest, HttpServletResponse httpResponse)
endRequest
in class Interceptor
See http://www.xins.org/.