public class HttpStubProvider extends Object implements HttpProvider
| Constructor and Description |
|---|
HttpStubProvider(URL url) |
HttpStubProvider(URL url,
HeaderAndBody response) |
| Modifier and Type | Method and Description |
|---|---|
HeaderAndBody |
delete(String id) |
HeaderAndBody |
get() |
URL |
getUrl() |
HeaderAndBody |
post(byte[] arg0) |
HeaderAndBody |
post(String data) |
HeaderAndBody |
put(String arg0,
byte[] arg1) |
HeaderAndBody |
put(String id,
String data) |
void |
setDefaultHeader(String headerName,
String headerValue) |
public HttpStubProvider(URL url)
public HttpStubProvider(URL url, HeaderAndBody response)
public URL getUrl()
getUrl in interface HttpProviderpublic HeaderAndBody get()
get in interface HttpProviderpublic HeaderAndBody post(String data)
post in interface HttpProviderpublic HeaderAndBody put(String id, String data)
put in interface HttpProviderpublic HeaderAndBody delete(String id)
delete in interface HttpProviderpublic void setDefaultHeader(String headerName, String headerValue)
setDefaultHeader in interface HttpProviderpublic HeaderAndBody post(byte[] arg0) throws HttpException
post in interface HttpProviderHttpExceptionpublic HeaderAndBody put(String arg0, byte[] arg1) throws HttpException
put in interface HttpProviderHttpExceptionCopyright © 2014 JBoss by Red Hat. All Rights Reserved.