|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectphp.java.bridge.Request
public final class Request
This class is used to handle requests from the front-end.
| Nested Class Summary | |
|---|---|
static class |
Request.AbortException
This exception isn't an exception but a construct to emulate a one-shot continuation in Java. |
| Constructor Summary | |
|---|---|
Request(JavaBridge bridge)
Creates an empty request object. |
|
| Method Summary | |
|---|---|
boolean |
begin(php.java.bridge.ParserTag[] tag)
Called for each <tag arg1 ... |
void |
end(php.java.bridge.ParserString[] string)
Called for each </tag> |
boolean |
handleOneRequest()
Start handling one request. |
void |
handleRequests()
Start handling requests until EOF. |
void |
init(byte ch)
This method must be called with the current header option byte. |
boolean |
init(java.io.InputStream in,
java.io.OutputStream out)
This method must be called with the current input and output streams. |
void |
parseHeader(java.io.InputStream in)
Called for the header |
void |
recycle()
re-initialize for new requests |
void |
reset()
Reset the internal state so that a new input and output stream can be used for the next packed. |
void |
setBridge(JavaBridge bridge)
Set a temporary bridge into this request. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Request(JavaBridge bridge)
bridge - The bridge instance.init(InputStream, OutputStream)| Method Detail |
|---|
public void init(byte ch)
ch - the current php options.
public boolean init(java.io.InputStream in,
java.io.OutputStream out)
throws java.io.IOException
in - The input stream.out - The output stream.
java.io.IOExceptionpublic boolean begin(php.java.bridge.ParserTag[] tag)
begin in interface IDocHandlertag - The tag and the args.
public void end(php.java.bridge.ParserString[] string)
end in interface IDocHandlerstring - The tag and the args.IDocHandler.begin(ParserTag[])
public void handleRequests()
throws java.io.IOException
java.io.IOException
public boolean handleOneRequest()
throws java.io.IOException
java.io.IOExceptionpublic void reset()
init(InputStream, OutputStream)public void setBridge(JavaBridge bridge)
bridge - The fresh bridge and its ContextFactoryIContextFactory.recycle(String)public void recycle()
public void parseHeader(java.io.InputStream in)
throws java.io.IOException
parseHeader in interface IDocHandlerin - the input stream
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||