|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ProcessorMBean
Processor ManagementBean, just defines a generic description
Method Summary | |
---|---|
String |
getName()
|
String |
notFoundElement(String path,
HttpOutputStream out,
HttpInputStream in)
Let the processor load internally a not found element. |
String |
preProcess(String path)
Preprocess a path and return a replacement path. |
void |
writeError(HttpOutputStream out,
HttpInputStream in,
Exception e)
The method will process the result exception and produce output. |
void |
writeResponse(HttpOutputStream out,
HttpInputStream in,
Document document)
The method will process the result string and produce an output. |
Method Detail |
---|
String getName()
void writeResponse(HttpOutputStream out, HttpInputStream in, Document document) throws IOException
out.setCode(HttpConstants.STATUS_OKAY);
out.setHeader("Content-type", "text/html");
out.sendHeaders();
out.write("some text");
out
- The output streamin
- The input streamdocument
- A document containing the data
IOException
void writeError(HttpOutputStream out, HttpInputStream in, Exception e) throws IOException
out.setCode(HttpConstants.STATUS_OKAY);
out.setHeader("Content-type", "text/html");
out.sendHeaders();
out.write("some text");
out
- The output streamin
- The input streame
- The exception to be reported
IOException
String preProcess(String path)
path
- The original path
String notFoundElement(String path, HttpOutputStream out, HttpInputStream in) throws IOException, HttpException
path
- The request elementout
- The output streamin
- The input stream
IOException
HttpException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |