|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ibm.portal.struts.command.StrutsViewCommand
com.ibm.portal.struts.command.StrutsFilteredViewCommand
com.ibm.portal.struts.command.StrutsViewStaticCommand
public class StrutsViewStaticCommand
The StrutsViewStaticCommand class is a command pattern class used to
provide a mechanism to encapsulate the information needed to redisplay a view. This
particular subclass deals with HTML pages, or any page which is static content
and is simply placed in the output buffer as is.
| Field Summary | |
|---|---|
protected static java.util.List |
EMPTY_LIST
|
static java.lang.String |
HOME_FORWARD_NAME
The forward name we look for to indicate the path for a home button on static content |
protected static MessageResources |
messages
The message resources for the Struts Portlet Framework. |
protected static java.lang.String |
URI
|
| Fields inherited from class com.ibm.portal.struts.command.StrutsFilteredViewCommand |
|---|
wpsStrutsTranscodingRequestWrapper |
| Fields inherited from class com.ibm.portal.struts.command.StrutsViewCommand |
|---|
CONTENT_TYPE, PREFIX |
| Constructor Summary | |
|---|---|
StrutsViewStaticCommand(java.lang.String uri,
PortletRequest request)
Construct the StrutsViewStaticCommand command |
|
| Method Summary | |
|---|---|
static void |
addAttributeNameToSave(java.lang.String attributeName)
Add the name of an attribute from the object request the needs to be saved if present for the execution of the IViewCommand in Portal's render phase |
void |
executeCommand(RenderRequest request,
RenderResponse response,
ViewCommandExecutionContext executionContext)
Execute the given command given the request and response objects |
java.lang.String |
fixupAbsolutePath(java.lang.String path)
Convert URLs of the form http://www.ibm.com to http://www.ibm.com/ . |
protected java.lang.String |
getCharsetFromContentType(java.lang.String contentType)
Extract the charset from the Content-Type string, or return a default if unavailable. |
java.lang.String |
getURI(RenderRequest request)
Return the URI string |
void |
saveAttributes(PortletRequest request,
ViewCommandExecutionContext executionContext)
Save the attributes specific to JSP rendering. |
void |
setURI(PortletRequest request,
java.lang.String uri)
Set the uri |
protected void |
writeReaderToWriter(java.io.Reader reader,
java.io.Writer writer)
Write the contents of a Reader to a Writer. |
| Methods inherited from class com.ibm.portal.struts.command.StrutsFilteredViewCommand |
|---|
execute, isDebugOn, trace |
| Methods inherited from class com.ibm.portal.struts.command.StrutsViewCommand |
|---|
addAttribute, addAttributeTypeToSave, getContentType, getPrefix, getRemoveOnModeChange, getSavedAttributes, getSavedCommand, removeAttribute, removeAttributeNameToSave, removeAttributeTypeToSave, repopulateRequest, saveAsAttribute, saveAttribute, saveAttributes, saveCommand, saveCommand, setContentType, setContentType, setPrefix, setRemoveOnModeChange, setSavedAttributes |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final java.util.List EMPTY_LIST
public static final java.lang.String HOME_FORWARD_NAME
protected static final java.lang.String URI
protected static MessageResources messages
| Constructor Detail |
|---|
public StrutsViewStaticCommand(java.lang.String uri,
PortletRequest request)
StrutsViewStaticCommand command
uri - the uri path to the static pagerequest - The request object to save context information from| Method Detail |
|---|
public java.lang.String getURI(RenderRequest request)
request - The request providing the context to fetch the URI.
public void setURI(PortletRequest request,
java.lang.String uri)
request - the portlet request object.uri - the uri to set.
public void executeCommand(RenderRequest request,
RenderResponse response,
ViewCommandExecutionContext executionContext)
throws PortletException
executeCommand in class StrutsFilteredViewCommandrequest - The request objectresponse - The response objectexecutionContext - the execution context object
PortletException
protected void writeReaderToWriter(java.io.Reader reader,
java.io.Writer writer)
throws java.io.IOException
reader - The source Reader.writer - The destination Writer.
java.io.IOException - On IO error.protected java.lang.String getCharsetFromContentType(java.lang.String contentType)
contentType - The Content-Type HTTP response header to parse.
public static void addAttributeNameToSave(java.lang.String attributeName)
attributeName - the name of the attribute
public void saveAttributes(PortletRequest request,
ViewCommandExecutionContext executionContext)
saveAttributes in class StrutsViewCommandrequest - the request objectexecutionContext - the context objectpublic java.lang.String fixupAbsolutePath(java.lang.String path)
path - The URL to fix up
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||