Class Request
-
- All Implemented Interfaces:
public class Request
-
-
Method Summary
Modifier and Type Method Description String
getUrl()
The URL of the license or certificate server. void
setUrl(@NonNull() String url)
Sets the URL of the license or certificate server RequestMethod
getMethod()
The method of the HTTP request. void
setMethod(@NonNull() RequestMethod method)
Sets the method of the HTTP request. Map<String, String>
getHeaders()
The HTTP request headers to be sent to the server. void
setHeaders(@NonNull() Map<String, String> headers)
Sets the HTTP request headers to be sent to the server. Array<byte>
getBody()
The body of the request. void
setBody(@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.
-
-
-
-