Package com.netscape.cmscore.connector
Class HttpConnector
java.lang.Object
com.netscape.cmscore.connector.HttpConnector
- All Implemented Interfaces:
IConnector
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic org.slf4j.Logger
protected IHttpConnection
protected IRemoteAuthority
protected ISocketFactory
protected IAuthority
-
Constructor Summary
ConstructorsConstructorDescriptionHttpConnector
(IAuthority source, String nickName, String clientCiphers, IRemoteAuthority dest, int resendInterval, ConfigStore config) HttpConnector
(IAuthority source, String nickName, String clientCiphers, IRemoteAuthority dest, int resendInterval, ConfigStore config, int timeout) -
Method Summary
-
Field Details
-
logger
public static org.slf4j.Logger logger -
mSource
-
mDest
-
mFactory
-
mConn
-
-
Constructor Details
-
HttpConnector
public HttpConnector(IAuthority source, String nickName, String clientCiphers, IRemoteAuthority dest, int resendInterval, ConfigStore config) throws EBaseException - Throws:
EBaseException
-
HttpConnector
public HttpConnector(IAuthority source, String nickName, String clientCiphers, IRemoteAuthority dest, int resendInterval, ConfigStore config, int timeout) throws EBaseException - Throws:
EBaseException
-
-
Method Details
-
send
Description copied from interface:IConnector
Sends the request to a remote authority.- Specified by:
send
in interfaceIConnector
- Parameters:
op
- operation to determine receiving servlet (multi-uri support)msg
- Request to be forwarded to remote authority.- Returns:
- HttpResponse to be parsed by client
- Throws:
EBaseException
- Failure to send request to remote authority.
-
send
Description copied from interface:IConnector
Sends the request to a remote authority.- Specified by:
send
in interfaceIConnector
- Parameters:
r
- Request to be forwarded to remote authority.- Returns:
- true for success, otherwise false.
- Throws:
EBaseException
- Failure to send request to remote authority.
-
start
public void start()Description copied from interface:IConnector
Starts this connector.- Specified by:
start
in interfaceIConnector
-
stop
public void stop()Description copied from interface:IConnector
Stop the connector.- Specified by:
stop
in interfaceIConnector
-