Class HttpRequestServiceImpl

    • Constructor Detail

      • HttpRequestServiceImpl

        public HttpRequestServiceImpl()
    • Method Detail

      • getResponseHeaderHandler

        public ResponseHeaderHandler<java.net.HttpURLConnection> getResponseHeaderHandler()
        Returns:
        the responseHeaderHandler
      • setResponseHeaderHandler

        public void setResponseHeaderHandler​(ResponseHeaderHandler<java.net.HttpURLConnection> handler)
        Specify how we handle headers from the HTTP response.
        Parameters:
        handler - the handler, default is a DiscardResponseHeaders.
      • getRequestHeaderProvider

        public RequestHeaderProvider<java.net.HttpURLConnection> getRequestHeaderProvider()
      • setRequestHeaderProvider

        public void setRequestHeaderProvider​(RequestHeaderProvider<java.net.HttpURLConnection> handler)
        Specify how we want to generate the initial set of HTTP Headers.
        Parameters:
        handler - the handler, default is a NoRequestHeaders
      • getUrl

        public java.lang.String getUrl()
        Returns:
        the url
      • setUrl

        public void setUrl​(java.lang.String s)
        Parameters:
        s - the url to set; can be of the form %message{key1} to use the metadata value associated with key1
      • getContentType

        public java.lang.String getContentType()
        Returns:
        the contentType
      • setContentType

        public void setContentType​(java.lang.String ct)
        Parameters:
        ct - the contentType to set; can be of the form %message{key1} to use the metadata value associated with key1
      • withContentType

        public <T extends HttpRequestServiceImpl> T withContentType​(java.lang.String s)
        Since:
        3.9.0
      • getMethod

        public java.lang.String getMethod()
        Returns:
        the method
      • setMethod

        public void setMethod​(java.lang.String m)
        Parameters:
        m - the method to set; can be of the form %message{key1} to use the metadata value associated with key1
      • getAuthenticator

        public HttpAuthenticator getAuthenticator()
        Returns:
        the authenticator
      • setAuthenticator

        public void setAuthenticator​(HttpAuthenticator auth)
        Parameters:
        auth - the authenticator to set