Package org.citrusframework.http.client
Class HttpEndpointConfiguration
java.lang.Object
org.citrusframework.endpoint.AbstractEndpointConfiguration
org.citrusframework.endpoint.AbstractPollableEndpointConfiguration
org.citrusframework.http.client.HttpEndpointConfiguration
- All Implemented Interfaces:
EndpointConfiguration,PollableEndpointConfiguration
- Since:
- 1.4
- Author:
- Christoph Deppisch
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor initializes with default logging interceptor. -
Method Summary
Modifier and TypeMethodDescriptionList<org.springframework.http.MediaType>Gets the binaryMediaTypes.Gets the charset.List<org.springframework.http.client.ClientHttpRequestInterceptor>Gets the list of endpoint clientInterceptors.Gets the contentType.Gets the correlator.intGets the defaultStatusCode.Gets the endpointUriResolver.org.springframework.web.client.ResponseErrorHandlerGets the errorHandler.Gets the errorHandlingStrategy.org.springframework.integration.mapping.HeaderMapper<org.springframework.http.HttpHeaders>Gets the headerMapper.Gets the message converter.org.springframework.http.client.ClientHttpRequestFactoryGets the client request factory.org.springframework.web.bind.annotation.RequestMethodGets the requestMethod.Get the complete request URL.org.springframework.web.client.RestTemplateGets the restTemplate.booleanGets the value of the defaultAcceptHeader property.booleanGets the handleAttributeHeaders.booleanGets 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(MessageCorrelator correlator) Set the reply message correlator.voidsetDefaultAcceptHeader(boolean defaultAcceptHeader) Sets the defaultAcceptHeader property.voidsetDefaultStatusCode(int defaultStatusCode) Sets the defaultStatusCode.voidsetEndpointUriResolver(EndpointUriResolver endpointUriResolver) Sets the endpoint uri resolver.voidsetErrorHandler(org.springframework.web.client.ResponseErrorHandler errorHandler) Sets the errorHandler.voidsetErrorHandlingStrategy(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.web.bind.annotation.RequestMethod 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 org.citrusframework.endpoint.AbstractPollableEndpointConfiguration
getPollingInterval, setPollingIntervalMethods inherited from class org.citrusframework.endpoint.AbstractEndpointConfiguration
getTimeout, setTimeoutMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.citrusframework.endpoint.EndpointConfiguration
getTimeout, setTimeout
-
Constructor Details
-
HttpEndpointConfiguration
public HttpEndpointConfiguration()Default constructor initializes with default logging interceptor.
-
-
Method Details
-
getRequestUrl
Get the complete request URL.- Returns:
- the urlPath
-
setRequestUrl
Set the complete request URL.- Parameters:
url- the url to set
-
setEndpointUriResolver
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.web.bind.annotation.RequestMethod requestMethod) Sets the requestMethod.- Parameters:
requestMethod- the requestMethod to set
-
setCharset
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
Sets the contentType.- Parameters:
contentType- the contentType to set
-
getErrorHandlingStrategy
Gets the errorHandlingStrategy.- Returns:
- the errorHandlingStrategy
-
setErrorHandlingStrategy
Sets the errorHandlingStrategy.- Parameters:
errorHandlingStrategy- the errorHandlingStrategy to set
-
getRequestMethod
public org.springframework.web.bind.annotation.RequestMethod getRequestMethod()Gets the requestMethod.- Returns:
- the requestMethod
-
getCharset
Gets the charset.- Returns:
- the charset
-
getContentType
Gets the contentType.- Returns:
- the contentType
-
getRestTemplate
public org.springframework.web.client.RestTemplate getRestTemplate()Gets the restTemplate.- Returns:
- the restTemplate
-
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
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
Set the reply message correlator.- Parameters:
correlator- the correlator to set
-
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
Gets the message converter.- Returns:
-
setMessageConverter
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
Gets the binaryMediaTypes.- Returns:
-
setBinaryMediaTypes
Sets the binaryMediaTypes.- Parameters:
binaryMediaTypes-
-