- Direct Known Subclasses:
- DescribeLayerResponse, GetCapabilitiesResponse, GetFeatureInfoResponse, GetLegendGraphicResponse, GetMapResponse, GetStylesResponse, PutStylesResponse
public abstract class Response
- extends Object
Provides a base class for Responses from an OWS. Checks the incoming content
for a ServiceException and parses it if it encounters one.
|Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
protected HTTPResponse httpResponse
public Response(HTTPResponse httpResponse)
public void dispose()
public String getContentType()
public InputStream 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 that clients using this code are responsible for closing the
InputStream when they are finished with it.
- the input stream containing the response from the server
protected ServiceException parseException(InputStream inputStream)
Copyright © 1996-2013 Geotools. All Rights Reserved.