Jive Forums API (5.5.20.2-oracle) Developer Javadocs

com.jivesoftware.forum.action
Class JiveExceptionInterceptor

java.lang.Object
  extended by com.jivesoftware.forum.action.JiveExceptionInterceptor
All Implemented Interfaces:
com.opensymphony.xwork.interceptor.Interceptor, java.io.Serializable

public class JiveExceptionInterceptor
extends java.lang.Object
implements com.opensymphony.xwork.interceptor.Interceptor

Handles exceptions thrown by the action.

See Also:
Serialized Form

Field Summary
static java.lang.String EXCEPTION_KEY
          The action context key for the exception.
 
Constructor Summary
JiveExceptionInterceptor()
           
 
Method Summary
 void destroy()
          Does nothing.
 void init()
          Does nothing.
 java.lang.String intercept(com.opensymphony.xwork.ActionInvocation invocation)
          Returns ForumActionSupport.UNAUTHORIZED if action execution results in an unauthorized exception.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EXCEPTION_KEY

public static final java.lang.String EXCEPTION_KEY
The action context key for the exception.

See Also:
Constant Field Values
Constructor Detail

JiveExceptionInterceptor

public JiveExceptionInterceptor()
Method Detail

destroy

public void destroy()
Does nothing.

Specified by:
destroy in interface com.opensymphony.xwork.interceptor.Interceptor

init

public void init()
Does nothing.

Specified by:
init in interface com.opensymphony.xwork.interceptor.Interceptor

intercept

public java.lang.String intercept(com.opensymphony.xwork.ActionInvocation invocation)
Returns ForumActionSupport.UNAUTHORIZED if action execution results in an unauthorized exception. Will return ForumActionSupport.NOTFOUND if an ID fails to load. For any general exception, ForumActionSupport.FATAL is returned. If no exceptions result then Action.SUCCESS is returned.

Specified by:
intercept in interface com.opensymphony.xwork.interceptor.Interceptor
Parameters:
invocation - the action execution state.
Returns:
error codes or Action.SUCCESS if no errors result.

Jive Forums Project Page

Copyright © 1999-2006 Jive Software.