Interface RequestResponseFactory
-
public interface RequestResponseFactory
TheRequestResponseFactory
helps in creating customHttpServletRequest
andHttpServletResponse
objects for use in Content Sync update handlers.- See Also:
AbstractSlingResourceUpdateHandler
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description HttpServletRequest
createRequest(java.lang.String method, java.lang.String uri)
Create a request with given method and URI.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.HttpServletResponse
createResponse(java.io.OutputStream out)
Create a response with given output stream.java.lang.String
getMD5(HttpServletResponse response)
Deprecated.
-
-
-
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 methoduri
- 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 methoduri
- The uriparams
- 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
-
-