Interface HeadersAwareSenderWebServiceConnection

All Superinterfaces:
AutoCloseable, WebServiceConnection
All Known Implementing Classes:
AbstractHttpSenderConnection, AbstractSenderConnection, ClientHttpRequestConnection, HttpComponents5Connection, HttpComponentsConnection, HttpUrlConnection, JdkHttpClientConnection, JmsSenderConnection, MailSenderConnection, XmppSenderConnection

public interface HeadersAwareSenderWebServiceConnection extends WebServiceConnection
Sub-interface of WebServiceConnection that is aware of response headers and can define request headers.
Since:
2.3
  • Method Details

    • getResponseHeaderNames

      Iterator<String> getResponseHeaderNames() throws IOException
      Return an iteration over all the header names the response contains. Returns an empty Iterator if there are no headers.
      Throws:
      IOException
    • getResponseHeaders

      Iterator<String> getResponseHeaders(String name) throws IOException
      Return an iteration over all the string values of the specified response header. Return an empty Iterator if there is no header of the specified name.
      Throws:
      IOException
    • addRequestHeader

      void addRequestHeader(String name, String value) throws IOException
      Adds a request header with the given name and value. This method can be called multiple times, to allow for headers with multiple values.
      Parameters:
      name - the name of the header
      value - the value of the header
      Throws:
      IOException