Class WFSExceptionWriter

java.lang.Object
thredds.server.wfs.WFSExceptionWriter

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

    • 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
  • Method Details

    • write

      public void write(jakarta.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