Class HttpApplicationInfo

java.lang.Object
org.somda.sdc.dpws.soap.ApplicationInfo
org.somda.sdc.dpws.soap.HttpApplicationInfo

public class HttpApplicationInfo extends ApplicationInfo
Utility class to provide application layer information for http.
  • Constructor Details

    • HttpApplicationInfo

      public HttpApplicationInfo(com.google.common.collect.ListMultimap<String,String> httpHeaders, String transactionId, @Nullable String requestUri)
      Creates an instance using http headers.

      All keys will be converted to lower case.

      Parameters:
      httpHeaders - multimap of available headers.
      transactionId - id of the request response transaction.
      requestUri - the http request-uri, null for http response messages.
  • Method Details

    • getHeaders

      public com.google.common.collect.ListMultimap<String,String> getHeaders()
      Retrieve http headers as multimap.

      Each value seen for a key will be added to the list of values for said key. All keys are lower case.

      Returns:
      ListMultimap of all headers
    • getTransactionId

      public String getTransactionId()
      Returns an identifier for the underlying HTTP request.
      Returns:
      the identifier, e.g. to be used to deduce relations between request and response messages.
    • getRequestUri

      public Optional<String> getRequestUri()
      Retrieve the Optional of http request-uri, empty in case of a http response message.
      Returns:
      Optional of the request-uri