Package io.prestosql.server
Class HttpRequestSessionContext
- java.lang.Object
-
- io.prestosql.server.HttpRequestSessionContext
-
- All Implemented Interfaces:
SessionContext
public final class HttpRequestSessionContext extends Object implements SessionContext
-
-
Field Summary
Fields Modifier and Type Field Description static String
AUTHENTICATED_IDENTITY
-
Constructor Summary
Constructors Constructor Description HttpRequestSessionContext(javax.ws.rs.core.MultivaluedMap<String,String> headers, String remoteAddress, Optional<Identity> authenticatedIdentity, GroupProvider groupProvider)
-
Method Summary
-
-
-
Field Detail
-
AUTHENTICATED_IDENTITY
public static final String AUTHENTICATED_IDENTITY
- See Also:
- Constant Field Values
-
-
Method Detail
-
extractAuthorizedIdentity
public static Identity extractAuthorizedIdentity(javax.servlet.http.HttpServletRequest servletRequest, javax.ws.rs.core.HttpHeaders httpHeaders, AccessControl accessControl, GroupProvider groupProvider)
-
extractAuthorizedIdentity
public static Identity extractAuthorizedIdentity(Optional<Identity> optionalAuthenticatedIdentity, javax.ws.rs.core.MultivaluedMap<String,String> headers, AccessControl accessControl, GroupProvider groupProvider) throws AccessDeniedException
- Throws:
AccessDeniedException
-
getAuthenticatedIdentity
public Optional<Identity> getAuthenticatedIdentity()
- Specified by:
getAuthenticatedIdentity
in interfaceSessionContext
-
getIdentity
public Identity getIdentity()
- Specified by:
getIdentity
in interfaceSessionContext
-
getCatalog
public String getCatalog()
- Specified by:
getCatalog
in interfaceSessionContext
-
getSchema
public String getSchema()
- Specified by:
getSchema
in interfaceSessionContext
-
getPath
public String getPath()
- Specified by:
getPath
in interfaceSessionContext
-
getSource
public String getSource()
- Specified by:
getSource
in interfaceSessionContext
-
getRemoteUserAddress
public String getRemoteUserAddress()
- Specified by:
getRemoteUserAddress
in interfaceSessionContext
-
getUserAgent
public String getUserAgent()
- Specified by:
getUserAgent
in interfaceSessionContext
-
getClientInfo
public String getClientInfo()
- Specified by:
getClientInfo
in interfaceSessionContext
-
getClientTags
public Set<String> getClientTags()
- Specified by:
getClientTags
in interfaceSessionContext
-
getClientCapabilities
public Set<String> getClientCapabilities()
- Specified by:
getClientCapabilities
in interfaceSessionContext
-
getResourceEstimates
public ResourceEstimates getResourceEstimates()
- Specified by:
getResourceEstimates
in interfaceSessionContext
-
getTimeZoneId
public String getTimeZoneId()
- Specified by:
getTimeZoneId
in interfaceSessionContext
-
getLanguage
public String getLanguage()
- Specified by:
getLanguage
in interfaceSessionContext
-
getSystemProperties
public Map<String,String> getSystemProperties()
- Specified by:
getSystemProperties
in interfaceSessionContext
-
getCatalogSessionProperties
public Map<String,Map<String,String>> getCatalogSessionProperties()
- Specified by:
getCatalogSessionProperties
in interfaceSessionContext
-
getPreparedStatements
public Map<String,String> getPreparedStatements()
- Specified by:
getPreparedStatements
in interfaceSessionContext
-
getTransactionId
public Optional<TransactionId> getTransactionId()
- Specified by:
getTransactionId
in interfaceSessionContext
-
supportClientTransaction
public boolean supportClientTransaction()
- Specified by:
supportClientTransaction
in interfaceSessionContext
-
getTraceToken
public Optional<String> getTraceToken()
- Specified by:
getTraceToken
in interfaceSessionContext
-
-