public interface RequestResponseFactory
RequestResponseFactory
helps in creating custom
HttpServletRequest
and HttpServletResponse
objects for use in Content Sync update handlers.AbstractSlingResourceUpdateHandler
Modifier and Type | Method and 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)
Get MD5 hash for the response's body.
|
HttpServletRequest createRequest(java.lang.String method, java.lang.String uri)
method
- The request methoduri
- The uriHttpServletRequest createRequest(java.lang.String method, java.lang.String uri, java.util.Map<java.lang.String,java.lang.Object> params)
method
- The request methoduri
- The uriparams
- The map of request parametersHttpServletResponse createResponse(java.io.OutputStream out)
out
- The output streamjava.lang.String getMD5(HttpServletResponse response)
response
- The response"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"