|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.data.wfs.protocol.wfs.WFSResponse
public class WFSResponse
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.
Constructor Summary | |
---|---|
WFSResponse(java.lang.String targetUrl,
org.eclipse.emf.ecore.EObject originatingRequest,
java.nio.charset.Charset charset,
java.lang.String contentType,
java.io.InputStream in)
|
Method Summary | |
---|---|
java.nio.charset.Charset |
getCharacterEncoding()
Returns the character encoding if set by the server as an http header, if unknown assumes UTF-8 |
java.lang.String |
getContentType()
Returns the WFS response declared content type |
java.io.InputStream |
getInputStream()
The open input stream for the response contents |
org.eclipse.emf.ecore.EObject |
getOriginatingRequest()
|
java.lang.String |
getTargetUrl()
|
void |
setInputStream(java.io.InputStream in)
Allows to replace the input stream |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public WFSResponse(java.lang.String targetUrl, org.eclipse.emf.ecore.EObject originatingRequest, java.nio.charset.Charset charset, java.lang.String contentType, java.io.InputStream in)
charset
- the response charset, null
if unknown, utf-8 will be assumed thencontentType
- the response content typein
- the response input stream ready to be consumedMethod Detail |
---|
public java.nio.charset.Charset getCharacterEncoding()
UTF-8
null
public java.lang.String getContentType()
public java.io.InputStream getInputStream()
public void setInputStream(java.io.InputStream in)
in
- public org.eclipse.emf.ecore.EObject getOriginatingRequest()
public java.lang.String getTargetUrl()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |