mx4j.tools.adaptor.http
public interface ProcessorMBean
Version: $Revision: 1.3 $
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. |
Parameters: path The request element out The output stream in The input stream
Parameters: path The original path
Returns: the replacement path. If not modification the path param should be returned
out.setCode(HttpConstants.STATUS_OKAY);
out.setHeader("Content-type", "text/html");
out.sendHeaders();
out.write("some text");
Parameters: out The output stream in The input stream e The exception to be reported
out.setCode(HttpConstants.STATUS_OKAY);
out.setHeader("Content-type", "text/html");
out.sendHeaders();
out.write("some text");
Parameters: out The output stream in The input stream document A document containing the data