Package org.somda.sdc.dpws.soap
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 Summary
Constructors Constructor Description HttpApplicationInfo(com.google.common.collect.ListMultimap<String,String> httpHeaders, String transactionId, String requestUri)Creates an instance using http headers.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.common.collect.ListMultimap<String,String>getHeaders()Retrieve http headers as multimap.Optional<String>getRequestUri()Retrieve the Optional of http request-uri, empty in case of a http response message.StringgetTransactionId()Returns an identifier for the underlying HTTP request.
-
-
-
Constructor Detail
-
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 Detail
-
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.
-
-