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(@Nonnull SlingHttpServletRequest servletRequest)
RemoteContentRendererRequestHandler
implementation be used to process the requestservletRequest
- The AEM internal servlet request@Nullable org.apache.http.client.config.RequestConfig getRequestConfig(@Nonnull SlingHttpServletRequest servletRequest)
servletRequest
- The AEM internal servlet requestRequestConfig
configuration object@Nonnull org.apache.http.client.methods.HttpUriRequest getRequest(@Nonnull SlingHttpServletRequest servletRequest, @Nonnull 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 request@Nonnull java.lang.String getResponseMessage(@Nonnull 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
@Nonnull default java.lang.Class<? extends ComponentExporter>[] getSlingModelAdapterClasses()
Copyright © 2010 - 2020 Adobe. All Rights Reserved