Class DispatchResponse

  • All Implemented Interfaces:
    Response, Replicable<Response>

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

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

    • Constructor Detail

      • DispatchResponse

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

      • commit

        public void commit​(Activity activity)
        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
      • getDispatchRule

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

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

        public java.lang.String getContentType​(Activity activity)
        Description copied from interface: Response
        Gets the content type.
        Specified by:
        getContentType in interface Response
        Parameters:
        activity - the current activity
        Returns:
        the content type
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.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