Package org.geotools.data.ows
Class Response
Object
Response
- Direct Known Subclasses:
DescribeLayerResponse
,GetCapabilitiesResponse
,GetFeatureInfoResponse
,GetFeatureInfoResponse
,GetLegendGraphicResponse
,GetLegendGraphicResponse
,GetMapResponse
,GetStylesResponse
,GetTileResponse
,PutStylesResponse
,WFSResponse
Provides a base class for Responses from an OWS. Checks the incoming content for a ServiceException and parses it if
it encounters one.
- Author:
- rgould
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
Returns the InputStream that contains the response from the server.protected ServiceException
parseException
(InputStream inputStream)
-
Field Details
-
httpResponse
-
-
Constructor Details
-
Response
- Throws:
ServiceException
IOException
-
-
Method Details
-
dispose
public void dispose() -
getContentType
-
getInputStream
Returns the InputStream that contains the response from the server. The contents of this stream vary according to the type of request that was made, and whether it was successful or not.NOTE: Note that clients using this code are responsible for closing the InputStream when they are finished with it.
- Returns:
- the input stream containing the response from the server
-
parseException
- Throws:
IOException
-