|
||||||||||
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.SimpleServletContextFactory
public class SimpleServletContextFactory
Create session contexts for servlets.
In addition to the standard ContextFactory this manager keeps a reference to the HttpServletRequest.
ContextFactory
,
ContextServer
Method Summary | |
---|---|
IContext |
createContext()
Return an emulated JSR223 context. |
void |
destroy()
Removes the context factory from the classloader's list of context factories and destroys its content. |
javax.servlet.http.HttpSession |
getSession()
Return the http session handle or null; |
ISession |
getSession(java.lang.String name,
boolean clientIsNew,
int timeout)
Return a session for the JavaBridge |
java.lang.String |
toString()
|
Methods inherited from class php.java.bridge.http.SimpleContextFactory |
---|
getBridge, getClassLoader, getContext, getId, getJavaBridgeClassLoader, initialize, invalidate, recycle, recycle, release, setClassLoader, setContext, visit, waitFor, waitForInitializedContext |
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)
IJavaBridgeFactory
getSession
in interface IContextFactory
getSession
in interface IJavaBridgeFactory
getSession
in class SimpleContextFactory
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 void destroy()
IContextFactory
destroy
in interface IContextFactory
destroy
in interface IJavaBridgeFactory
destroy
in class SimpleContextFactory
public java.lang.String toString()
toString
in class SimpleContextFactory
public IContext createContext()
Context
public javax.servlet.http.HttpSession getSession()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |