|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object php.java.bridge.JavaBridgeFactory
public abstract class JavaBridgeFactory
Create new JavaBridge instances
Session
,
Context
,
HttpContext
,
ContextFactory
,
ServletContextFactory
,
PhpScriptContextFactory
Constructor Summary | |
---|---|
JavaBridgeFactory()
|
Method Summary | |
---|---|
void |
destroy()
Destroy the factory |
JavaBridge |
getBridge()
Return the JavaBridge. |
abstract IContext |
getContext()
Return the associated JSR223 context |
abstract ISession |
getSession(java.lang.String name,
short clientIsNew,
int timeout)
Return a session for the JavaBridge |
boolean |
isNew()
Return true if this factory has already created a bridge or not. |
void |
parseHeader(Request req,
java.io.InputStream in)
Called for the request header |
void |
recycle()
Recycle the factory for new reqests. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface php.java.bridge.IJavaBridgeFactory |
---|
flushBuffer, invalidate |
Constructor Detail |
---|
public JavaBridgeFactory()
Method Detail |
---|
public abstract ISession getSession(java.lang.String name, short clientIsNew, int timeout)
getSession
in interface IJavaBridgeFactory
name
- The session name. If name is null, the name PHPSESSION will be used.clientIsNew
- one of ISession.SESSION_CREATE_NEW
ISession.SESSION_GET_OR_CREATE
or ISession.SESSION_GET
timeout
- timeout in seconds. If 0 the session does not expire.
ISession
public abstract IContext getContext()
getContext
in interface IJavaBridgeFactory
ContextFactory.getContext()
public JavaBridge getBridge()
getBridge
in interface IJavaBridgeFactory
public boolean isNew()
isNew
in interface IJavaBridgeFactory
public void recycle()
recycle
in interface IJavaBridgeFactory
public void destroy()
destroy
in interface IJavaBridgeFactory
public void parseHeader(Request req, java.io.InputStream in) throws java.io.IOException
parseHeader
in interface IJavaBridgeFactory
req
- the current requestin
- the input stream
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |