Class OgcXmlUtil


  • public class OgcXmlUtil
    extends java.lang.Object
    Author:
    Daniel Koch, terrestris GmbH & Co. KG
    • Constructor Summary

      Constructors 
      Constructor Description
      OgcXmlUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static org.w3c.dom.Element getDocumentElement​(org.w3c.dom.Document doc)
      Return the document Element of a Document
      static org.w3c.dom.Document getDocumentFromString​(java.lang.String xml)  
      static java.lang.String getPathInDocument​(org.w3c.dom.Document document, java.lang.String path)  
      static org.w3c.dom.NodeList getPathInDocumentAsNodeList​(org.w3c.dom.Document document, java.lang.String path)  
      static java.lang.String getRequestBody​(javax.servlet.http.HttpServletRequest request)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OgcXmlUtil

        public OgcXmlUtil()
    • Method Detail

      • getRequestBody

        public static java.lang.String getRequestBody​(javax.servlet.http.HttpServletRequest request)
        Parameters:
        request -
        Returns:
      • getDocumentFromString

        public static org.w3c.dom.Document getDocumentFromString​(java.lang.String xml)
                                                          throws java.io.IOException
        Parameters:
        xml -
        Returns:
        Throws:
        java.io.IOException
      • getPathInDocument

        public static java.lang.String getPathInDocument​(org.w3c.dom.Document document,
                                                         java.lang.String path)
                                                  throws InterceptorException
        Parameters:
        document -
        path -
        Returns:
        Throws:
        InterceptorException
      • getPathInDocumentAsNodeList

        public static org.w3c.dom.NodeList getPathInDocumentAsNodeList​(org.w3c.dom.Document document,
                                                                       java.lang.String path)
                                                                throws InterceptorException
        Parameters:
        document -
        path -
        Returns:
        Throws:
        InterceptorException
      • getDocumentElement

        public static org.w3c.dom.Element getDocumentElement​(org.w3c.dom.Document doc)
        Return the document Element of a Document
        Parameters:
        doc - The Document to obtain the document element from
        Returns: