Class 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 Detail

      • HttpEndpointConfiguration

        public HttpEndpointConfiguration()
        Default constructor initializes with default logging interceptor.
    • 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 -