Package com.netscape.cmscore.connector
Class LocalConnector
- java.lang.Object
-
- com.netscape.cmscore.connector.LocalConnector
-
- All Implemented Interfaces:
IConnector
public class LocalConnector extends java.lang.Object implements IConnector
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classLocalConnector.LocalConnListener
-
Field Summary
Fields Modifier and Type Field Description static org.slf4j.Loggerlogger
-
Constructor Summary
Constructors Constructor Description LocalConnector(ICertAuthority source, IAuthority dest)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleansend(IRequest r)send request to local authority.HttpResponsesend(java.lang.String op, java.lang.String r)Sends the request to a remote authority.voidstart()Starts this connector.voidstop()Stop the connector.protected voidtransferRequest(IRequest src, IRequest dest)
-
-
-
Constructor Detail
-
LocalConnector
public LocalConnector(ICertAuthority source, IAuthority dest)
-
-
Method Detail
-
send
public boolean send(IRequest r) throws EBaseException
send request to local authority. returns resulting request- Specified by:
sendin 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.
-
send
public HttpResponse send(java.lang.String op, java.lang.String r) throws EBaseException
Description copied from interface:IConnectorSends the request to a remote authority.- Specified by:
sendin interfaceIConnector- Parameters:
op- operation to determine receiving servlet (multi-uri support)r- Request to be forwarded to remote authority.- Returns:
- HttpResponse to be parsed by client
- Throws:
EBaseException- Failure to send request to remote authority.
-
start
public void start()
Description copied from interface:IConnectorStarts this connector.- Specified by:
startin interfaceIConnector
-
stop
public void stop()
Description copied from interface:IConnectorStop the connector.- Specified by:
stopin interfaceIConnector
-
-