public class HttpRequest extends Object
| Constructor and Description |
|---|
HttpRequest(HttpMethod _method,
String _queryUrl,
Map<String,String> _headers,
Map<String,Object> _parameters)
Initializes a simple http request
|
HttpRequest(HttpMethod _method,
String _queryUrl,
Map<String,String> _headers,
Map<String,Object> _parameters,
String _username,
String _password)
Initializes a simple http request
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
getHeaders()
Headers for the http request
|
HttpMethod |
getHttpMethod()
Headers for the http request
|
Map<String,Object> |
getParameters()
Parameters for the http request
|
String |
getPassword()
Password for basic authentication
|
String |
getQueryUrl()
Query url for the http request
|
String |
getUsername()
Username for basic authentication
|
public HttpRequest(HttpMethod _method, String _queryUrl, Map<String,String> _headers, Map<String,Object> _parameters)
_method - The HTTP method to use. Can be GET, HEAD, PUT, POST, DELETE and PATCH_queryUrl - The http url to create the HTTP Request. Expect a fully qualified absolute Url_headers - The key-value map of all http headers to be sent_parameters - The form data values in a key-value mappublic HttpRequest(HttpMethod _method, String _queryUrl, Map<String,String> _headers, Map<String,Object> _parameters, String _username, String _password)
_method - The HTTP method to use. Can be GET, HEAD, PUT, POST, DELETE and PATCH_queryUrl - The http url to create the HTTP Request. Expect a fully qualified absolute Url_headers - The key-value map of all http headers to be sent_parameters - The form data values in a key-value map_username - Username for basic authentication_password - Password for basic authenticationpublic HttpMethod getHttpMethod()
public String getQueryUrl()
public String getUsername()
public String getPassword()
Copyright © 2017. All rights reserved.