public class CookieProviderInterceptor extends AbstractInterceptor implements PreResultListener
CookieProvider
You must reference this interceptor in your default stack or in action's stack, see example below.
none
<action ... > <interceptor-ref name="defaultStack"/> <interceptor-ref name="cookieProvider"/> ... </action>
PreResultListener.LegacyAdapterConditionalInterceptor.LegacyAdapter| Constructor and Description |
|---|
CookieProviderInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addCookiesToResponse(CookieProvider action,
javax.servlet.http.HttpServletResponse response)
Do what name suggests
|
void |
beforeResult(ActionInvocation invocation,
String resultCode) |
String |
intercept(ActionInvocation invocation)
Override to handle interception
|
intercept, shouldIntercept, shouldInterceptdestroy, init, setDisabledclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitadapt, beforeResultadaptadaptdestroy, initpublic String intercept(ActionInvocation invocation) throws Exception
AbstractInterceptorintercept in class AbstractInterceptorExceptionprotected void addCookiesToResponse(CookieProvider action, javax.servlet.http.HttpServletResponse response)
action - CookieProvider actionresponse - current HttpServletResponsepublic void beforeResult(ActionInvocation invocation, String resultCode)
Copyright © 2000–2025 Apache Software Foundation. All rights reserved.