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 IRemoteAuthority
mDest
protected HttpClient
mHttpClient
protected HttpRequest
mHttpreq
protected IRequestEncoder
mReqEncoder
-
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.String
getRequestURI()
Gets the HttpRequest URIIPKIMessage
send(IPKIMessage tomsg)
sends a request to remote RA/CA, returning the result.HttpResponse
send(java.lang.String content)
sends a request to a remote authority, returning the result.void
setRequestURI(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 EBaseException
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
public java.lang.String getRequestURI()
Description copied from interface:IHttpConnection
Gets the HttpRequest URI- Specified by:
getRequestURI
in interfaceIHttpConnection
-
send
public IPKIMessage send(IPKIMessage tomsg) throws EBaseException
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
public HttpResponse send(java.lang.String content) throws EBaseException
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
-
-