Package org.hcjf.io.net.http
Class HttpSession
- java.lang.Object
-
- org.hcjf.service.ServiceSession
-
- org.hcjf.io.net.NetSession
-
- org.hcjf.io.net.http.HttpSession
-
- All Implemented Interfaces:
java.lang.Comparable
public class HttpSession extends NetSession
Net session implementation for the http protocol- Author:
- javaito
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.hcjf.service.ServiceSession
ServiceSession.LayerStackElement, ServiceSession.ServiceSessionSource
-
-
Constructor Summary
Constructors Constructor Description HttpSession(java.util.UUID id, NetServiceConsumer consumer)Constructor with id and consumer.
-
Method Summary
Modifier and Type Method Description HttpRequestgetRequest()Return the session's request.StreamgetStream()Returns the http2 stream object associated to the session.voidsetRequest(HttpRequest request)Set the request for the session.voidsetStream(Stream stream)Set the http2 stream object associated to the session.-
Methods inherited from class org.hcjf.io.net.NetSession
getConsumer, getRemoteHost, getRemotePort, isChecked, setChecked, setRemoteHost, setRemotePort
-
Methods inherited from class org.hcjf.service.ServiceSession
addEgressPackage, addGrant, addIngressPackage, addServiceSessionSource, addThreadTime, callAs, compareTo, containsGrant, currentIdentity, endThread, equals, findSession, findSession, get, getBody, getCurrentIdentity, getCurrentLayer, getCurrentSession, getGrants, getGuestSession, getId, getInvokerLayer, getLayerStack, getLocale, getProperties, getSessionName, getSystemSession, isGuestSession, isSystemSession, onEndThread, onStartThread, put, putAll, putLayer, remove, removeGrant, removeLayer, runAs, setLocale, setSessionName, startThread
-
-
-
-
Constructor Detail
-
HttpSession
public HttpSession(java.util.UUID id, NetServiceConsumer consumer)Constructor with id and consumer.- Parameters:
id- Session id.consumer- Net consumer.
-
-
Method Detail
-
setRequest
public final void setRequest(HttpRequest request)
Set the request for the session.- Parameters:
request- Http request.
-
getRequest
public final HttpRequest getRequest()
Return the session's request.- Returns:
- Http request.
-
getStream
public final Stream getStream()
Returns the http2 stream object associated to the session.- Returns:
- Http2 stream object.
-
setStream
public final void setStream(Stream stream)
Set the http2 stream object associated to the session.- Parameters:
stream- Http2 stream object.
-
-