public class HttpConnector extends Object implements Connector
This subsection specifies a means for conveying ASN.1-encoded messages for the protocol exchanges described in Section 2 and Appendix D via the HyperText Transfer Protocol.
Two MIME objects are specified as follows.
Content-Type: application/timestamp-query
<<the ASN.1 DER-encoded Time-Stamp Request message>>
Content-Type: application/timestamp-reply
<<the ASN.1 DER-encoded Time-Stamp Response message>>
These MIME objects can be sent and received using common HTTP processing engines over WWW links and provides a simple browser- server transport for Time-Stamp messages.
Upon receiving a valid request, the server MUST respond with either a valid response with content type application/timestamp-response or with an HTTP error.
| Constructor and Description |
|---|
HttpConnector() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
InputStream |
connect(byte[] content) |
String |
getHostname() |
HttpsURLConnection |
getHttpsConnector() |
int |
getPort() |
void |
setHostname(String hostname) |
void |
setHttpsConnector(HttpsURLConnection httpsConnector) |
void |
setPort(int port) |
public InputStream connect(byte[] content)
public void setHostname(String hostname)
setHostname in interface Connectorpublic HttpsURLConnection getHttpsConnector()
public void setHttpsConnector(HttpsURLConnection httpsConnector)
public String getHostname()
public int getPort()
Copyright © 2023 SERPRO - Serviço Federal de Processamento de Dados. All rights reserved.