|
AeroGear Android Library 1.1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface HttpProvider
A suite a convenience functions which wrap and clean up common HTTP request operations.
| Method Summary | |
|---|---|
HeaderAndBody |
delete(String id)
Issues an HTTP request, consumes the content, and cleans up after itself. |
HeaderAndBody |
get()
Issues an HTTP request, consumes the content, and cleans up after itself. |
URL |
getUrl()
|
HeaderAndBody |
post(byte[] data)
Issues an HTTP request, consumes the content, and cleans up after itself. |
HeaderAndBody |
post(String data)
Issues an HTTP request, consumes the content, and cleans up after itself. |
HeaderAndBody |
put(String id,
byte[] data)
Issues an HTTP request, consumes the content, and cleans up after itself. |
HeaderAndBody |
put(String id,
String data)
Issues an HTTP request, consumes the content, and cleans up after itself. |
void |
setDefaultHeader(String headerName,
String headerValue)
Will set a default header value to be used on all calls |
| Method Detail |
|---|
URL getUrl()
HeaderAndBody get()
throws HttpException
HttpException - if the http request doesn't return status 200
HeaderAndBody post(String data)
throws HttpException
HttpException - if the http request doesn't return status 200
HeaderAndBody post(byte[] data)
throws HttpException
HttpException - if the http request doesn't return status 200
HeaderAndBody put(String id,
String data)
throws HttpException
HttpException - if the http request doesn't return status 200
HeaderAndBody put(String id,
byte[] data)
throws HttpException
HttpException - if the http request doesn't return status 200
HeaderAndBody delete(String id)
throws HttpException
HttpException - if the http request doesn't return status 200
void setDefaultHeader(String headerName,
String headerValue)
headerName - nameheaderValue - value
|
AeroGear Android Library 1.1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||