|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.felix.mosgi.jmx.httpconnector.mx4j.tools.adaptor.http.DefaultProcessor
public class DefaultProcessor
DefaultPostProcessor doesn't alter the result, just publising the xml file
Constructor Summary | |
---|---|
DefaultProcessor()
|
Method Summary | |
---|---|
String |
getName()
|
protected String |
normalize(String s)
Normalizes the given string. |
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. |
protected void |
print(PrintWriter out,
org.w3c.dom.Node node)
|
protected org.w3c.dom.Attr[] |
sortAttributes(org.w3c.dom.NamedNodeMap attrs)
Returns a sorted list of attributes. |
void |
writeError(HttpOutputStream out,
HttpInputStream in,
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultProcessor()
Method Detail |
---|
public String getName()
getName
in interface ProcessorMBean
public void writeResponse(HttpOutputStream out, HttpInputStream in, org.w3c.dom.Document document) throws IOException
ProcessorMBean
out.setCode(HttpConstants.STATUS_OKAY);
out.setHeader("Content-type", "text/html");
out.sendHeaders();
out.write("some text");
writeResponse
in interface ProcessorMBean
out
- The output streamin
- The input streamdocument
- A document containing the data
IOException
public void writeError(HttpOutputStream out, HttpInputStream in, Exception e) throws IOException
ProcessorMBean
out.setCode(HttpConstants.STATUS_OKAY);
out.setHeader("Content-type", "text/html");
out.sendHeaders();
out.write("some text");
writeError
in interface ProcessorMBean
out
- The output streamin
- The input streame
- The exception to be reported
IOException
public String preProcess(String path)
ProcessorMBean
preProcess
in interface ProcessorMBean
path
- The original path
public String notFoundElement(String path, HttpOutputStream out, HttpInputStream in) throws IOException, HttpException
ProcessorMBean
notFoundElement
in interface ProcessorMBean
path
- The request elementout
- The output streamin
- The input stream
IOException
HttpException
protected void print(PrintWriter out, org.w3c.dom.Node node)
protected org.w3c.dom.Attr[] sortAttributes(org.w3c.dom.NamedNodeMap attrs)
attrs
- Description of Parameter
protected String normalize(String s)
s
- Description of Parameter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |