public class RequestSender
extends java.lang.Object
Constructor and Description |
---|
RequestSender() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
sendRequest(java.lang.String serviceURL,
byte[] request)
application/pkixcmp is used as Content-Type
GET is used as Request Method
|
static byte[] |
sendRequest(java.lang.String serviceURL,
byte[] request,
java.lang.String contentType,
java.lang.String requestMethod) |
static java.lang.String |
sendRequest(java.lang.String serviceURL,
java.lang.String request,
java.lang.String contentType,
java.lang.String requestMethod) |
public static byte[] sendRequest(java.lang.String serviceURL, byte[] request)
serviceURL
- service URL, for example, http://192.168.10.30:62295request
- ASN.1 requestpublic static byte[] sendRequest(java.lang.String serviceURL, byte[] request, java.lang.String contentType, java.lang.String requestMethod)
serviceURL
- service URL. For example, http://192.168.10.30:62295request
- ASN.1 requestcontentType
- Content type. For example, "application/pkixcmp", "application/ocsp-request" and so forthrequestMethod
- Request method. For example, "POST", "GET" and so forthpublic static java.lang.String sendRequest(java.lang.String serviceURL, java.lang.String request, java.lang.String contentType, java.lang.String requestMethod)
serviceURL
- service URL. For example, http://192.168.10.30:62295request
- string requestcontentType
- Content type. For example, "application/pkixcmp", "application/ocsp-request" and so forthrequestMethod
- Request method. For example, "POST", "GET" and so forthCopyright © 1998-2014 Gamma Technologies. All Rights Reserved.