|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.setup.webwork.AbstractAwareInterceptor
public abstract class AbstractAwareInterceptor
Constructor Summary | |
---|---|
AbstractAwareInterceptor()
|
Method Summary | |
---|---|
void |
destroy()
|
protected java.lang.String |
getParameter(java.lang.String parameterName)
|
protected java.lang.String |
getSessionAttribute(java.lang.String key)
Find the session attribute by the specified key, or null if it doesnt exist or if there is no session. |
protected com.atlassian.user.User |
getUser()
|
protected boolean |
hasParameter(java.lang.String parameterName)
|
protected boolean |
hasSessionAttribute(java.lang.String key)
Detects if a session attribute exists on the current session. |
void |
init()
|
abstract java.lang.String |
intercept(com.opensymphony.xwork.ActionInvocation actionInvocation)
|
protected void |
setResponseHeader(java.lang.String name,
java.lang.String value)
Set the value of the specified response header. |
protected void |
setSessionAttribute(java.lang.String key,
java.lang.Object value)
Set the session attribute by the specified key to the specified value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractAwareInterceptor()
Method Detail |
---|
public void destroy()
destroy
in interface com.opensymphony.xwork.interceptor.Interceptor
public void init()
init
in interface com.opensymphony.xwork.interceptor.Interceptor
public abstract java.lang.String intercept(com.opensymphony.xwork.ActionInvocation actionInvocation) throws java.lang.Exception
intercept
in interface com.opensymphony.xwork.interceptor.Interceptor
java.lang.Exception
protected java.lang.String getParameter(java.lang.String parameterName)
protected boolean hasParameter(java.lang.String parameterName)
protected com.atlassian.user.User getUser()
protected boolean hasSessionAttribute(java.lang.String key)
key
- the key of the attribute to check for
protected java.lang.String getSessionAttribute(java.lang.String key)
key
- the key to look find the attribute by
protected void setSessionAttribute(java.lang.String key, java.lang.Object value)
key
- the key to look find the attribute byvalue
- the value to set the attribute toprotected void setResponseHeader(java.lang.String name, java.lang.String value)
name
- the name of the header itemvalue
- the value of the header item
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |