Package org.somda.sdc.dpws.soap
Class HttpApplicationInfo
-
- All Implemented Interfaces:
public class HttpApplicationInfo extends ApplicationInfo
Utility class to provide application layer information for http.
-
-
Field Summary
Fields Modifier and Type Field Description public final ListMultimap<String, String>headerspublic final StringtransactionId
-
Constructor Summary
Constructors Constructor Description HttpApplicationInfo(ListMultimap<String, String> httpHeaders, String transactionId, String requestUri)Creates an instance using http headers.
-
Method Summary
Modifier and Type Method Description ListMultimap<String, String>getHeaders()Retrieve http headers as multimap. StringgetTransactionId()Returns an identifier for the underlying HTTP request. Optional<String>getRequestUri()Retrieve the Optional of http request-uri, empty in case of a http response message. -
-
Constructor Detail
-
HttpApplicationInfo
HttpApplicationInfo(ListMultimap<String, String> httpHeaders, String transactionId, String requestUri)
Creates an instance using http headers.- 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
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
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
Optional<String> getRequestUri()
Retrieve the Optional of http request-uri, empty in case of a http response message.
- Returns:
Optional of the request-uri
-
-
-
-