Class WFSExceptionWriter


  • public class WFSExceptionWriter
    extends Object
    A simple XML writer for XML-based WFS exceptions.
    • Constructor Detail

      • WFSExceptionWriter

        public WFSExceptionWriter​(String text,
                                  String locator,
                                  String ExceptionCode)
        Creates a new OWS Exception Report based on a text and an exception code. Some exceptions do not specify locators. For these exceptions send in null for the locator.
        Parameters:
        text - the text associated with the exception
        locator - the locator associated with the exception
        ExceptionCode - the standardized exception code
        hsr - http response to write to
    • Method Detail

      • write

        public void write​(javax.servlet.http.HttpServletResponse hsr)
                   throws IOException
        Given the information on construction, writes the necessary exception information.
        Parameters:
        hsr - the Servlet Response to write to
        Throws:
        IOException