|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectphp.java.bridge.http.SimpleContextFactory
php.java.servlet.ServletContextFactory
php.java.servlet.RemoteServletContextFactory
public class RemoteServletContextFactory
Create session contexts for servlets.
In addition to the standard ContextFactory this manager keeps a reference to the HttpServletRequest.
ContextFactory
,
ContextServer
Method Summary | |
---|---|
static ServletContextFactory |
addNew(javax.servlet.Servlet servlet,
javax.servlet.ServletContext kontext,
javax.servlet.http.HttpServletRequest proxy,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Create and add a new ContextFactory. |
IContext |
createContext()
Return an emulated JSR223 context. |
ISession |
getSession(java.lang.String name,
boolean clientIsNew,
int timeout)
|
void |
waitFor()
Wait for the context factory to finish. |
void |
waitFor(long timeout)
Wait for the context factory to finish. |
Methods inherited from class php.java.servlet.ServletContextFactory |
---|
destroy, getSession, toString |
Methods inherited from class php.java.bridge.http.SimpleContextFactory |
---|
finishContext, getBridge, getClassLoader, getContext, getId, recycle, recycle, recycleLegacy, remove, removeOrphaned, setClassLoader, setContext, setIsLegacyClient, visit |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public ISession getSession(java.lang.String name, boolean clientIsNew, int timeout)
getSession
in interface IContextFactory
getSession
in class ServletContextFactory
name
- The session name. If name is null, the name PHPSESSION will be used.clientIsNew
- true if the client wants a new sessiontimeout
- timeout in seconds. If 0 the session does not expire.
ISession
public static ServletContextFactory addNew(javax.servlet.Servlet servlet, javax.servlet.ServletContext kontext, javax.servlet.http.HttpServletRequest proxy, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
req
- The HttpServletRequestres
- The HttpServletResponse
public IContext createContext()
createContext
in class ServletContextFactory
Context
public void waitFor() throws java.lang.InterruptedException
waitFor
in interface IContextFactory
waitFor
in class SimpleContextFactory
java.lang.InterruptedException
ContextRunner
public void waitFor(long timeout) throws java.lang.InterruptedException
waitFor
in interface IContextFactory
waitFor
in class SimpleContextFactory
timeout
- The timeout
java.lang.InterruptedException
ContextRunner
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |