Interface HeadersAwareReceiverWebServiceConnection

All Known Implementing Classes:
AbstractReceiverConnection, HttpExchangeConnection, HttpServletConnection, JmsReceiverConnection, MailReceiverConnection, XmppReceiverConnection

public interface HeadersAwareReceiverWebServiceConnection
Interface to define access to header information for certain WebServiceConnection implementations.
Since:
2.3
Author:
Greg Turnquist
  • Method Details

    • getRequestHeaderNames

      Iterator<String> getRequestHeaderNames() throws IOException
      Returns an iteration over all the header names this request contains. Returns an empty Iterator if there are no headers.
      Throws:
      IOException
    • getRequestHeaders

      Iterator<String> getRequestHeaders(String name) throws IOException
      Returns an iteration over all the string values of the specified header. Returns an empty Iterator if there are no headers of the specified name.
      Throws:
      IOException
    • addResponseHeader

      void addResponseHeader(String name, String value) throws IOException
      Adds a response 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