|
© 2003 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.bea.netuix.servlets.controls.ControlContext | +--com.bea.netuix.servlets.controls.content.JspContentContext
Context to support simple JSP portlets with/without backing files.
All the setter methods in this class should only be called during
handlePostbackData
method of the backing file. The setter methods would cause the
framework to act on the changes after completion of this method.
Field Summary | |
static String |
CONTENT_CHANGE
|
static String |
CONTROL_PARAM
Control unique id request parameter to identify which control this came from. |
static String |
EVENT_PARAM
The request parameter to indicate the action to be performed by this control. |
Fields inherited from class com.bea.netuix.servlets.controls.ControlContext |
debug |
Constructor Summary | |
protected |
JspContentContext(com.bea.netuix.nf.UIControl control)
Constructs JspContentContext. |
Method Summary | |
PostbackURL |
getBaseUrl(HttpServletRequest request,
HttpServletResponse response,
String event)
Returns a URL that can be used to submit requests. |
PostbackURL |
getBaseUrl(HttpServletRequest request,
HttpServletResponse response,
String param,
String event)
Returns a URL that can be used to submit requests. |
String |
getContentUri()
Returns the current content URI, if set, or returns the content URI. |
static JspContentContext |
getJspContentContext(HttpServletRequest request)
|
Locale |
getResolvedLocale()
Sets the Locale used when resolving the current URI |
protected String |
getSendRedirectPath()
Returns redirect path. |
void |
sendRedirect(String path)
Redirects the client to the given path. |
void |
setActivePage(String pageLabel)
Changes the active page. |
void |
setContentUri(String contentUri)
Sets the content URI. |
void |
setJspContentContextInRequest(HttpServletRequest request)
Sets this context in the request. |
void |
setResolvedLocale(Locale locale)
Sets the Locale used when resolving the current URI |
void |
setupModeChangeEvent(WindowMode modeValue)
Sets up a mode change event. |
void |
setupStateChangeEvent(WindowState stateValue)
Sets up a state change event. |
Methods inherited from class com.bea.netuix.servlets.controls.ControlContext |
getContextFromRequest, getContextKey, getControl, getRequestKey, getUniqueId, removeContextFromRequest, setContextInRequest |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String CONTENT_CHANGE
public static final String CONTROL_PARAM
public static final String EVENT_PARAM
Constructor Detail |
protected JspContentContext(com.bea.netuix.nf.UIControl control)
Constructs JspContentContext
control
- controlMethod Detail |
public void setContentUri(String contentUri)
Sets the content URI.
contentUri
- content URIpublic String getContentUri()
Returns the current content URI, if set, or returns the content URI.
public void setResolvedLocale(Locale locale)
Sets the Locale used when resolving the current URI
locale
- public Locale getResolvedLocale()
Sets the Locale used when resolving the current URI
public void setJspContentContextInRequest(HttpServletRequest request)
Sets this context in the request.
request
- HTTP requestpublic static JspContentContext getJspContentContext(HttpServletRequest request)
public final void setActivePage(String pageLabel)
Changes the active page. Should be called only during postback.
pageLabel
- page labelpublic void setupModeChangeEvent(WindowMode modeValue)
Sets up a mode change event. Should be called only during postback
modeValue
- modepublic void setupStateChangeEvent(WindowState stateValue)
Sets up a state change event. Should be called only during postback
stateValue
- statepublic PostbackURL getBaseUrl(HttpServletRequest request, HttpServletResponse response, String event)
Returns a URL that can be used to submit requests.
request
- HTTP requestresponse
- HTTP responseevent
- event
public PostbackURL getBaseUrl(HttpServletRequest request, HttpServletResponse response, String param, String event)
Returns a URL that can be used to submit requests.
request
- HTTP requestresponse
- HTTP responseparam
- name of parameterevent
- event
public void sendRedirect(String path)
Redirects the client to the given path. The path set should follow the same
rules that apply to the sendRedirect
method in
javax.servlet.http.HttpServletResponse
. This method should only be called
during postback. Note that the actual redirect happens after executing the
handlePostbackData
method on the backing file.
path
- pathprotected String getSendRedirectPath()
Returns redirect path.
|
© 2003 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |