public interface RequestHandler
| Modifier and Type | Method and Description |
|---|---|
String |
get(String uri)
Returns the returned data at the specified URI.
|
String |
getCharacterEncoding()
Returns the character encoding used by this handler.
|
InputStream |
getInputStream(String uri)
Returns an InputStream from the specified URI.
|
String |
post(org.apache.http.client.methods.HttpPost data)
Posts new data to the server and returns the response as a string.
|
void |
setCharacterEncoding(String characterEncoding)
Sets the character encoding used by this handler.
|
String getCharacterEncoding()
void setCharacterEncoding(String characterEncoding)
characterEncoding - to useInputStream getInputStream(String uri) throws IOException
uri - to get input stream forIOExceptionString get(String uri) throws IOException
uri - to get string data atIOExceptionString post(org.apache.http.client.methods.HttpPost data) throws IOException
data - to postIOExceptionCopyright © 2014–2015. All rights reserved.