|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.myfaces.orchestra.frameworkAdapter.FrameworkAdapter
org.apache.myfaces.orchestra.frameworkAdapter.basic.BasicFrameworkAdapter
public class BasicFrameworkAdapter
An implementation of the FrameworkAdapter for plain servlet environments.
This class requires the BasicFrameworkAdapterFilter to be configured to run for every request.
Constructor Summary | |
---|---|
BasicFrameworkAdapter(javax.servlet.ServletContext context,
String conversationMessagerClass)
|
Method Summary | |
---|---|
void |
beginRequest(javax.servlet.ServletRequest req,
javax.servlet.ServletResponse rsp)
|
boolean |
containsRequestAttribute(String key)
|
boolean |
containsRequestParameterAttribute(String key)
|
boolean |
containsSessionAttribute(String key)
|
protected ConversationMessager |
createConversationMessager()
If this method is not overridden by a subclass, then method setConversationMessager must be used to explicitly provide an instance. |
protected ConversationMessager |
createDefaultConversationMessager()
|
void |
endRequest()
|
Object |
getBean(String name)
Look in the request and session scopes for an entry with the specified name. |
String |
getInitParameter(String key)
Return the global init parameter with the specified name. |
Object |
getRequestAttribute(String key)
Get a request-scope variable. |
protected String |
getRequestContextPath()
|
Object |
getRequestParameterAttribute(String key)
Get a value from the set of input parameters sent by the user as part of the request. |
Object |
getSessionAttribute(String key)
Get a variable from the session-scope of the current user. |
void |
invokeNavigation(String navigationName)
Perform a redirect to the specified url. |
void |
redirect(String url)
Instruct the remote browser to fetch the specified URL. |
void |
setRequestAttribute(String key,
Object value)
|
void |
setSessionAttribute(String key,
Object value)
|
Methods inherited from class org.apache.myfaces.orchestra.frameworkAdapter.FrameworkAdapter |
---|
getConversationMessager, getCurrentInstance, getCurrentViewId, prepare, setConversationMessager, setCurrentInstance |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BasicFrameworkAdapter(javax.servlet.ServletContext context, String conversationMessagerClass)
Method Detail |
---|
protected ConversationMessager createConversationMessager()
FrameworkAdapter
createConversationMessager
in class FrameworkAdapter
protected ConversationMessager createDefaultConversationMessager()
public void beginRequest(javax.servlet.ServletRequest req, javax.servlet.ServletResponse rsp)
public void endRequest()
public String getInitParameter(String key)
FrameworkAdapter
getInitParameter
in class FrameworkAdapter
public Object getRequestParameterAttribute(String key)
FrameworkAdapter
getRequestParameterAttribute
in class FrameworkAdapter
public boolean containsRequestParameterAttribute(String key)
containsRequestParameterAttribute
in class FrameworkAdapter
public Object getRequestAttribute(String key)
FrameworkAdapter
getRequestAttribute
in class FrameworkAdapter
public void setRequestAttribute(String key, Object value)
setRequestAttribute
in class FrameworkAdapter
public boolean containsRequestAttribute(String key)
containsRequestAttribute
in class FrameworkAdapter
public Object getSessionAttribute(String key)
FrameworkAdapter
getSessionAttribute
in class FrameworkAdapter
public void setSessionAttribute(String key, Object value)
setSessionAttribute
in class FrameworkAdapter
public boolean containsSessionAttribute(String key)
containsSessionAttribute
in class FrameworkAdapter
protected String getRequestContextPath()
public void redirect(String url) throws IOException
FrameworkAdapter
redirect
in class FrameworkAdapter
IOException
public Object getBean(String name)
This basic adapter class does not support invoking the JSP expression evaluator; no "variable resolver" will ever be used to look up the specified name.
TODO: also look in the application scope.
TODO: investigate invoking the jsp.ExpressionFactory class to look up the variable. Possibly that could be done in a different JspFrameworkAdapter class.
getBean
in class FrameworkAdapter
public void invokeNavigation(String navigationName) throws IOException
A redirect is done rather than a forward so that the remote browser has its current url updated appropriately. Note that a redirect does cause any request-scoped variables to be discarded.
invokeNavigation
in class FrameworkAdapter
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |