|
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-typepublic StreamContentCommand(GetStreamInterface gsi, java.lang.String contentType, java.lang.String servletURL)
gsi
- GetStreamInterfacecontentType
- Content-typeservletURL
- ContentServlet URLMethod Detail |
---|
public java.lang.String getName()
getName
in interface CommandProcessorCommandInterface
public void setName(java.lang.String name)
setName
in interface CommandProcessorCommandInterface
name
- 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 CommandProcessorCommandInterface
o
- Object. The object should be a PageContext object for JSP and a HttpServletResponse Object for servlets
java.io.IOException
GetStreamInterface
public 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 CommandProcessorCommandInterface
public void setTarget(java.lang.Object o)
setTarget
in interface CommandProcessorCommandInterface
o
- target object for the command.public boolean isExecutable()
isExecutable
in interface com.sas.util.Command
public boolean isUndoable()
isUndoable
in interface com.sas.util.Command
public void undo()
undo
in interface com.sas.util.Command
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in interface com.sas.PublicClonable
clone
in interface com.sas.util.Command
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public void execute(java.lang.Object arg)
execute
in interface com.sas.util.SimpleCommand
CommandProcessorCommandInterface.performAction(java.lang.Object)
public java.lang.String getText()
getText
in interface com.sas.lang.StringDataInterface
public void setText(java.lang.String text)
setText
in interface com.sas.lang.StringDataInterface
public void setLocale(java.util.Locale loc)
setLocale
in interface CommandProcessorCommandInterface
locale
- public java.util.Locale getLocale()
getLocale
in interface CommandProcessorCommandInterface
public void setRequest(javax.servlet.http.HttpServletRequest request)
setRequest
in interface CommandProcessorCommandInterface
request
- The request objectpublic javax.servlet.http.HttpServletRequest getRequest()
getRequest
in interface CommandProcessorCommandInterface
public javax.servlet.http.HttpServletResponse getResponse()
getResponse
in interface CommandProcessorCommandInterface
public void setResponse(javax.servlet.http.HttpServletResponse response)
setResponse
in interface CommandProcessorCommandInterface
response
- 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 |