|
||||||||||
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. |
Field Summary | |
---|---|
Response |
response
The current response handle or null. |
Constructor Summary | |
---|---|
Request(JavaBridge bridge)
Creates an empty request object. |
Method Summary | |
---|---|
boolean |
begin(ParserTag[] tag)
Called for each <tag arg1 ... argn> |
ParserString |
createParserString()
Create a parser string, according to options |
void |
end(ParserString[] string)
Called for each </tag> |
void |
handleRequests()
Start handling requests until EOF. |
boolean |
init(java.io.InputStream in,
java.io.OutputStream out)
This method must be called with the current input and output streams. |
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 |
Field Detail |
---|
public Response response
response.reset()
or response.flush()
must be called at the end of each packet.
Constructor Detail |
---|
public Request(JavaBridge bridge)
bridge
- The bridge instance.init(InputStream, OutputStream)
Method Detail |
---|
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.IOException
public boolean begin(ParserTag[] tag)
IDocHandler
begin
in interface IDocHandler
tag
- The tag and the args.
public void end(ParserString[] string)
IDocHandler
end
in interface IDocHandler
string
- The tag and the args.IDocHandler.begin(ParserTag[])
public void handleRequests() throws java.io.IOException
java.io.IOException
public void reset()
init(InputStream, OutputStream)
public void setBridge(JavaBridge bridge)
bridge
- The fresh bridge and its ContextFactoryIContextFactory.recycle(String)
public void recycle()
public ParserString createParserString()
createParserString
in interface IDocHandler
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |