Package org.somda.sdc.dpws.soap
Class HttpApplicationInfo
java.lang.Object
org.somda.sdc.dpws.soap.ApplicationInfo
org.somda.sdc.dpws.soap.HttpApplicationInfo
Utility class to provide application layer information for http.
-
Constructor Summary
ConstructorsConstructorDescriptionHttpApplicationInfo(com.google.common.collect.ListMultimap<String, String> httpHeaders, String transactionId, String requestUri) Creates an instance using http headers. -
Method Summary
Modifier and TypeMethodDescriptionRetrieve http headers as multimap.Retrieve the Optional of http request-uri, empty in case of a http response message.Returns an identifier for the underlying HTTP request.
-
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
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
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
Retrieve the Optional of http request-uri, empty in case of a http response message.- Returns:
- Optional of the request-uri
-