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 Charset
getCharacterEncoding()
Returns the character encoding if set by the server as an http header, if unknown assumesUTF-8
String
getContentType()
Returns the WFS response declared content typeWFSRequest
getOriginatingRequest()
SimpleFeatureType
getQueryType()
QName
getRemoteTypeName()
void
setQueryType(SimpleFeatureType queryType)
void
setRemoteTypeName(QName remoteName)
String
toString()
-
Methods inherited from class Response
dispose, getInputStream, parseException
-
-
-
-
Constructor Detail
-
WFSResponse
public WFSResponse(WFSRequest originatingRequest, HTTPResponse httpResponse) throws ServiceException, IOException
- Throws:
ServiceException
IOException
-
-
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:
getContentType
in 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)
-
-