Package com.atlassian.bitbucket.request
Interface RequestMetadata
- All Known Subinterfaces:
RequestContext,RequestInfoProvider
public interface RequestMetadata
Interface for providing immutable request meta data to
RequestManager. These details are used to set up
auditing, logging and profiling.-
Method Summary
-
Method Details
-
getAction
- Returns:
- the URL or command which was requested, omitting any scheme, host, port and context path information. Query parameters for the request should also not be returned, as they may contain sensitive data
-
getDetails
- Returns:
- any further details associated with the request that are relevant, or
nullif not relevant
-
getProtocol
- Returns:
- the protocol of the request
-
getRemoteAddress
- Returns:
- a comma-delimited string containing 1 or more IP addresses for the provided request, or
nullif this information is not available
-
getSessionId
- Returns:
- a unique identifier for the session associated with the provided request, or
nullif there is no session available
-
hasSessionId
boolean hasSessionId()- Returns:
trueiff a session is available
-
isSecure
boolean isSecure()- Returns:
trueif the request is being made over a secure protocol; otherwise,false
-