Class ContextHandler.CoreContextRequest
java.lang.Object
org.eclipse.jetty.server.Request.Wrapper
org.eclipse.jetty.server.handler.ContextRequest
org.eclipse.jetty.ee9.nested.ContextHandler.CoreContextRequest
- All Implemented Interfaces:
 Content.Source, Request, Attributes, Invocable
- Enclosing class:
 ContextHandler
- 
Nested Class Summary
Nested classes/interfaces inherited from interface Attributes
Attributes.Layer, Attributes.Lazy, Attributes.Mapped, Attributes.SyntheticNested classes/interfaces inherited from interface Content.Source
Content.Source.FactoryNested classes/interfaces inherited from interface Invocable
Invocable.Callable, Invocable.InvocationType, Invocable.ReadyTask, Invocable.TaskNested classes/interfaces inherited from interface Request
Request.AttributesWrapper, Request.AuthenticationState, Request.Handler, Request.ServeAs, Request.Wrapper - 
Field Summary
Fields inherited from interface Attributes
NULLFields inherited from interface Invocable
__nonBlocking, NOOPFields inherited from interface Request
COOKIE_ATTRIBUTE, DEFAULT_LOCALES - 
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCoreContextRequest(Request wrapped, ContextHandler.ScopedContext context, HttpChannel httpChannel)  - 
Method Summary
Modifier and TypeMethodDescriptionvoidEnsure that each session is committed - ie written out to storage if necessary - because the response is about to be returned to the client.voidRelease each of the sessions as the request is now completegetAttribute(String name) Get an attribute by name.getManagedSession(SessionManager manager) Retrieve an existing session, if one exists, for a given SessionManager.getSession(boolean create) Get aSessionassociated with the request.voidsetManagedSession(ManagedSession managedSession) voidsetRequestedSession(AbstractSessionManager.RequestedSession requestedSession) Remember the session that was extracted from the id in the requestvoidsetSessionManager(SessionManager sessionManager) Methods inherited from class ContextRequest
addFailureListener, addIdleTimeoutListener, demand, getContextMethods inherited from class Request.Wrapper
addHttpStreamWrapper, asAttributeMap, clearAttributes, consumeAvailable, fail, getAttributeNameSet, getBeginNanoTime, getComponents, getConnectionMetaData, getHeaders, getHeadersNanoTime, getHttpURI, getId, getLength, getMethod, getTrailers, getTunnelSupport, getWrapped, isSecure, push, read, removeAttribute, setAttribute, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Attributes
equals, hashCodeMethods inherited from interface Content.Source
fail, rewindMethods inherited from interface Invocable
getInvocationType 
- 
Constructor Details
- 
CoreContextRequest
protected CoreContextRequest(Request wrapped, ContextHandler.ScopedContext context, HttpChannel httpChannel)  
 - 
 - 
Method Details
- 
changeSessionId
 - 
getHttpChannel
 - 
getManagedSession
 - 
getManagedSession
Retrieve an existing session, if one exists, for a given SessionManager. A session belongs to a single SessionManager, and a context can only have a single SessionManager. Thus, calling this method is equivalent to asking "Does a ManagedSession already exist for the given context?".- Parameters:
 manager- the SessionManager that should be associated with a ManagedSession- Returns:
 - the ManagedSession that already exists in the given context and is managed by the given SessionManager.
 
 - 
setManagedSession
 - 
getSessionManager
 - 
setRequestedSession
Remember the session that was extracted from the id in the request- Parameters:
 requestedSession- info about the session matching the id in the request
 - 
getAttribute
Description copied from interface:AttributesGet an attribute by name. Some attributes may be "hidden" attributes, in that they are only found by an explicit call togetAttribute(String)and they do not otherwise appear inAttributes.getAttributeNameSet()orAttributes.asAttributeMap().- Specified by:
 getAttributein interfaceAttributes- Overrides:
 getAttributein classRequest.Wrapper- Parameters:
 name- the attribute to get- Returns:
 - the value of the attribute, or 
nullif no such attribute exists 
 - 
completeSessions
public void completeSessions()Release each of the sessions as the request is now complete - 
commitSessions
public void commitSessions()Ensure that each session is committed - ie written out to storage if necessary - because the response is about to be returned to the client. - 
getRequestedSession
 - 
setSessionManager
 - 
getSession
Description copied from interface:RequestGet a
Sessionassociated with the request. Sessions may not be supported by a given configuration, in which casenullwill be returned.- Specified by:
 getSessionin interfaceRequest- Overrides:
 getSessionin classRequest.Wrapper- Parameters:
 create- True if the session should be created for the request.- Returns:
 - The session associated with the request or 
null. 
 
 -