com.ibm.commerce.command

Class AbstractDirectViewCommand

    • Constructor Detail

      • AbstractDirectViewCommand

        public AbstractDirectViewCommand()
        This is the default constructor for this class. It calls the constructor from the superclass.
    • Method Detail

      • getContentLength

        public final int getContentLength()
        This method gets the length of the data.
        Specified by:
        getContentLength in interface DirectViewCommand
        Returns:
        This method returns the length of the data.
      • getContentType

        public final java.lang.String getContentType()
        This method gets the content type. Two examples of content types are text and html.
        Specified by:
        getContentType in interface DirectViewCommand
        Returns:
        This method returns the content type.
      • getRawDocument

        public final java.lang.Object getRawDocument()
        This method gets the raw document data from the RequestProperties object.
        Specified by:
        getRawDocument in interface DirectViewCommand
        Returns:
        This method returns the raw document object.
      • getTextDocument

        public final java.io.InputStream getTextDocument()
        This method gets the text document data as an input stream from the RequestProperties object.
        Specified by:
        getTextDocument in interface DirectViewCommand
        Returns:
        This method returns an InputStream of the text document.
      • createTextResponse

        public static TypedProperty createTextResponse(java.lang.String textResponse)
        This method prepares a TypedProperty object for sending a text response. This is done by adding the additional values to the TypedProperty object that enable it to call the DirectView.
        Parameters:
        textResponse - This is the text to be returned.
        Returns:
        This method returns a TypedProperty object representation of the given text.