Package com.netscape.certsrv.connector
Interface IHttpConnection
-
- All Known Implementing Classes:
HttpConnection
public interface IHttpConnectionThis 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.- Version:
- $Revision$, $Date$
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetRequestURI()Gets the HttpRequest URIIPKIMessagesend(IPKIMessage tomsg)Sends the PKI message to the remote authority.HttpResponsesend(java.lang.String msg)Sends the message to the remote authority.voidsetRequestURI(java.lang.String uri)Sets the HttpRequest URI before send
-
-
-
Method Detail
-
send
IPKIMessage send(IPKIMessage tomsg) throws EBaseException
Sends the PKI message to the remote authority.- Parameters:
tomsg- Message to forward to authority.- Throws:
EBaseException- Failed to send message.
-
send
HttpResponse send(java.lang.String msg) throws EBaseException
Sends the message to the remote authority.- Parameters:
msg- Message to forward to authority.- Returns:
- HttpResponse response to be parsed by the client
- Throws:
EBaseException- Failed to send message.
-
setRequestURI
void setRequestURI(java.lang.String uri) throws EBaseExceptionSets the HttpRequest URI before send- Parameters:
uri- the uri for the HttpRequest- Throws:
EBaseException
-
getRequestURI
java.lang.String getRequestURI()
Gets the HttpRequest URI
-
-