Package io.trino.server
Class HttpRequestSessionContext
- java.lang.Object
-
- io.trino.server.HttpRequestSessionContext
-
- All Implemented Interfaces:
SessionContext
public final class HttpRequestSessionContext extends Object implements SessionContext
-
-
Field Summary
Fields Modifier and Type Field Description static StringAUTHENTICATED_IDENTITY
-
Constructor Summary
Constructors Constructor Description HttpRequestSessionContext(javax.ws.rs.core.MultivaluedMap<String,String> headers, Optional<String> alternateHeaderName, String remoteAddress, Optional<Identity> authenticatedIdentity, GroupProvider groupProvider)
-
Method Summary
-
-
-
Field Detail
-
AUTHENTICATED_IDENTITY
public static final String AUTHENTICATED_IDENTITY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
HttpRequestSessionContext
public HttpRequestSessionContext(javax.ws.rs.core.MultivaluedMap<String,String> headers, Optional<String> alternateHeaderName, String remoteAddress, Optional<Identity> authenticatedIdentity, GroupProvider groupProvider) throws javax.ws.rs.WebApplicationException
- Throws:
javax.ws.rs.WebApplicationException
-
-
Method Detail
-
extractAuthorizedIdentity
public static Identity extractAuthorizedIdentity(javax.servlet.http.HttpServletRequest servletRequest, javax.ws.rs.core.HttpHeaders httpHeaders, Optional<String> alternateHeaderName, AccessControl accessControl, GroupProvider groupProvider)
-
extractAuthorizedIdentity
public static Identity extractAuthorizedIdentity(Optional<Identity> optionalAuthenticatedIdentity, javax.ws.rs.core.MultivaluedMap<String,String> headers, Optional<String> alternateHeaderName, AccessControl accessControl, GroupProvider groupProvider) throws AccessDeniedException
- Throws:
AccessDeniedException
-
getProtocolHeaders
public ProtocolHeaders getProtocolHeaders()
- Specified by:
getProtocolHeadersin interfaceSessionContext
-
getAuthenticatedIdentity
public Optional<Identity> getAuthenticatedIdentity()
- Specified by:
getAuthenticatedIdentityin interfaceSessionContext
-
getIdentity
public Identity getIdentity()
- Specified by:
getIdentityin interfaceSessionContext
-
getCatalog
public String getCatalog()
- Specified by:
getCatalogin interfaceSessionContext
-
getSchema
public String getSchema()
- Specified by:
getSchemain interfaceSessionContext
-
getPath
public String getPath()
- Specified by:
getPathin interfaceSessionContext
-
getSource
public String getSource()
- Specified by:
getSourcein interfaceSessionContext
-
getRemoteUserAddress
public String getRemoteUserAddress()
- Specified by:
getRemoteUserAddressin interfaceSessionContext
-
getUserAgent
public String getUserAgent()
- Specified by:
getUserAgentin interfaceSessionContext
-
getClientInfo
public String getClientInfo()
- Specified by:
getClientInfoin interfaceSessionContext
-
getClientTags
public Set<String> getClientTags()
- Specified by:
getClientTagsin interfaceSessionContext
-
getClientCapabilities
public Set<String> getClientCapabilities()
- Specified by:
getClientCapabilitiesin interfaceSessionContext
-
getResourceEstimates
public ResourceEstimates getResourceEstimates()
- Specified by:
getResourceEstimatesin interfaceSessionContext
-
getTimeZoneId
public String getTimeZoneId()
- Specified by:
getTimeZoneIdin interfaceSessionContext
-
getLanguage
public String getLanguage()
- Specified by:
getLanguagein interfaceSessionContext
-
getSystemProperties
public Map<String,String> getSystemProperties()
- Specified by:
getSystemPropertiesin interfaceSessionContext
-
getCatalogSessionProperties
public Map<String,Map<String,String>> getCatalogSessionProperties()
- Specified by:
getCatalogSessionPropertiesin interfaceSessionContext
-
getPreparedStatements
public Map<String,String> getPreparedStatements()
- Specified by:
getPreparedStatementsin interfaceSessionContext
-
getTransactionId
public Optional<TransactionId> getTransactionId()
- Specified by:
getTransactionIdin interfaceSessionContext
-
supportClientTransaction
public boolean supportClientTransaction()
- Specified by:
supportClientTransactionin interfaceSessionContext
-
getTraceToken
public Optional<String> getTraceToken()
- Specified by:
getTraceTokenin interfaceSessionContext
-
-