Interface RequestResponseFactory


  • public interface RequestResponseFactory
    The RequestResponseFactory helps in creating custom HttpServletRequest and HttpServletResponse objects for use in Content Sync update handlers.
    See Also:
    AbstractSlingResourceUpdateHandler
    • Method Detail

      • createRequest

        HttpServletRequest createRequest​(java.lang.String method,
                                         java.lang.String uri)
        Create a request with given method and URI.
        Parameters:
        method - The request method
        uri - The uri
        Returns:
        The request object
      • createRequest

        HttpServletRequest createRequest​(java.lang.String method,
                                         java.lang.String uri,
                                         java.util.Map<java.lang.String,​java.lang.Object> params)
        Create a request with given method, URI and parameters.
        Parameters:
        method - The request method
        uri - The uri
        params - The map of request parameters
        Returns:
        The request object
      • createResponse

        HttpServletResponse createResponse​(java.io.OutputStream out)
        Create a response with given output stream.
        Parameters:
        out - The output stream
        Returns:
        The response object
      • getMD5

        @Deprecated
        java.lang.String getMD5​(HttpServletResponse response)
        Deprecated.
        Get MD5 hash for the response's body.
        Parameters:
        response - The response
        Returns:
        MD5 hash of response body