Package org.hcjf.io.net.http
Interface HttpSessionManager
-
- All Known Implementing Classes:
HttpSessionManager.DefaultHttpSessionManager
public interface HttpSessionManagerThis class is a factory in order to implements a method to create and organize the http sessions.- Author:
- javaito
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classHttpSessionManager.DefaultHttpSessionManagerThis class is a default session factory implementation.
-
Field Summary
Fields Modifier and Type Field Description static HttpSessionManagerDEFAULT
-
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)Starts with the http session creation.HttpSessiondestroySession(HttpSession session)This method must update the session object when the session is destroyed.
-
-
-
Field Detail
-
DEFAULT
static final HttpSessionManager DEFAULT
-
-
Method Detail
-
createSession
HttpSession createSession(HttpServer server, NetPackage netPackage)
Starts with the http session creation.- Parameters:
server- Http server associated to the factory.netPackage- Net package before to be decoded to a request object.- Returns:
- Return a http session instance.
-
checkSession
HttpSession checkSession(HttpSession session, HttpRequest request)
This method must update the session with the information into the request.- Parameters:
session- Net session.request- Request object.- Returns:
- Http session updated.
-
destroySession
HttpSession destroySession(HttpSession session)
This method must update the session object when the session is destroyed.- Parameters:
session- Net session.- Returns:
- Http session updated.
-
-