Package com.netscape.cmscore.connector
Class HttpConnection
java.lang.Object
com.netscape.cmscore.connector.HttpConnection
- All Implemented Interfaces:
IHttpConnection
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected IRemoteAuthority
protected HttpClient
protected HttpRequest
protected IRequestEncoder
-
Constructor Summary
ConstructorsConstructorDescriptionHttpConnection
(IRemoteAuthority dest, ISocketFactory factory) HttpConnection
(IRemoteAuthority dest, ISocketFactory factory, int timeout) -
Method Summary
Modifier and TypeMethodDescriptionGets the HttpRequest URIsend
(IPKIMessage tomsg) sends a request to remote RA/CA, returning the result.sends a request to a remote authority, returning the result.void
setRequestURI
(String uri) Sets the HttpRequest URI before send
-
Field Details
-
mDest
-
mHttpreq
-
mReqEncoder
-
mHttpClient
-
-
Constructor Details
-
HttpConnection
-
HttpConnection
-
-
Method Details
-
setRequestURI
Description copied from interface:IHttpConnection
Sets the HttpRequest URI before send- Specified by:
setRequestURI
in interfaceIHttpConnection
- Parameters:
uri
- the uri for the HttpRequest- Throws:
EBaseException
-
getRequestURI
Description copied from interface:IHttpConnection
Gets the HttpRequest URI- Specified by:
getRequestURI
in interfaceIHttpConnection
-
send
sends a request to remote RA/CA, returning the result.- Specified by:
send
in interfaceIHttpConnection
- Parameters:
tomsg
- Message to forward to authority.- Throws:
EBaseException
- if request could not be encoded
-
send
sends a request to a remote authority, returning the result.- Specified by:
send
in interfaceIHttpConnection
- Parameters:
content
- Message to forward to authority.- Returns:
- HttpResponse response to be parsed by the client
- Throws:
EBaseException
- for any failure
-