com.ibm.commerce.command
Class HttpDirectViewCommandImpl
java.lang.Object
|
+--com.ibm.commerce.command.AbstractECCommand
|
+--com.ibm.commerce.command.AbstractViewCommand
|
+--com.ibm.commerce.command.AbstractDirectViewCommand
|
+--com.ibm.commerce.command.HttpDirectViewCommandImpl
- All Implemented Interfaces:
-
AccCommand,
DirectViewCommand,
ECCommand,
HttpViewCommand,
ViewCommand
- public class HttpDirectViewCommandImpl
- extends
AbstractDirectViewCommand
- implements
HttpViewCommand
This is the default implementation of a http direct view command.
Method Summary |
java.lang.String |
getEncoding()
Gets the encoding. |
HttpServletRequest |
getRequest()
Gets the HttpServletRequest associated with this command. |
HttpServletResponse |
getResponse()
Gets the HttpServletResponse associated with this command. |
void |
performExecute()
Retreives either a text document or a raw document from the request
properties and sends it out. |
protected
void |
sendRawDocument(byte[] doc)
Sends a raw document out. |
protected
void |
sendRawDocument(java.io.InputStream doc)
Sends a raw document out. |
protected
void |
sendTextDocument(java.io.InputStream doc)
Sends a text document out. |
Methods inherited from class
com.ibm.commerce.command.
AbstractViewCommand |
fulfills,
getForUserId,
getOwner,
getRequestProperties,
getResourceOwners,
getResponseProperties,
getViewName,
mergeProperties,
setForUserId,
setOwner,
setRequestProperties,
setResponseProperties,
setViewName |
Methods inherited from class
com.ibm.commerce.command.
AbstractECCommand |
accessControlCheck,
checkIsAllowed,
checkParameters,
checkResourcePermission,
createCommandExecutionEvent,
execute,
finalize,
getAccCheck,
getCommandContext,
getCommandIfName,
getCommandName,
getCommandStoreId,
getDefaultProperties,
getResources,
getStoreId,
getUser,
getUserId,
isReadyToCallExecute,
reset,
setAccCheck,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties,
validateParameters |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait,
wait, wait |
Methods inherited from interface
com.ibm.commerce.command.
ECCommand |
checkIsAllowed,
checkResourcePermission,
createCommandExecutionEvent,
execute,
getCommandContext,
getCommandIfName,
getCommandName,
getCommandStoreId,
getDefaultProperties,
getResources,
getStoreId,
getUser,
getUserId,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties,
validateParameters |
HttpDirectViewCommandImpl
public HttpDirectViewCommandImpl()
- Constructor for HttpDirectViewCommandImpl.
getEncoding
public java.lang.String getEncoding()
- Gets the encoding.
-
- Returns:
- encoding text document
getRequest
public HttpServletRequest getRequest()
- Gets the HttpServletRequest associated with this command.
-
- Specified by:
-
getRequest
in interface
HttpViewCommand
-
- Returns:
- HttpServletRequest
getResponse
public HttpServletResponse getResponse()
- Gets the HttpServletResponse associated with this command.
-
- Specified by:
-
getResponse
in interface
HttpViewCommand
-
- Returns:
- HttpServletResponse
public void performExecute()
throws ECException
- Retreives either a text document or a raw document from the request
properties and sends it out.
-
- Specified by:
-
performExecute
in interface
ECCommand
- Specified by:
-
performExecute
in class
AbstractViewCommand
-
- Throws:
-
ECException
sendRawDocument
protected void sendRawDocument(byte[] doc)
throws ECException
- Sends a raw document out. No header is added to the document
-
- Parameters:
doc
- content of document in an array of bytes
- Throws:
-
ECException
protected void sendRawDocument(java.io.InputStream doc)
throws ECException
- Sends a raw document out. No header is added to the document
-
- Parameters:
doc
- output document as an input stream
- Throws:
-
ECException
sendTextDocument
protected void sendTextDocument(java.io.InputStream doc)
throws ECException
- Sends a text document out. No header is added to the document
-
- Parameters:
doc
- output document as an input stream
- Throws:
-
ECException