Package com.luciad.ogc.ows.model
Class TLcdOWSHttpTransportException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
com.luciad.ogc.ows.model.TLcdOWSTransportException
com.luciad.ogc.ows.model.TLcdOWSHttpTransportException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
TLcdOGCWMSHttpException
An HTTP specific transport exception.
This exception provides the details of an HTTP error response, namely the response code and header fields.
The response message is available as the detail message of this exception.
- Since:
- 8.2
- See Also:
-
Constructor Summary
ConstructorDescriptionTLcdOWSHttpTransportException
(int aHttpResponseCode, String aHttpResponseMessage, Map aHeaderFields) Creates a new HTTP transport exception. -
Method Summary
Modifier and TypeMethodDescriptionReturns a map of String to Lists of Strings that represent the values of the HTTP header fields.int
Returns the HTTP response code.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
TLcdOWSHttpTransportException
public TLcdOWSHttpTransportException(int aHttpResponseCode, String aHttpResponseMessage, Map aHeaderFields) Creates a new HTTP transport exception.- Parameters:
aHttpResponseCode
- the HTTP response codeaHttpResponseMessage
- the HTTP response messageaHeaderFields
- the header fields of the HTTP reponse
-
-
Method Details
-
getResponseCode
public int getResponseCode()Returns the HTTP response code. Please refer to the HTTP/1.1 specification (RFC 2616) for a list of posssible values.- Returns:
- the HTTP response code
-
getHeaderFields
Returns a map of String to Lists of Strings that represent the values of the HTTP header fields. Please refer to the HTTP/1.1 specification (RFC 2616) for a list of posssible values.- Returns:
- the HTTP header fields
-