Package com.consol.citrus.http.client
Class HttpEndpointConfiguration
- java.lang.Object
-
- com.consol.citrus.endpoint.AbstractEndpointConfiguration
-
- com.consol.citrus.endpoint.AbstractPollableEndpointConfiguration
-
- com.consol.citrus.http.client.HttpEndpointConfiguration
-
- All Implemented Interfaces:
com.consol.citrus.endpoint.EndpointConfiguration,com.consol.citrus.endpoint.PollableEndpointConfiguration
public class HttpEndpointConfiguration extends com.consol.citrus.endpoint.AbstractPollableEndpointConfiguration- Since:
- 1.4
- Author:
- Christoph Deppisch
-
-
Constructor Summary
Constructors Constructor Description HttpEndpointConfiguration()Default constructor initializes with default logging interceptor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<org.springframework.http.MediaType>getBinaryMediaTypes()Gets the binaryMediaTypes.StringgetCharset()Gets the charset.List<org.springframework.http.client.ClientHttpRequestInterceptor>getClientInterceptors()Gets the list of endpoint clientInterceptors.StringgetContentType()Gets the contentType.com.consol.citrus.message.MessageCorrelatorgetCorrelator()Gets the correlator.intgetDefaultStatusCode()Gets the defaultStatusCode.com.consol.citrus.endpoint.resolver.EndpointUriResolvergetEndpointUriResolver()Gets the endpointUriResolver.org.springframework.web.client.ResponseErrorHandlergetErrorHandler()Gets the errorHandler.com.consol.citrus.message.ErrorHandlingStrategygetErrorHandlingStrategy()Gets the errorHandlingStrategy.org.springframework.integration.mapping.HeaderMapper<org.springframework.http.HttpHeaders>getHeaderMapper()Gets the headerMapper.HttpMessageConvertergetMessageConverter()Gets the message converter.org.springframework.http.client.ClientHttpRequestFactorygetRequestFactory()Gets the client request factory.org.springframework.http.HttpMethodgetRequestMethod()Gets the requestMethod.StringgetRequestUrl()Get the complete request URL.org.springframework.web.client.RestTemplategetRestTemplate()Gets the restTemplate.booleanisDefaultAcceptHeader()Gets the value of the defaultAcceptHeader property.booleanisHandleAttributeHeaders()Gets the handleAttributeHeaders.booleanisHandleCookies()Gets the handleCookies.voidsetBinaryMediaTypes(List<org.springframework.http.MediaType> binaryMediaTypes)Sets the binaryMediaTypes.voidsetCharset(String charset)Sets the charset.voidsetClientInterceptors(List<org.springframework.http.client.ClientHttpRequestInterceptor> clientInterceptors)Sets the clientInterceptors on this implementation's rest template.voidsetContentType(String contentType)Sets the contentType.voidsetCorrelator(com.consol.citrus.message.MessageCorrelator correlator)Set the reply message correlator.voidsetDefaultAcceptHeader(boolean defaultAcceptHeader)Sets the defaultAcceptHeader property.voidsetDefaultStatusCode(int defaultStatusCode)Sets the defaultStatusCode.voidsetEndpointUriResolver(com.consol.citrus.endpoint.resolver.EndpointUriResolver endpointUriResolver)Sets the endpoint uri resolver.voidsetErrorHandler(org.springframework.web.client.ResponseErrorHandler errorHandler)Sets the errorHandler.voidsetErrorHandlingStrategy(com.consol.citrus.message.ErrorHandlingStrategy errorHandlingStrategy)Sets the errorHandlingStrategy.voidsetHandleAttributeHeaders(boolean handleAttributeHeaders)Sets the handleAttributeHeaders.voidsetHandleCookies(boolean handleCookies)Sets the handleCookies.voidsetHeaderMapper(org.springframework.integration.mapping.HeaderMapper<org.springframework.http.HttpHeaders> headerMapper)Sets the headerMapper.voidsetMessageConverter(HttpMessageConverter messageConverter)Sets the message converter.voidsetRequestFactory(org.springframework.http.client.ClientHttpRequestFactory requestFactory)Sets the client request factory.voidsetRequestMethod(org.springframework.http.HttpMethod requestMethod)Sets the requestMethod.voidsetRequestUrl(String url)Set the complete request URL.voidsetRestTemplate(org.springframework.web.client.RestTemplate restTemplate)Sets the restTemplate.-
Methods inherited from class com.consol.citrus.endpoint.AbstractPollableEndpointConfiguration
getPollingInterval, setPollingInterval
-
Methods inherited from class com.consol.citrus.endpoint.AbstractEndpointConfiguration
getTimeout, setTimeout
-
-
-
-
Method Detail
-
getRequestUrl
public String getRequestUrl()
Get the complete request URL.- Returns:
- the urlPath
-
setRequestUrl
public void setRequestUrl(String url)
Set the complete request URL.- Parameters:
url- the url to set
-
setEndpointUriResolver
public void setEndpointUriResolver(com.consol.citrus.endpoint.resolver.EndpointUriResolver endpointUriResolver)
Sets the endpoint uri resolver.- Parameters:
endpointUriResolver- the endpointUriResolver to set
-
setRestTemplate
public void setRestTemplate(org.springframework.web.client.RestTemplate restTemplate)
Sets the restTemplate.- Parameters:
restTemplate- the restTemplate to set
-
setRequestMethod
public void setRequestMethod(org.springframework.http.HttpMethod requestMethod)
Sets the requestMethod.- Parameters:
requestMethod- the requestMethod to set
-
setCharset
public void setCharset(String charset)
Sets the charset.- Parameters:
charset- the charset to set
-
setHeaderMapper
public void setHeaderMapper(org.springframework.integration.mapping.HeaderMapper<org.springframework.http.HttpHeaders> headerMapper)
Sets the headerMapper.- Parameters:
headerMapper- the headerMapper to set
-
setContentType
public void setContentType(String contentType)
Sets the contentType.- Parameters:
contentType- the contentType to set
-
getErrorHandlingStrategy
public com.consol.citrus.message.ErrorHandlingStrategy getErrorHandlingStrategy()
Gets the errorHandlingStrategy.- Returns:
- the errorHandlingStrategy
-
setErrorHandlingStrategy
public void setErrorHandlingStrategy(com.consol.citrus.message.ErrorHandlingStrategy errorHandlingStrategy)
Sets the errorHandlingStrategy.- Parameters:
errorHandlingStrategy- the errorHandlingStrategy to set
-
getRequestMethod
public org.springframework.http.HttpMethod getRequestMethod()
Gets the requestMethod.- Returns:
- the requestMethod
-
getCharset
public String getCharset()
Gets the charset.- Returns:
- the charset
-
getContentType
public String getContentType()
Gets the contentType.- Returns:
- the contentType
-
getRestTemplate
public org.springframework.web.client.RestTemplate getRestTemplate()
Gets the restTemplate.- Returns:
- the restTemplate
-
getEndpointUriResolver
public com.consol.citrus.endpoint.resolver.EndpointUriResolver getEndpointUriResolver()
Gets the endpointUriResolver.- Returns:
- the endpointUriResolver
-
getHeaderMapper
public org.springframework.integration.mapping.HeaderMapper<org.springframework.http.HttpHeaders> getHeaderMapper()
Gets the headerMapper.- Returns:
- the headerMapper
-
getClientInterceptors
public List<org.springframework.http.client.ClientHttpRequestInterceptor> getClientInterceptors()
Gets the list of endpoint clientInterceptors.- Returns:
-
setClientInterceptors
public void setClientInterceptors(List<org.springframework.http.client.ClientHttpRequestInterceptor> clientInterceptors)
Sets the clientInterceptors on this implementation's rest template.- Parameters:
clientInterceptors- the clientInterceptors to set
-
setCorrelator
public void setCorrelator(com.consol.citrus.message.MessageCorrelator correlator)
Set the reply message correlator.- Parameters:
correlator- the correlator to set
-
getCorrelator
public com.consol.citrus.message.MessageCorrelator getCorrelator()
Gets the correlator.- Returns:
- the correlator
-
getRequestFactory
public org.springframework.http.client.ClientHttpRequestFactory getRequestFactory()
Gets the client request factory.- Returns:
-
setRequestFactory
public void setRequestFactory(org.springframework.http.client.ClientHttpRequestFactory requestFactory)
Sets the client request factory.- Parameters:
requestFactory-
-
getMessageConverter
public HttpMessageConverter getMessageConverter()
Gets the message converter.- Returns:
-
setMessageConverter
public void setMessageConverter(HttpMessageConverter messageConverter)
Sets the message converter.- Parameters:
messageConverter-
-
setDefaultAcceptHeader
public void setDefaultAcceptHeader(boolean defaultAcceptHeader)
Sets the defaultAcceptHeader property.- Parameters:
defaultAcceptHeader-
-
isDefaultAcceptHeader
public boolean isDefaultAcceptHeader()
Gets the value of the defaultAcceptHeader property.- Returns:
- the defaultAcceptHeader
-
isHandleAttributeHeaders
public boolean isHandleAttributeHeaders()
Gets the handleAttributeHeaders.- Returns:
-
setHandleAttributeHeaders
public void setHandleAttributeHeaders(boolean handleAttributeHeaders)
Sets the handleAttributeHeaders.- Parameters:
handleAttributeHeaders-
-
isHandleCookies
public boolean isHandleCookies()
Gets the handleCookies.- Returns:
-
setHandleCookies
public void setHandleCookies(boolean handleCookies)
Sets the handleCookies.- Parameters:
handleCookies-
-
getErrorHandler
public org.springframework.web.client.ResponseErrorHandler getErrorHandler()
Gets the errorHandler.- Returns:
-
setErrorHandler
public void setErrorHandler(org.springframework.web.client.ResponseErrorHandler errorHandler)
Sets the errorHandler.- Parameters:
errorHandler-
-
getDefaultStatusCode
public int getDefaultStatusCode()
Gets the defaultStatusCode.- Returns:
-
setDefaultStatusCode
public void setDefaultStatusCode(int defaultStatusCode)
Sets the defaultStatusCode.- Parameters:
defaultStatusCode-
-
getBinaryMediaTypes
public List<org.springframework.http.MediaType> getBinaryMediaTypes()
Gets the binaryMediaTypes.- Returns:
-
setBinaryMediaTypes
public void setBinaryMediaTypes(List<org.springframework.http.MediaType> binaryMediaTypes)
Sets the binaryMediaTypes.- Parameters:
binaryMediaTypes-
-
-