public interface ServiceFilterRequest
Modifier and Type | Method and Description |
---|---|
void |
addHeader(String name,
String val)
Adds a new Header to the request
|
ServiceFilterResponse |
execute()
Executes the request
|
String |
getContent()
Gets the request's content
|
Header[] |
getHeaders()
Returns request's Headers
|
String |
getMethod()
Gets the request's method
|
byte[] |
getRawContent()
Gets the request's content
|
String |
getUrl()
Gets request's URL
|
void |
removeHeader(String name)
Remove Header from the request
|
void |
setContent(byte[] content)
Sets request content
|
void |
setContent(String content)
Sets request content
|
void |
setUrl(String url)
Sets the request's URL
|
Header[] getHeaders()
void addHeader(String name, String val)
name
- Header Nameval
- Header Valuevoid removeHeader(String name)
name
- Header Namevoid setContent(String content) throws Exception
content
- string that will be used in the setEntity methodException
void setContent(byte[] content) throws Exception
content
- byte array that will be used in the setEntity methodException
String getContent()
byte[] getRawContent()
String getUrl()
void setUrl(String url) throws URISyntaxException
url
- URISyntaxException
String getMethod()
ServiceFilterResponse execute() throws Exception
Exception