Package com.netscape.cmscore.connector
Class HttpConnection
- java.lang.Object
-
- com.netscape.cmscore.connector.HttpConnection
-
- All Implemented Interfaces:
IHttpConnection
public class HttpConnection extends java.lang.Object implements IHttpConnection
-
-
Field Summary
Fields Modifier and Type Field Description protected IRemoteAuthoritymDestprotected HttpClientmHttpClientprotected HttpRequestmHttpreqprotected IRequestEncodermReqEncoder
-
Constructor Summary
Constructors Constructor Description HttpConnection(IRemoteAuthority dest, ISocketFactory factory)HttpConnection(IRemoteAuthority dest, ISocketFactory factory, int timeout)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetRequestURI()Gets the HttpRequest URIIPKIMessagesend(IPKIMessage tomsg)sends a request to remote RA/CA, returning the result.HttpResponsesend(java.lang.String content)sends a request to a remote authority, returning the result.voidsetRequestURI(java.lang.String uri)Sets the HttpRequest URI before send
-
-
-
Field Detail
-
mDest
protected IRemoteAuthority mDest
-
mHttpreq
protected HttpRequest mHttpreq
-
mReqEncoder
protected IRequestEncoder mReqEncoder
-
mHttpClient
protected HttpClient mHttpClient
-
-
Constructor Detail
-
HttpConnection
public HttpConnection(IRemoteAuthority dest, ISocketFactory factory, int timeout)
-
HttpConnection
public HttpConnection(IRemoteAuthority dest, ISocketFactory factory)
-
-
Method Detail
-
setRequestURI
public void setRequestURI(java.lang.String uri) throws EBaseExceptionDescription copied from interface:IHttpConnectionSets the HttpRequest URI before send- Specified by:
setRequestURIin interfaceIHttpConnection- Parameters:
uri- the uri for the HttpRequest- Throws:
EBaseException
-
getRequestURI
public java.lang.String getRequestURI()
Description copied from interface:IHttpConnectionGets the HttpRequest URI- Specified by:
getRequestURIin interfaceIHttpConnection
-
send
public IPKIMessage send(IPKIMessage tomsg) throws EBaseException
sends a request to remote RA/CA, returning the result.- Specified by:
sendin interfaceIHttpConnection- Parameters:
tomsg- Message to forward to authority.- Throws:
EBaseException- if request could not be encoded
-
send
public HttpResponse send(java.lang.String content) throws EBaseException
sends a request to a remote authority, returning the result.- Specified by:
sendin interfaceIHttpConnection- Parameters:
content- Message to forward to authority.- Returns:
- HttpResponse response to be parsed by the client
- Throws:
EBaseException- for any failure
-
-