Package org.hcjf.io.net.http
Class HttpSessionManager.DefaultHttpSessionManager
- java.lang.Object
-
- org.hcjf.io.net.http.HttpSessionManager.DefaultHttpSessionManager
-
- All Implemented Interfaces:
HttpSessionManager
- Enclosing interface:
- HttpSessionManager
public static class HttpSessionManager.DefaultHttpSessionManager extends java.lang.Object implements HttpSessionManager
This class is a default session factory implementation.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.hcjf.io.net.http.HttpSessionManager
HttpSessionManager.DefaultHttpSessionManager
-
-
Field Summary
-
Fields inherited from interface org.hcjf.io.net.http.HttpSessionManager
DEFAULT
-
-
Method Summary
Modifier and Type Method Description HttpSessioncheckSession(HttpSession session, HttpRequest request)This method must update the session with the information into the request.HttpSessioncreateSession(HttpServer server, NetPackage netPackage)Default http session factory creation.HttpSessiondestroySession(HttpSession session)This method must update the session object when the session is destroyed.
-
-
-
Method Detail
-
createSession
public HttpSession createSession(HttpServer server, NetPackage netPackage)
Default http session factory creation.- Specified by:
createSessionin interfaceHttpSessionManager- Parameters:
server- Http server associated to the factory.netPackage- Net package before to be decoded to a request object.- Returns:
- Default http session factory.
-
checkSession
public HttpSession checkSession(HttpSession session, HttpRequest request)
This method must update the session with the information into the request.- Specified by:
checkSessionin interfaceHttpSessionManager- Parameters:
session- Net session.request- Request object.- Returns:
- Http session updated.
-
destroySession
public HttpSession destroySession(HttpSession session)
This method must update the session object when the session is destroyed.- Specified by:
destroySessionin interfaceHttpSessionManager- Parameters:
session- Net session.- Returns:
- Http session updated.
-
-