|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object mx4j.tools.adaptor.http.DefaultProcessor
DefaultPostProcessor doesn't alter the result, just publising the xml file
Constructor Summary | |
DefaultProcessor()
|
Method Summary | |
java.lang.String |
getName()
|
protected java.lang.String |
normalize(java.lang.String s)
Normalizes the given string. |
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. |
protected void |
print(java.io.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,
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. |
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 java.lang.String getName()
getName
in interface ProcessorMBean
public void writeResponse(HttpOutputStream out, HttpInputStream in, org.w3c.dom.Document document) throws java.io.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
java.io.IOException
public void writeError(HttpOutputStream out, HttpInputStream in, java.lang.Exception e) throws java.io.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
java.io.IOException
public java.lang.String preProcess(java.lang.String path)
ProcessorMBean
preProcess
in interface ProcessorMBean
path
- The original path
public java.lang.String notFoundElement(java.lang.String path, HttpOutputStream out, HttpInputStream in) throws java.io.IOException, HttpException
ProcessorMBean
notFoundElement
in interface ProcessorMBean
path
- The request elementout
- The output streamin
- The input stream
java.io.IOException
HttpException
protected void print(java.io.PrintWriter out, org.w3c.dom.Node node)
protected org.w3c.dom.Attr[] sortAttributes(org.w3c.dom.NamedNodeMap attrs)
attrs
- Description of Parameter
protected java.lang.String normalize(java.lang.String s)
s
- Description of Parameter
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |