Package com.vaadin.browserless.internal
Class SessionObjects
java.lang.Object
com.vaadin.browserless.internal.SessionObjects
Holds the objects created during session initialization, before they are
installed as thread-locals. Used by
MockVaadin.createSessionObjects(com.vaadin.flow.server.VaadinServletService)
to allow callers (e.g. multi-user context) to manage thread-locals
themselves.
For internal use only. May be renamed or removed in a future release.
-
Constructor Summary
ConstructorsConstructorDescriptionSessionObjects(VaadinSession session, VaadinRequest request, VaadinResponse response, MockHttpSession httpSession) Groups the four objects that make up one mocked user's session. -
Method Summary
Modifier and TypeMethodDescriptioncopy(VaadinSession session, VaadinRequest request, VaadinResponse response, MockHttpSession httpSession) Returns a copy of this group with the given objects in place of the current ones.booleanReturns the HTTP session the Vaadin session is stored in.Returns the request bound to the session.Returns the response bound to the session.Returns the session.inthashCode()toString()
-
Constructor Details
-
SessionObjects
public SessionObjects(VaadinSession session, VaadinRequest request, VaadinResponse response, MockHttpSession httpSession) Groups the four objects that make up one mocked user's session.- Parameters:
session- the sessionrequest- the request bound to the sessionresponse- the response bound to the sessionhttpSession- the HTTP session the Vaadin session is stored in
-
-
Method Details
-
getSession
Returns the session.- Returns:
- the session
-
getRequest
Returns the request bound to the session.- Returns:
- the request
-
getResponse
Returns the response bound to the session.- Returns:
- the response
-
getHttpSession
Returns the HTTP session the Vaadin session is stored in.- Returns:
- the HTTP session
-
copy
public SessionObjects copy(VaadinSession session, VaadinRequest request, VaadinResponse response, MockHttpSession httpSession) Returns a copy of this group with the given objects in place of the current ones.- Parameters:
session- the sessionrequest- the request bound to the sessionresponse- the response bound to the sessionhttpSession- the HTTP session the Vaadin session is stored in- Returns:
- the new group
-
toString
-
hashCode
public int hashCode() -
equals
-