public class Request extends Object
Constructor and Description |
---|
Request(String url)
Creates a new HTTP POST request for the given URL with empty headers.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getBody()
The body of the request.
|
Map<String,String> |
getHeaders()
The HTTP request headers to be sent to the server.
|
RequestMethod |
getMethod()
The method of the HTTP request.
|
String |
getUrl()
The URL of the license or certificate server.
|
void |
setBody(byte[] body)
Sets the body of the request.
|
void |
setHeaders(Map<String,String> headers)
Sets the HTTP request headers to be sent to the server.
|
void |
setMethod(RequestMethod method)
Sets the method of the HTTP request.
|
void |
setUrl(String url)
Sets the URL of the license or certificate server
|
public Request(String url)
public String getUrl()
KeySystemConfiguration
.public void setUrl(String url)
public RequestMethod getMethod()
public void setMethod(RequestMethod method)
public Map<String,String> getHeaders()
public void setHeaders(Map<String,String> headers)
public byte[] getBody()
public void setBody(byte[] body)