|
AeroGear Android Library 1.2.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.aerogear.android.impl.http.HttpRestProviderForPush
public class HttpRestProviderForPush
This is a stopgap class to provide HTTP Basic Authentication until we move Authenticator support to the HttpProvider level.
| Constructor Summary | |
|---|---|
HttpRestProviderForPush(URL url,
Integer timeout)
|
|
| 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 |
void |
setPasswordAuthentication(String username,
String password)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HttpRestProviderForPush(URL url,
Integer timeout)
| Method Detail |
|---|
public URL getUrl()
getUrl in interface HttpProvider
public HeaderAndBody get()
throws HttpException
HttpProvider
get in interface HttpProviderHttpException - if the http request doesn't return status 200
public HeaderAndBody post(String data)
throws HttpException
HttpProvider
post in interface HttpProviderHttpException - if the http request doesn't return status 200
public HeaderAndBody post(byte[] data)
throws HttpException
HttpProvider
post in interface HttpProviderHttpException - if the http request doesn't return status 200
public HeaderAndBody put(String id,
String data)
throws HttpException
HttpProvider
put in interface HttpProviderHttpException - if the http request doesn't return status 200
public HeaderAndBody put(String id,
byte[] data)
throws HttpException
HttpProvider
put in interface HttpProviderHttpException - if the http request doesn't return status 200
public HeaderAndBody delete(String id)
throws HttpException
HttpProvider
delete in interface HttpProviderHttpException - if the http request doesn't return status 200
public void setDefaultHeader(String headerName,
String headerValue)
HttpProvider
setDefaultHeader in interface HttpProviderheaderName - nameheaderValue - value
public void setPasswordAuthentication(String username,
String password)
|
AeroGear Android Library 1.2.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||