Package thredds.server.wfs
Class WFSExceptionWriter
java.lang.Object
thredds.server.wfs.WFSExceptionWriter
A simple XML writer for XML-based WFS exceptions.
-
Constructor Summary
ConstructorsConstructorDescriptionWFSExceptionWriter(String text, String locator, String ExceptionCode) Creates a new OWS Exception Report based on a text and an exception code. -
Method Summary
Modifier and TypeMethodDescriptionvoidwrite(jakarta.servlet.http.HttpServletResponse hsr) Given the information on construction, writes the necessary exception information.
-
Constructor Details
-
WFSExceptionWriter
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 exceptionlocator- the locator associated with the exceptionExceptionCode- the standardized exception code
-
-
Method Details
-
write
Given the information on construction, writes the necessary exception information.- Parameters:
hsr- the Servlet Response to write to- Throws:
IOException
-