Package kilim.http
Class KilimMvc.Session
- java.lang.Object
-
- kilim.Task
-
- kilim.nio.SessionTask
-
- kilim.http.HttpSession
-
- kilim.http.KilimMvc.Session
-
- All Implemented Interfaces:
java.lang.Runnable,EventSubscriber,Fiber.Worker
- Enclosing class:
- KilimMvc
public static class KilimMvc.Session extends HttpSession
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class kilim.http.HttpSession
HttpSession.StringRouter, HttpSession.StringSession
-
Nested classes/interfaces inherited from class kilim.Task
Task.Fork, Task.Invoke<TT>, Task.Spawn<TT>
-
-
Field Summary
Fields Modifier and Type Field Description (package private) KilimMvc.KilimHandlerhandler-
Fields inherited from class kilim.http.HttpSession
post, pre
-
Fields inherited from class kilim.nio.SessionTask
endpoint
-
Fields inherited from class kilim.Task
done, exitResult, fiber, id, pauseReason, running, scheduler, timer
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSession()Session(KilimMvc.KilimHandler handler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute()voidhandle(HttpRequest req, HttpResponse resp)voidsend(HttpResponse resp, byte[] msg, java.lang.String type)-
Methods inherited from class kilim.http.HttpSession
check, problem, readRequest, sendFile, sendResponse
-
Methods inherited from class kilim.nio.SessionTask
close
-
Methods inherited from class kilim.Task
checkKill, dump, equals, errNotWoven, errNotWoven, errorExit, errorExit, execute, exit, exit, fork, getCurrentTask, getExecutionThread, getPauseReason, getScheduler, getStackDepth, getState, getTid, hashCode, id, idledown, informOnExit, invoke, isDone, join, joinb, onEvent, pause, pause, pinToThread, prePin, resume, resumeOnScheduler, run, setPauseReason, setScheduler, setTid, shutdown, sleep, spawn, spawn, start, toString, unpinFromThread, yield, yield
-
-
-
-
Field Detail
-
handler
KilimMvc.KilimHandler handler
-
-
Constructor Detail
-
Session
public Session(KilimMvc.KilimHandler handler)
-
Session
protected Session()
-
-
Method Detail
-
handle
public void handle(HttpRequest req, HttpResponse resp) throws Pausable, java.lang.Exception
- Throws:
Pausablejava.lang.Exception
-
execute
public void execute() throws Pausable, java.lang.Exception- Specified by:
executein interfaceFiber.Worker- Overrides:
executein classTask- Throws:
Pausablejava.lang.Exception
-
send
public void send(HttpResponse resp, byte[] msg, java.lang.String type) throws java.io.IOException, Pausable
- Throws:
java.io.IOExceptionPausable
-
-