|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectWFSResponse
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.
modules/unsupported/wfs (gt-wfs.jar)
Constructor Summary | |
---|---|
WFSResponse(String targetUrl,
EObject originatingRequest,
Charset charset,
String contentType,
InputStream in)
|
Method Summary | |
---|---|
Charset |
getCharacterEncoding()
Returns the character encoding if set by the server as an http header, if unknown assumes UTF-8 |
String |
getContentType()
Returns the WFS response declared content type |
InputStream |
getInputStream()
The open input stream for the response contents |
EObject |
getOriginatingRequest()
|
String |
getTargetUrl()
|
void |
setInputStream(InputStream in)
Allows to replace the input stream |
String |
toString()
|
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public WFSResponse(String targetUrl, EObject originatingRequest, Charset charset, String contentType, 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 Charset getCharacterEncoding()
UTF-8
null
public String getContentType()
public InputStream getInputStream()
public void setInputStream(InputStream in)
in
- public EObject getOriginatingRequest()
public String getTargetUrl()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |