|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectAbstractInterceptor
RequestInterceptor
public abstract class RequestInterceptor
A request interceptor, which can run before and/or after a request. Request interceptors are configured in the
<request-interceptors>
element of WEB-INF/beehive-netui-config.xml.
Constructor Summary | |
---|---|
RequestInterceptor()
|
Method Summary | |
---|---|
protected void |
cancelRequest(RequestInterceptorContext context)
Cancel the request. |
void |
postInvoke(InterceptorContext context,
InterceptorChain chain)
Callback invoked after the request is processed. |
abstract void |
postRequest(RequestInterceptorContext context,
InterceptorChain chain)
Callback invoked after the request is processed. |
void |
preInvoke(InterceptorContext context,
InterceptorChain chain)
Callback invoked before the request is processed. |
abstract void |
preRequest(RequestInterceptorContext context,
InterceptorChain chain)
Callback invoked before the request is processed. |
Methods inherited from class AbstractInterceptor |
---|
getConfig, init |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RequestInterceptor()
Method Detail |
---|
public abstract void preRequest(RequestInterceptorContext context, InterceptorChain chain) throws InterceptorException
cancelRequest(org.apache.beehive.netui.pageflow.interceptor.request.RequestInterceptorContext)
may be called to
cancel further request processing. InterceptorChain.continueChain()
is called to invoke the rest of the
interceptor chain, anywhere within this method (e.g., at the end, or within a try/finally).
InterceptorException
public void preInvoke(InterceptorContext context, InterceptorChain chain) throws InterceptorException
preRequest(org.apache.beehive.netui.pageflow.interceptor.request.RequestInterceptorContext, org.apache.beehive.netui.pageflow.interceptor.InterceptorChain)
may be used instead.
context
- the interception contextchain
- the chain of interceptors
InterceptorException
- an exception thrown when an error occurs during interceptionpublic abstract void postRequest(RequestInterceptorContext context, InterceptorChain chain) throws InterceptorException
InterceptorChain.continueChain()
should be called to
invoke the rest of the interceptor chain, anywhere within this method (e.g., at the end, or within a try/finally).
InterceptorException
public void postInvoke(InterceptorContext context, InterceptorChain chain) throws InterceptorException
postRequest(org.apache.beehive.netui.pageflow.interceptor.request.RequestInterceptorContext, org.apache.beehive.netui.pageflow.interceptor.InterceptorChain)
may be used instead.
context
- the interceptor contextchain
- the chain of interceptors
InterceptorException
- an exception thrown when an error occurs during interceptionprotected void cancelRequest(RequestInterceptorContext context)
context
- the current RequestInterceptorContext.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |