|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.servlet.util.StreamContentCommand
public class StreamContentCommand
| Constructor Summary | |
|---|---|
StreamContentCommand()
Deprecated. StreamContentCommand constructor |
|
StreamContentCommand(GetStreamInterface gsi)
Deprecated. StreamContentCommand constructor |
|
StreamContentCommand(GetStreamInterface gsi,
java.lang.String contentType)
Deprecated. StreamContentCommand constructor |
|
StreamContentCommand(GetStreamInterface gsi,
java.lang.String contentType,
java.lang.String servletURL)
Deprecated. StreamContentCommand constructor |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Deprecated. |
void |
execute(java.lang.Object arg)
Deprecated. Calls performAction(Object o) but if exceptions are caught nothing is done. |
java.lang.String |
getContentDisposition()
Deprecated. Returns the Content-Disposition response header. |
java.lang.String |
getContentServletURL()
Deprecated. Returns the URL for the ContentServlet. |
java.lang.String |
getContentType()
Deprecated. Returns Content-type associated with the stream. |
java.util.Locale |
getLocale()
Deprecated. Get the locale |
java.lang.String |
getName()
Deprecated. Returns the name of the command. |
static java.lang.String |
getNextCommandName()
Deprecated. |
javax.servlet.http.HttpServletRequest |
getRequest()
Deprecated. Gets the current request object. |
javax.servlet.http.HttpServletResponse |
getResponse()
Deprecated. Gets the current response object. |
GetStreamInterface |
getStreamInterface()
Deprecated. Returns the GetStreamInterface. |
java.lang.Object |
getTarget()
Deprecated. This method always returns null. |
java.lang.String |
getText()
Deprecated. |
boolean |
isExecutable()
Deprecated. This method always return true. |
boolean |
isUndoable()
Deprecated. This method always returns false. |
void |
performAction(java.lang.Object o)
Deprecated. Executes the command and offers the opportunity to catch exceptions. |
void |
setContentDisposition(java.lang.String cd)
Deprecated. Sets the Content-Disposition response header. |
void |
setContentServletURL(java.lang.String url)
Deprecated. Sets the URL for the ContentServlet. |
void |
setContentType(java.lang.String contentType)
Deprecated. Set the Content-type associated with the stream. |
void |
setLocale(java.util.Locale loc)
Deprecated. Set the locale |
void |
setName(java.lang.String name)
Deprecated. Sets the name of the command. |
void |
setRequest(javax.servlet.http.HttpServletRequest request)
Deprecated. Sets the request object. |
void |
setResponse(javax.servlet.http.HttpServletResponse response)
Deprecated. Sets the response object. |
void |
setTarget(java.lang.Object o)
Deprecated. This method is not implemented for the StreamContentCommand. |
void |
setText(java.lang.String text)
Deprecated. This method is not implemented. |
void |
undo()
Deprecated. This method is not implemented. |
| Constructor Detail |
|---|
public StreamContentCommand()
public StreamContentCommand(GetStreamInterface gsi)
public StreamContentCommand(GetStreamInterface gsi,
java.lang.String contentType)
gsi - GetStreamInterfacecontentType - Content-type
public StreamContentCommand(GetStreamInterface gsi,
java.lang.String contentType,
java.lang.String servletURL)
gsi - GetStreamInterfacecontentType - Content-typeservletURL - ContentServlet URL| Method Detail |
|---|
public java.lang.String getName()
getName in interface CommandProcessorCommandInterfacepublic void setName(java.lang.String name)
setName in interface CommandProcessorCommandInterfacename - unique name of the command. To ensure unique command names
use the @link #getNextCommandName method.public GetStreamInterface getStreamInterface()
public void performAction(java.lang.Object o)
throws java.io.IOException
CommandProcessorCommandInterface
performAction in interface CommandProcessorCommandInterfaceo - Object. The object should be a PageContext object for JSP and a HttpServletResponse Object for servlets
java.io.IOExceptionGetStreamInterfacepublic static java.lang.String getNextCommandName()
public java.lang.String getContentServletURL()
public void setContentServletURL(java.lang.String url)
public java.lang.String getContentType()
public void setContentType(java.lang.String contentType)
contentType - content type associated with the stream.public java.lang.Object getTarget()
getTarget in interface CommandProcessorCommandInterfacepublic void setTarget(java.lang.Object o)
setTarget in interface CommandProcessorCommandInterfaceo - target object for the command.public boolean isExecutable()
isExecutable in interface com.sas.util.Commandpublic boolean isUndoable()
isUndoable in interface com.sas.util.Commandpublic void undo()
undo in interface com.sas.util.Command
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in interface com.sas.PublicClonableclone in interface com.sas.util.Commandclone in class java.lang.Objectjava.lang.CloneNotSupportedExceptionpublic void execute(java.lang.Object arg)
execute in interface com.sas.util.SimpleCommandCommandProcessorCommandInterface.performAction(java.lang.Object)public java.lang.String getText()
getText in interface com.sas.lang.StringDataInterfacepublic void setText(java.lang.String text)
setText in interface com.sas.lang.StringDataInterfacepublic void setLocale(java.util.Locale loc)
setLocale in interface CommandProcessorCommandInterfacelocale - public java.util.Locale getLocale()
getLocale in interface CommandProcessorCommandInterfacepublic void setRequest(javax.servlet.http.HttpServletRequest request)
setRequest in interface CommandProcessorCommandInterfacerequest - The request objectpublic javax.servlet.http.HttpServletRequest getRequest()
getRequest in interface CommandProcessorCommandInterfacepublic javax.servlet.http.HttpServletResponse getResponse()
getResponse in interface CommandProcessorCommandInterfacepublic void setResponse(javax.servlet.http.HttpServletResponse response)
setResponse in interface CommandProcessorCommandInterfaceresponse - The response objectpublic void setContentDisposition(java.lang.String cd)
cd - Content-Disposition response header.public java.lang.String getContentDisposition()
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||