| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 | RenderResponse, com.ibm.portal.struts.command.ViewCommandExecutionContext)">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 | RenderRequest)">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 | java.io.Reader, java.io.Writer)">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 |
---|
RenderResponse, com.ibm.portal.struts.command.ViewCommandExecutionContext)">execute, isDebugOn, trace |
Methods inherited from class com.ibm.portal.struts.command.StrutsViewCommand |
---|
addAttribute, addAttributeTypeToSave, PortletRequest)">getContentType, getPrefix, getRemoveOnModeChange, getSavedAttributes, PortletResponse, com.ibm.portal.struts.command.ViewCommandExecutionContext)">getSavedCommand, removeAttribute, removeAttributeNameToSave, removeAttributeTypeToSave, RenderRequest)">repopulateRequest, saveAsAttribute, saveAttribute, saveAttributes, saveCommand, PortletResponse, java.lang.String)">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
Method Detail |
---|
public java.lang.String getURI(RenderRequest request)
public void setURI(PortletRequest request, java.lang.String uri)
public void executeCommand(RenderRequest request, RenderResponse response, ViewCommandExecutionContext executionContext) throws PortletException
protected void writeReaderToWriter(java.io.Reader reader, java.io.Writer writer) throws java.io.IOException
protected java.lang.String getCharsetFromContentType(java.lang.String contentType)
public static void addAttributeNameToSave(java.lang.String attributeName)
public void saveAttributes(PortletRequest request, ViewCommandExecutionContext executionContext)
public java.lang.String fixupAbsolutePath(java.lang.String path)
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |