Package com.netscape.cmscore.connector
Class HttpConnection
java.lang.Object
com.netscape.cmscore.connector.HttpConnection
This represents a HTTP connection to a remote authority.
Http connection is used by the connector to send
PKI messages to a remote authority. The remote authority
will reply with a PKI message as well. An example would
be the communication between a CA and a KRA.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected RemoteAuthority
protected CMSEngine
protected ISocketFactory
protected HttpClient
protected HttpRequest
protected HttpRequestEncoder
-
Constructor Summary
ConstructorsConstructorDescriptionHttpConnection
(RemoteAuthority dest, ISocketFactory factory) HttpConnection
(RemoteAuthority dest, ISocketFactory factory, int timeout) -
Method Summary
Modifier and TypeMethodDescriptionGets the HttpRequest URIvoid
init()
send
(IPKIMessage tomsg) Sends the PKI message to the remote authority.Sends the message to the remote authority.void
setCMSEngine
(CMSEngine engine) void
setRequestURI
(String uri) Sets the HttpRequest URI before send
-
Field Details
-
engine
-
dest
-
factory
-
mHttpreq
-
mReqEncoder
-
mHttpClient
-
-
Constructor Details
-
HttpConnection
-
HttpConnection
-
-
Method Details
-
getCMSEngine
-
setCMSEngine
-
init
public void init() -
setRequestURI
Sets the HttpRequest URI before send- Parameters:
uri
- the uri for the HttpRequest- Throws:
EBaseException
-
getRequestURI
Gets the HttpRequest URI -
send
Sends the PKI message to the remote authority.- Parameters:
tomsg
- Message to forward to authority.- Throws:
EBaseException
- Failed to send message.
-
send
Sends the message to the remote authority.- Parameters:
content
- Message to forward to authority.- Returns:
- HttpResponse response to be parsed by the client
- Throws:
EBaseException
- Failed to send message.
-