|
||||||||||
| 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 |
java.lang.String |
getRedirectString()
Return the redirect string, for example h:localhost:8080/JavaBridge/test.php |
java.lang.String |
getRedirectString(java.lang.String webPath)
Return the redirect string, for example h:localhost:8080/webPath |
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 |
getSocketName()
Return the socket name, for example 8080 |
| Methods inherited from class php.java.bridge.http.SimpleContextFactory |
|---|
getBridge, getClassLoader, getContext, getId, getJavaBridgeClassLoader, getSession, initialize, invalidate, isNew, recycle, recycle, release, releaseManaged, setClassLoader, setContext, toString, visit, waitFor |
| 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 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()
Contextpublic javax.servlet.http.HttpSession getSession()
public java.lang.String getRedirectString()
getRedirectString in interface IContextFactorygetRedirectString in class SimpleContextFactorypublic java.lang.String getRedirectString(java.lang.String webPath)
getRedirectString in interface IContextFactorygetRedirectString in class SimpleContextFactorywebPath - Usually request.getContextPath()+request.getServletPath()
public java.lang.String getSocketName()
getSocketName in interface IContextFactorygetSocketName in class SimpleContextFactory
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||