| Modifier and Type | Class and Description |
|---|---|
class |
Mech2RequestMultipart
This is a HTTP request class, has a
multipart/form-data content-type. |
| Modifier and Type | Method and Description |
|---|---|
Mech2Request |
Mech2Request.addHeader(String name,
String value)
Add header to the request.
|
Mech2Request |
Mech2Request.addParameter(String param,
String value)
Deprecated.
|
Mech2Request |
Mech2Request.addQueryParameter(String param,
String value)
Add query parameter to the URI
|
Mech2Request |
Mech2.delete(URI uri)
Create new DELETE request object.
|
Mech2Request |
Mech2WithBase.get(String path)
Create new GET request.
|
Mech2Request |
Mech2.get(URI uri)
Create new GET request object.
|
Mech2Request |
Mech2WithBase.getf(String pathFormat,
Object... args)
Create new GET request using
String.format(String, Object...). |
Mech2Request |
Mech2.head(URI uri)
Create new HEAD request object.
|
Mech2Request |
Mech2WithBase.post(String path)
Create new POST request.
|
Mech2Request |
Mech2.post(URI uri)
Create new POST request object.
|
Mech2Request |
Mech2WithBase.postJSON(String path,
Object data)
Create new POST request contains JSON.
|
Mech2Request |
Mech2.put(URI uri)
Create new PUT request object.
|
Mech2Request |
Mech2Request.setBody(org.apache.http.HttpEntity entity)
Set HttpEntity object to the request.
|
Mech2Request |
Mech2Request.setBodyJSON(Object form)
Set JSON value as the entity body.
This method uses jackson for serializing. |
Mech2Request |
Mech2Request.setHeader(String name,
String value)
Set header to the request.
|
Mech2Request |
Mech2Request.setQueryParameter(String param,
String value)
Set query parameter to the URI
|
Copyright © 2015. All rights reserved.