public abstract class

AbstractAwareInterceptor

extends Object
implements Interceptor
java.lang.Object
   ↳ com.atlassian.confluence.setup.webwork.AbstractAwareInterceptor
Known Direct Subclasses

Summary

Public Constructors
AbstractAwareInterceptor()
Public Methods
void destroy()
void init()
abstract String intercept(ActionInvocation actionInvocation)
Protected Methods
String getParameter(String parameterName)
String getSessionAttribute(String key)
Find the session attribute by the specified key, or null if it doesnt exist or if there is no session.
User getUser()
boolean hasParameter(String parameterName)
boolean hasSessionAttribute(String key)
Detects if a session attribute exists on the current session.
void setResponseHeader(String name, String value)
Set the value of the specified response header.
void setSessionAttribute(String key, Object value)
Set the session attribute by the specified key to the specified value.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.opensymphony.xwork.interceptor.Interceptor

Public Constructors

public AbstractAwareInterceptor ()

Public Methods

public void destroy ()

public void init ()

public abstract String intercept (ActionInvocation actionInvocation)

Throws
Exception

Protected Methods

protected String getParameter (String parameterName)

protected String getSessionAttribute (String key)

Find the session attribute by the specified key, or null if it doesnt exist or if there is no session.

Parameters
key the key to look find the attribute by
Returns
  • the session value as a String

protected User getUser ()

protected boolean hasParameter (String parameterName)

protected boolean hasSessionAttribute (String key)

Detects if a session attribute exists on the current session.

Parameters
key the key of the attribute to check for
Returns
  • true of a current session exists and contains the specified key

protected void setResponseHeader (String name, String value)

Set the value of the specified response header.

Parameters
name the name of the header item
value the value of the header item

protected void setSessionAttribute (String key, Object value)

Set the session attribute by the specified key to the specified value. If there is no session active this method does nothing.

Parameters
key the key to look find the attribute by
value the value to set the attribute to