Class Request
-
- All Implemented Interfaces:
public class Request
-
-
Method Summary
Modifier and Type Method Description StringgetUrl()The URL of the license or certificate server. voidsetUrl(@NonNull() String url)Sets the URL of the license or certificate server RequestMethodgetMethod()The method of the HTTP request. voidsetMethod(@NonNull() RequestMethod method)Sets the method of the HTTP request. Map<String, String>getHeaders()The HTTP request headers to be sent to the server. voidsetHeaders(@NonNull() Map<String, String> headers)Sets the HTTP request headers to be sent to the server. Array<byte>getBody()The body of the request. voidsetBody(@Nullable() Array<byte> body)Sets the body of the request. -
-
Constructor Detail
-
Request
Request(String url)
Creates a new HTTP POST request for the given URL with empty headers.
-
-
Method Detail
-
getUrl
@NonNull() String getUrl()
The URL of the license or certificate server. By default, this will equal the license / certificate URL configured in the KeySystemConfiguration.
-
getMethod
@NonNull() RequestMethod getMethod()
The method of the HTTP request.
-
setMethod
void setMethod(@NonNull() RequestMethod method)
Sets the method of the HTTP request.
-
getHeaders
@NonNull() Map<String, String> getHeaders()
The HTTP request headers to be sent to the server.
-
setHeaders
void setHeaders(@NonNull() Map<String, String> headers)
Sets the HTTP request headers to be sent to the server.
-
-
-
-