NextApp Echo3
v3.0.b4

nextapp.echo.webcontainer.util
Class XmlRequestParser

java.lang.Object
  extended by nextapp.echo.webcontainer.util.XmlRequestParser

public class XmlRequestParser
extends java.lang.Object

Utilities for parsing XML InputStreams from browsers. This object is necessary to accommodate certain browsers that provide invalid information.


Constructor Summary
XmlRequestParser()
           
 
Method Summary
static org.w3c.dom.Document parse(javax.servlet.http.HttpServletRequest request, java.lang.String characterEncoding)
          Generates a DOM representation of the XML input POSTed to a servlet.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlRequestParser

public XmlRequestParser()
Method Detail

parse

public static org.w3c.dom.Document parse(javax.servlet.http.HttpServletRequest request,
                                         java.lang.String characterEncoding)
                                  throws java.io.IOException
Generates a DOM representation of the XML input POSTed to a servlet.

Parameters:
request - the incoming HttpServletRequest
characterEncoding - the character encoding of the incoming request (specifying this is necessary for certain misbehaving browsers)
Returns:
a DOM representation of the POSTed XML input
Throws:
java.io.IOException - if the input is invalid

NextApp Echo3
v3.0.b4