Package thredds.server.wfs
Class WFSExceptionWriter
- java.lang.Object
-
- thredds.server.wfs.WFSExceptionWriter
-
public class WFSExceptionWriter extends Object
A simple XML writer for XML-based WFS exceptions.
-
-
Constructor Summary
Constructors Constructor Description WFSExceptionWriter(String text, String locator, String ExceptionCode)Creates a new OWS Exception Report based on a text and an exception code.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidwrite(javax.servlet.http.HttpServletResponse hsr)Given the information on construction, writes the necessary exception information.
-
-
-
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 exceptionlocator- the locator associated with the exceptionExceptionCode- the standardized exception codehsr- http response to write to
-
-
Method Detail
-
write
public void write(javax.servlet.http.HttpServletResponse hsr) throws IOExceptionGiven the information on construction, writes the necessary exception information.- Parameters:
hsr- the Servlet Response to write to- Throws:
IOException
-
-