/** * Called when a valid token is found. This method invokes the action by can be changed to do something more * interesting. * * @param invocation the action invocation * @throws Exception when any unexpected error occurs. */ protected String handleValidToken(ActionInvocation invocation) throws Exception { return invocation.invoke(); } }
public String intercept( ActionInvocation invocation ) throws Exception { // A no-op here. Work for this intereceptor is done in init(). return invocation.invoke(); } }
/** * @noinspection ProhibitedExceptionDeclared */ public String intercept( ActionInvocation invocation ) throws Exception { addActionInvocation( invocation ); return invocation.invoke(); }
/** * @see com.opensymphony.xwork.interceptor.Interceptor#intercept(com.opensymphony.xwork.ActionInvocation) */ public String intercept( ActionInvocation actionInvocation ) throws Exception { try { return actionInvocation.invoke(); } catch ( Exception e ) { // I think Exception is enough ? Throwable ? throw e; } finally { // release the action this.releaseActionQuietly( actionInvocation ); } }
/** * Intercept the incomming request and store messages into HttpSession / * retrieve messages from HttpSession / do nothing * depending on the mode this interceptor is operating in. * * @return String */ public String intercept(ActionInvocation invocation) throws Exception { _log.debug("entering MessageStoreInterceptor ..."); before(invocation); String result = invocation.invoke(); after(invocation, result); _log.debug("exit executing MessageStoreInterceptor"); return result; }
protected String handleValidToken(ActionInvocation invocation) throws Exception { // we know the token name and token must be there // ActionContext ac = invocation.getInvocationContext(); // HttpServletRequest request = (HttpServletRequest) ac.get(ServletActionContext.HTTP_REQUEST); String key = TokenHelper.getTokenName(); String token = TokenHelper.getToken(key); InvocationSessionStore.storeInvocation(key, token, invocation); return invocation.invoke(); } }
/** * S2ComponentMapをValueStackに追加します。 * */ public String intercept(ActionInvocation invocation) throws Exception { if (container == null && SingletonS2ContainerFactory.hasContainer()) { container = SingletonS2ContainerFactory.getContainer(); } Map map = new S2ComponentMap(container.getRoot()); ActionContext.getContext().getValueStack().getRoot().add(map); return invocation.invoke(); }
public String intercept(ActionInvocation invocation) throws Exception { String result = null; Map ses = ActionContext.getContext().getSession(); before(invocation); try { result = invocation.invoke(); after(invocation, result); } finally { if (ses != null) { unlock(ses); } } return result; }
return inv.invoke(); } finally { if (devMode) {
public String intercept( ActionInvocation invocation ) throws Exception { String result; try { result = invocation.invoke(); } catch ( Exception e ) { List exceptionMappings = invocation.getProxy().getConfig().getExceptionMappings(); String mappedResult = this.findResultFromExceptionMappings( exceptionMappings, e ); if ( mappedResult != null ) { result = mappedResult; if ( result.equals( IGNORE ) ) { throw e; } publishException( invocation, new ExceptionHolder( e ) ); } else { throw e; } } return result; }
return actionInvocation.invoke(); } finally { if ( actionConfig != null ) {
return invocation.invoke();