public interface HttpProvider
| Modifier and Type | Method and Description |
|---|---|
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(String 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
|
URL getUrl()
HeaderAndBody get() throws HttpException
HttpException - if the http request doesn't return status 200HeaderAndBody post(String data) throws HttpException
HttpException - if the http request doesn't return status 200HeaderAndBody put(String id, String data) throws HttpException
HttpException - if the http request doesn't return status 200HeaderAndBody delete(String id) throws HttpException
HttpException - if the http request doesn't return status 200Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.