Class HttpRequest
- java.lang.Object
-
- org.jenkinsci.plugins.fodupload.FodApi.HttpRequest
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
FormBodyRequest
,StringBodyRequest
public abstract class HttpRequest extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HttpRequest.Verb
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpRequest
addHeader(String name, String value)
static HttpRequest
get(String url)
Collection<Map.Entry<String,String>>
headers()
static HttpRequest
json(String url, HttpRequest.Verb verb, String body)
static HttpRequest.Verb
parseVerb(String val)
HttpRequest
setHeader(String name, String value)
String
url()
HttpRequest.Verb
verb()
-
-
-
Method Detail
-
json
public static HttpRequest json(String url, HttpRequest.Verb verb, String body)
-
get
public static HttpRequest get(String url)
-
url
public String url()
-
headers
public Collection<Map.Entry<String,String>> headers()
-
verb
public HttpRequest.Verb verb()
-
addHeader
public HttpRequest addHeader(String name, String value)
-
setHeader
public HttpRequest setHeader(String name, String value)
-
parseVerb
public static HttpRequest.Verb parseVerb(String val)
-
-