|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.braintreegateway.util.Http
public class Http
| Nested Class Summary | |
|---|---|
(package private) static class |
Http.RequestMethod
|
| Field Summary | |
|---|---|
private String |
authorizationHeader
|
private String |
baseMerchantURL
|
private String[] |
certificateFilenames
|
private String |
version
|
| Constructor Summary | |
|---|---|
Http(String authorizationHeader,
String baseMerchantURL,
String[] certificateFilenames,
String version)
|
|
| Method Summary | |
|---|---|
private HttpURLConnection |
buildConnection(Http.RequestMethod requestMethod,
String urlString)
|
void |
delete(String url)
|
NodeWrapper |
get(String url)
|
private SSLSocketFactory |
getSSLSocketFactory()
|
private NodeWrapper |
httpRequest(Http.RequestMethod requestMethod,
String url)
|
private NodeWrapper |
httpRequest(Http.RequestMethod requestMethod,
String url,
String postBody)
|
private static boolean |
isErrorCode(int responseCode)
|
NodeWrapper |
post(String url)
|
NodeWrapper |
post(String url,
Request request)
|
NodeWrapper |
put(String url)
|
NodeWrapper |
put(String url,
Request request)
|
static void |
throwExceptionIfErrorStatusCode(int statusCode,
String message)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private String authorizationHeader
private String baseMerchantURL
private String[] certificateFilenames
private String version
| Constructor Detail |
|---|
public Http(String authorizationHeader,
String baseMerchantURL,
String[] certificateFilenames,
String version)
| Method Detail |
|---|
public void delete(String url)
public NodeWrapper get(String url)
public NodeWrapper post(String url)
public NodeWrapper post(String url,
Request request)
public NodeWrapper put(String url)
public NodeWrapper put(String url,
Request request)
private NodeWrapper httpRequest(Http.RequestMethod requestMethod,
String url)
private NodeWrapper httpRequest(Http.RequestMethod requestMethod,
String url,
String postBody)
private SSLSocketFactory getSSLSocketFactory()
private HttpURLConnection buildConnection(Http.RequestMethod requestMethod,
String urlString)
throws IOException
IOException
public static void throwExceptionIfErrorStatusCode(int statusCode,
String message)
private static boolean isErrorCode(int responseCode)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||