public interface RemoteContentRendererRequestHandler
Modifier and Type | Method and Description |
---|---|
boolean |
canHandle(SlingHttpServletRequest servletRequest)
Should the current
RemoteContentRendererRequestHandler implementation be used to process the request |
org.apache.http.client.methods.HttpUriRequest |
getRequest(SlingHttpServletRequest servletRequest,
ComponentExporter componentExporter)
Returns the request object that can be executed by a
HttpClient implementation |
org.apache.http.client.config.RequestConfig |
getRequestConfig(SlingHttpServletRequest servletRequest)
Returns the configuration that will be used to execute the remote request
|
java.lang.String |
getResponseMessage(org.apache.http.client.methods.CloseableHttpResponse httpResponse)
Returns the potentially processed response from the remote content rendering endpoint
|
default java.lang.Class<? extends ComponentExporter>[] |
getSlingModelAdapterClasses()
Returns the list of classes that the Sling Model Exporter should try to adapt the request to
|
boolean canHandle(SlingHttpServletRequest servletRequest)
RemoteContentRendererRequestHandler
implementation be used to process the requestservletRequest
- The AEM internal servlet requestorg.apache.http.client.config.RequestConfig getRequestConfig(SlingHttpServletRequest servletRequest)
servletRequest
- The AEM internal servlet requestRequestConfig
configuration objectorg.apache.http.client.methods.HttpUriRequest getRequest(SlingHttpServletRequest servletRequest, ComponentExporter componentExporter) throws RemoteContentRenderingException
HttpClient
implementationservletRequest
- The AEM internal servlet requestcomponentExporter
- The data model to be serialized and sent to the remote endpointHttpUriRequest
RemoteContentRenderingException
- exception due to an invalid servlet requestjava.lang.String getResponseMessage(org.apache.http.client.methods.CloseableHttpResponse httpResponse) throws java.io.IOException
httpResponse
- Response to the request sent to the remote endpointjava.io.IOException
- exception when reading from the CloseableHttpResponse
default java.lang.Class<? extends ComponentExporter>[] getSlingModelAdapterClasses()
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"