public class HTTPMethods extends Object
| Constructor and Description |
|---|
HTTPMethods() |
| Modifier and Type | Method and Description |
|---|---|
static Map<String,Object> |
doDelete(String urlString)
Send HTTP DELETE request to the urlString and return response code
|
static Map<String,Object> |
doGet(String urlString)
Send HTTP GET request to the urlString and return response code and response body
|
static Map<String,Object> |
doPatch(String urlString,
String patchBody)
Send HTTP PATCH request to the urlString with patchBody and return response code and response body
|
static Map<String,Object> |
doPost(String urlString,
String postBody)
Send HTTP POST request to the urlString with postBody and return response code and response body
|
static Map<String,Object> |
doPut(String urlString,
String putBody)
Send HTTP PUT request to the urlString with putBody and return response code and response body
|
public static Map<String,Object> doGet(String urlString)
urlString - The URL that the GET request should be sent topublic static Map<String,Object> doPost(String urlString, String postBody)
urlString - The URL that the POST request should be sent topostBody - The body of the POST requestpublic static Map<String,Object> doPut(String urlString, String putBody)
urlString - The URL that the PUT request should be sent toputBody - The body of the PUT requestpublic static Map<String,Object> doDelete(String urlString)
urlString - The URL that the DELETE request should be sent topublic static Map<String,Object> doPatch(String urlString, String patchBody)
urlString - The URL that the PATCH request should be sent topatchBody - The body of the PATCH requestCopyright © 2016 Open Geospatial Consortium. All rights reserved.