Package org.geotools.data.wfs.internal
Class WFSResponse
-
- Direct Known Subclasses:
ComplexGetFeatureResponse,DescribeFeatureTypeResponse,DescribeStoredQueriesResponse,GetFeatureResponse,ListStoredQueriesResponse,TransactionResponseImpl,TransactionResponseImpl
public class WFSResponse extends Response
A handle to a WFS response that contains the input stream to the actual contents and some well known response information derived from the HTTP response headers.- Since:
- 2.6
- Author:
- Gabriel Roldan (OpenGeo)
-
-
Field Summary
-
Fields inherited from class Response
httpResponse
-
-
Constructor Summary
Constructors Constructor Description WFSResponse(WFSRequest originatingRequest, HTTPResponse httpResponse)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CharsetgetCharacterEncoding()Returns the character encoding if set by the server as an http header, if unknown assumesUTF-8StringgetContentType()Returns the WFS response declared content typeWFSRequestgetOriginatingRequest()SimpleFeatureTypegetQueryType()QNamegetRemoteTypeName()voidsetQueryType(SimpleFeatureType queryType)voidsetRemoteTypeName(QName remoteName)StringtoString()-
Methods inherited from class Response
dispose, getInputStream, parseException
-
-
-
-
Constructor Detail
-
WFSResponse
public WFSResponse(WFSRequest originatingRequest, HTTPResponse httpResponse) throws ServiceException, IOException
- Throws:
ServiceExceptionIOException
-
-
Method Detail
-
getCharacterEncoding
public Charset getCharacterEncoding()
Returns the character encoding if set by the server as an http header, if unknown assumesUTF-8- Returns:
- the character set for the response if set, or
null
-
getContentType
public String getContentType()
Returns the WFS response declared content type- Overrides:
getContentTypein classResponse- Returns:
- the content type of the response
-
getOriginatingRequest
public WFSRequest getOriginatingRequest()
-
getQueryType
public SimpleFeatureType getQueryType()
-
setQueryType
public void setQueryType(SimpleFeatureType queryType)
-
getRemoteTypeName
public QName getRemoteTypeName()
-
setRemoteTypeName
public void setRemoteTypeName(QName remoteName)
-
-