Class DispatchResponse

java.lang.Object
com.aspectran.core.activity.response.dispatch.DispatchResponse
All Implemented Interfaces:
Response, Replicable<Response>

public class DispatchResponse extends Object implements Response
JSP or other web resource integration.

Created: 2008. 03. 22 PM 5:51:58

  • Constructor Details

    • DispatchResponse

      public DispatchResponse(DispatchRule dispatchRule)
      Instantiates a new DispatchResponse with specified DispatchRule.
      Parameters:
      dispatchRule - the dispatch rule
  • Method Details

    • commit

      public void commit(Activity activity) throws ResponseException
      Description copied from interface: Response
      The result of the activity is processed into a specific response form and then sent to the client.
      Specified by:
      commit in interface Response
      Parameters:
      activity - the current Activity
      Throws:
      ResponseException - the response exception
    • getDispatchRule

      public DispatchRule getDispatchRule()
      Gets the dispatch rule.
      Returns:
      the dispatch rule
    • getResponseType

      public ResponseType getResponseType()
      Description copied from interface: Response
      Gets the response type.
      Specified by:
      getResponseType in interface Response
      Returns:
      the response type
    • getContentType

      public String getContentType()
      Description copied from interface: Response
      Gets the content type.
      Specified by:
      getContentType in interface Response
      Returns:
      the content type
    • replicate

      public Response replicate()
      Description copied from interface: Response
      Replicates and returns this response.
      Specified by:
      replicate in interface Replicable<Response>
      Specified by:
      replicate in interface Response
      Returns:
      the new response
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • saveAttributes

      public static void saveAttributes(RequestAdapter requestAdapter, ProcessResult processResult)
      Save processing results as request attributes.
      Parameters:
      requestAdapter - the request adapter
      processResult - the process result