Class TaskProcessorRequestState

    • Constructor Detail

      • TaskProcessorRequestState

        public TaskProcessorRequestState()
        Creates a new TaskProcessorRequestState object.
    • Method Detail

      • getProcessRequestErrorMessage

        public java.lang.String getProcessRequestErrorMessage()
        Returns the error message associated with this process request.
        Returns:
        The error message associated with this process request.
      • setProcessRequestErrorMessage

        public void setProcessRequestErrorMessage​(java.lang.String errMsg)
        Sets the error message associated with this process request.
        Parameters:
        errMsg - The error message associated with this process request.
      • getGeneratedContent

        public TaskOutput getGeneratedContent()
        Returns the generated content for the task request.
        Returns:
        The generated content for the task request, in the form of a TaskOutput.
      • setGeneratedContent

        public void setGeneratedContent​(TaskOutput taskOutput)
        Sets the generated content for the task request.
        Parameters:
        taskOutput - The generated content for the task request.
        Since:
        MicroStrategy Web 9.0.0
      • getProcessRequestStatusCode

        public int getProcessRequestStatusCode()
        Returns the status code associated the task request.
        Returns:
        The status code associated the task request.
      • setProcessRequestStatusCode

        public void setProcessRequestStatusCode​(int statusCode)
        Sets the status code associated the task request.
        Parameters:
        statusCode - The status code associated the task request.
      • getProcessRequestTaskErrorCode

        public java.lang.Integer getProcessRequestTaskErrorCode()
        Returns the task error code, if set.
        Returns:
        The Task-specific error code.
      • setProcessRequestTaskErrorCode

        public void setProcessRequestTaskErrorCode​(java.lang.Integer taskErrorCode)
        Sets the task-specific error code.
        Parameters:
        taskErrorCode - The task-specific error code.
      • failure

        public boolean failure()
        Returns whether the incoming request was a failure or not.
        Returns:
        True if the incoming task request was not satisfied; otherwise, false.
      • getRequestKeys

        public RequestKeys getRequestKeys()
        Returns the RequestKeys associated with this Task request.
        Returns:
        The RequestKeys object associated with this request.
      • setRequestKeys

        public void setRequestKeys​(RequestKeys requestKeys)
        Sets the RequestKeys associated with this Task request.
        Parameters:
        requestKeys - The RequestKeys object to use with this Task request.
        Since:
        MicroStrategy Web 8.1.1
      • setRequestIsComplete

        public void setRequestIsComplete​(boolean isComplete)
        Indicates whether the request is complete--that is, fully sent to the output stream by the Task.
        Parameters:
        isComplete - True if the Task has fully completed the request, sending all content to the output stream; otherwise, False indicates that the Task Processor Controller must act to complete the request.
        Since:
        MicroStrategy Web 8.1.1
      • serializeBinaryContent

        public boolean serializeBinaryContent()
        Whether the Task Processor Controller should attempt to serialize binary content generated by a Task directly to the Output Stream. By default, it is true.
        Returns:
        True if the TaskProcessorController is going to serialize binary content directly; otherwise, false.
        Since:
        MicroStrategy Web 9.0.0
      • setSerializeBinaryContent

        public void setSerializeBinaryContent​(boolean serialize)
        Sets whether the Task Processor Controller should serialize binary content generated by a Task directly to the Output Stream. By default, it is true.
        Parameters:
        serialize - True to cause the TaskProcessorController to serialize binary content to the OutputStream; False causes it to remain in the MarkupOutput.
        Since:
        MicroStrategy Web 9.0.0
      • isCompressionEnabled

        public boolean isCompressionEnabled()
      • setCompressionEnabled

        public void setCompressionEnabled​(boolean compressionEnabled)