org.geotools.data.ows
Class Response
java.lang.Object
org.geotools.data.ows.Response
- Direct Known Subclasses:
- AbstractWPSGetCapabilitiesResponse, DescribeLayerResponse, DescribeProcessResponse, ExecuteProcessResponse, GetCapabilitiesResponse, GetFeatureInfoResponse, GetLegendGraphicResponse, GetMapResponse, GetStylesResponse, PutStylesResponse
public abstract class Response
- extends java.lang.Object
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
Constructor Summary |
Response(java.lang.String contentType,
java.io.InputStream inputStream)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
inputStream
protected java.io.InputStream inputStream
contentType
protected java.lang.String contentType
Response
public Response(java.lang.String contentType,
java.io.InputStream inputStream)
throws ServiceException,
java.io.IOException
- Throws:
ServiceException
java.io.IOException
getContentType
public java.lang.String getContentType()
getInputStream
public java.io.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:
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
protected ServiceException parseException(java.io.InputStream inputStream)
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © 1996-2010 Geotools. All Rights Reserved.