Interface RequestResponseFactory


@Deprecated public interface RequestResponseFactory
Deprecated.
Use org.apache.sling.api.request.builder.Builders instead
The RequestResponseFactory helps in creating custom HttpServletRequest and HttpServletResponse objects for use in Content Sync update handlers.
See Also:
  • Method Details

    • createRequest

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

      HttpServletRequest createRequest(String method, String uri, Map<String,Object> params)
      Deprecated.
      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(OutputStream out)
      Deprecated.
      Create a response with given output stream.
      Parameters:
      out - The output stream
      Returns:
      The response object
    • getMD5

      Deprecated.
      Get MD5 hash for the response's body.
      Parameters:
      response - The response
      Returns:
      MD5 hash of response body