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
null
if 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
null
if this information is not available
-
getSessionId
- Returns:
- a unique identifier for the session associated with the provided request, or
null
if there is no session available
-
hasSessionId
boolean hasSessionId()- Returns:
true
iff a session is available
-
isSecure
boolean isSecure()- Returns:
true
if the request is being made over a secure protocol; otherwise,false
-