|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jenkinsci.plugins.relution.net.Request
public class Request
Nested Class Summary | |
---|---|
static interface |
Request.Method
Supported request methods. |
Constructor Summary | |
---|---|
Request(int method,
String url)
Create an new Request Object |
Method Summary | |
---|---|
void |
addHeader(String name,
String value)
Add a key/value pair to the Requestheader. |
void |
addHeader(String name,
String format,
Object... args)
Add a key/value pair in an specific format to the Requestheader. |
org.apache.http.client.methods.HttpRequestBase |
createHttpRequest()
creation of a new Request (HttpGet, HttpPost, HttpPut, HttpDelete) with a (possibly) number of header values. |
org.apache.http.HttpEntity |
entity()
|
RequestQueryFields |
queryFields()
|
void |
setEntity(org.apache.http.HttpEntity entity)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Request(int method, String url)
method
- 0: GET, 1: POST, 2: PUT, 3: DELETEurl
- specific url to which the request responseMethod Detail |
---|
public void addHeader(String name, String value)
name
- key of the Headerfield.value
- value of the Headerfield.public void addHeader(String name, String format, Object... args)
name
- key of the Headerfield.format
- arguments will be concatenated @see String.format(String, Object...)
args
- values concatenated to a new value which will be added as a Headerfield.public RequestQueryFields queryFields()
public org.apache.http.HttpEntity entity()
public void setEntity(org.apache.http.HttpEntity entity)
entity
- HttpEntity to be set.public org.apache.http.client.methods.HttpRequestBase createHttpRequest() throws URISyntaxException
URISyntaxException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |