public interface ProcessorMBean
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName() |
java.lang.String |
notFoundElement(java.lang.String path,
HttpOutputStream out,
HttpInputStream in)
Let the processor load internally a not found element.
|
java.lang.String |
preProcess(java.lang.String path)
Preprocess a path and return a replacement path.
|
void |
writeError(HttpOutputStream out,
HttpInputStream in,
java.lang.Exception e)
The method will process the result exception and produce output.
|
void |
writeResponse(HttpOutputStream out,
HttpInputStream in,
org.w3c.dom.Document document)
The method will process the result string and produce an output.
|
java.lang.String getName()
void writeResponse(HttpOutputStream out, HttpInputStream in, org.w3c.dom.Document document) throws java.io.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 datajava.io.IOException
void writeError(HttpOutputStream out, HttpInputStream in, java.lang.Exception e) throws java.io.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 reportedjava.io.IOException
java.lang.String preProcess(java.lang.String path)
path
- The original pathjava.lang.String notFoundElement(java.lang.String path, HttpOutputStream out, HttpInputStream in) throws java.io.IOException, HttpException
path
- The request elementout
- The output streamin
- The input streamjava.io.IOException
HttpException