public class Mech2WithBase extends Object
| Constructor and Description |
|---|
Mech2WithBase(Mech2 mech2,
URI baseURI) |
| Modifier and Type | Method and Description |
|---|---|
Mech2WithBase |
disableRedirectHandling()
Disable redirect handling.
|
Mech2Request |
get(String path) |
URI |
getBaseURI() |
Mech2Request |
getf(String pathFormat,
Object... args) |
Mech2 |
getMech2() |
Mech2Request |
post(String path) |
Mech2Request |
postJSON(String path,
Object data) |
Mech2RequestMultipart |
postMultipart(String path) |
Mech2RequestMultipart |
postMultipart(String path,
Charset charset) |
public Mech2 getMech2()
public URI getBaseURI()
public Mech2Request get(String path) throws URISyntaxException
URISyntaxExceptionpublic Mech2Request getf(String pathFormat, Object... args) throws URISyntaxException
URISyntaxExceptionpublic Mech2WithBase disableRedirectHandling()
public Mech2Request post(String path) throws URISyntaxException
URISyntaxExceptionpublic Mech2Request postJSON(String path, Object data) throws URISyntaxException, com.fasterxml.jackson.core.JsonProcessingException
URISyntaxExceptioncom.fasterxml.jackson.core.JsonProcessingExceptionpublic Mech2RequestMultipart postMultipart(String path)
public Mech2RequestMultipart postMultipart(String path, Charset charset)
Copyright © 2014. All rights reserved.