@Service(value="httpContentService") public class HttpContentServiceImpl extends Object implements IContentService<HttpContentRequestImpl,GenericContentResponseImpl>
HttpContentServiceImpl class.
| Modifier and Type | Field and Description |
|---|---|
static String |
FORM_METHOD_PARAM
Constant
FORM_METHOD_PARAM="PROXY_PORTLET_PARAM_PREFIX.concat(formM"{trunked} |
static String |
IS_FORM_PARAM
Constant
IS_FORM_PARAM="PROXY_PORTLET_PARAM_PREFIX.concat(isFor"{trunked} |
static String |
PREINTERCEPTOR_LIST_KEY
Constant
PREINTERCEPTOR_LIST_KEY="preInterceptors" |
static String |
PROXY_PORTLET_PARAM_PREFIX
Constant
PROXY_PORTLET_PARAM_PREFIX="proxy." |
static String |
URL_PARAM
Constant
URL_PARAM="PROXY_PORTLET_PARAM_PREFIX.concat(url)" |
| Constructor and Description |
|---|
HttpContentServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterGetContent(HttpContentRequestImpl proxyRequest,
javax.portlet.PortletRequest request,
GenericContentResponseImpl proxyResponse)
Execute any necessary logic after retrieving the content
|
void |
beforeGetContent(HttpContentRequestImpl proxyRequest,
javax.portlet.PortletRequest request)
Execute any necessary logic prior to retrieving the content
|
GenericContentResponseImpl |
getContent(HttpContentRequestImpl proxyRequest,
javax.portlet.PortletRequest request)
Retrieve content for the given content request and portlet request.
|
GenericContentResponseImpl |
getContent(HttpContentRequestImpl proxyRequest,
javax.portlet.PortletRequest request,
boolean runWrapperMethods)
getContent.
|
protected org.apache.http.client.methods.HttpUriRequest |
getHttpRequest(HttpContentRequestImpl proxyRequest,
javax.portlet.PortletRequest request)
getHttpRequest.
|
HttpContentRequestImpl |
getRequest(javax.portlet.PortletRequest request)
Get an appropriate default content request for the current portlet
request.
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
Setter for the field
applicationContext. |
void |
setHttpClientService(IHttpClientService httpClientService)
Setter for the field
httpClientService. |
void |
setReplayedRequestHeaders(List<String> replayedRequestHeaders)
Setter for the field
replayedRequestHeaders. |
public static final String PROXY_PORTLET_PARAM_PREFIX
PROXY_PORTLET_PARAM_PREFIX="proxy."public static final String URL_PARAM
URL_PARAM="PROXY_PORTLET_PARAM_PREFIX.concat(url)"public static final String IS_FORM_PARAM
IS_FORM_PARAM="PROXY_PORTLET_PARAM_PREFIX.concat(isFor"{trunked}public static final String FORM_METHOD_PARAM
FORM_METHOD_PARAM="PROXY_PORTLET_PARAM_PREFIX.concat(formM"{trunked}public static final String PREINTERCEPTOR_LIST_KEY
PREINTERCEPTOR_LIST_KEY="preInterceptors"@Autowired(required=true) public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
Setter for the field applicationContext.
applicationContext - a ApplicationContext object@Autowired(required=true) public void setHttpClientService(IHttpClientService httpClientService)
Setter for the field httpClientService.
httpClientService - a IHttpClientService objectpublic void setReplayedRequestHeaders(List<String> replayedRequestHeaders)
Setter for the field replayedRequestHeaders.
replayedRequestHeaders - a List objectpublic HttpContentRequestImpl getRequest(javax.portlet.PortletRequest request)
getRequest in interface IContentService<HttpContentRequestImpl,GenericContentResponseImpl>request - a PortletRequest objectpublic void beforeGetContent(HttpContentRequestImpl proxyRequest, javax.portlet.PortletRequest request)
beforeGetContent in interface IContentService<HttpContentRequestImpl,GenericContentResponseImpl>proxyRequest - a T objectrequest - a PortletRequest objectpublic GenericContentResponseImpl getContent(HttpContentRequestImpl proxyRequest, javax.portlet.PortletRequest request)
getContent in interface IContentService<HttpContentRequestImpl,GenericContentResponseImpl>proxyRequest - a T objectrequest - a PortletRequest objectpublic GenericContentResponseImpl getContent(HttpContentRequestImpl proxyRequest, javax.portlet.PortletRequest request, boolean runWrapperMethods)
getContent.
proxyRequest - a HttpContentRequestImpl objectrequest - a PortletRequest objectrunWrapperMethods - a booleanGenericContentResponseImpl objectpublic void afterGetContent(HttpContentRequestImpl proxyRequest, javax.portlet.PortletRequest request, GenericContentResponseImpl proxyResponse)
afterGetContent in interface IContentService<HttpContentRequestImpl,GenericContentResponseImpl>proxyRequest - a T objectrequest - a PortletRequest objectproxyResponse - a S objectprotected org.apache.http.client.methods.HttpUriRequest getHttpRequest(HttpContentRequestImpl proxyRequest, javax.portlet.PortletRequest request)
getHttpRequest.
proxyRequest - a HttpContentRequestImpl objectrequest - a PortletRequest objectHttpUriRequest objectCopyright © 2022 Apereo. All rights reserved.