|
||||||||||
| 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 factory keeps a reference to the HttpServletRequest.
ContextFactory,
ContextServer| Method Summary | |
|---|---|
IContext |
createContext()
Return an emulated JSR223 context. |
void |
destroy()
Destroy the factory |
javax.servlet.http.HttpSession |
getSession()
Return the http session handle; |
ISession |
getSession(java.lang.String name,
short clientIsNew,
int timeout)
Return a session for the JavaBridge |
ISession |
getSimpleSession(java.lang.String name,
boolean clientIsNew,
int timeout)
|
static void |
throwJavaSessionException()
Only for internal use |
| Methods inherited from class php.java.bridge.http.SimpleContextFactory |
|---|
flushBuffer, getBridge, getContext, getId, getSimpleSession, initialize, invalidate, isNew, parseHeader, recycle, recycle, release, releaseManaged, setContext, toString, visit, waitFor |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public ISession getSimpleSession(java.lang.String name,
boolean clientIsNew,
int timeout)
public ISession getSession(java.lang.String name,
short clientIsNew,
int timeout)
getSession in interface IContextFactorygetSession in interface IJavaBridgeFactorygetSession in class SimpleContextFactoryname - 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.
ISessionpublic void destroy()
destroy in interface IJavaBridgeFactorydestroy in class SimpleContextFactorypublic IContext createContext()
HttpContextpublic static void throwJavaSessionException()
public javax.servlet.http.HttpSession getSession()
java.lang.IllegalStateException - if java_session has not been called at the beginning of the PHP script
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||