Class HttpConnector

  • All Implemented Interfaces:
    com.netscape.certsrv.connector.IConnector

    public class HttpConnector
    extends java.lang.Object
    implements com.netscape.certsrv.connector.IConnector
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static org.slf4j.Logger logger  
      protected com.netscape.certsrv.connector.IHttpConnection mConn  
      protected com.netscape.certsrv.connector.IRemoteAuthority mDest  
      protected ISocketFactory mFactory  
      protected IAuthority mSource  
    • Constructor Summary

      Constructors 
      Constructor Description
      HttpConnector​(IAuthority source, java.lang.String nickName, java.lang.String clientCiphers, com.netscape.certsrv.connector.IRemoteAuthority dest, int resendInterval, IConfigStore config)  
      HttpConnector​(IAuthority source, java.lang.String nickName, java.lang.String clientCiphers, com.netscape.certsrv.connector.IRemoteAuthority dest, int resendInterval, IConfigStore config, int timeout)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean send​(com.netscape.certsrv.request.IRequest r)
      Sends the request to a remote authority.
      HttpResponse send​(java.lang.String op, java.lang.String msg)
      Sends the request to a remote authority.
      void start()
      Starts this connector.
      void stop()
      Stop the connector.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • logger

        public static org.slf4j.Logger logger
      • mDest

        protected com.netscape.certsrv.connector.IRemoteAuthority mDest
      • mConn

        protected com.netscape.certsrv.connector.IHttpConnection mConn
    • Constructor Detail

      • HttpConnector

        public HttpConnector​(IAuthority source,
                             java.lang.String nickName,
                             java.lang.String clientCiphers,
                             com.netscape.certsrv.connector.IRemoteAuthority dest,
                             int resendInterval,
                             IConfigStore config)
                      throws EBaseException
        Throws:
        EBaseException
      • HttpConnector

        public HttpConnector​(IAuthority source,
                             java.lang.String nickName,
                             java.lang.String clientCiphers,
                             com.netscape.certsrv.connector.IRemoteAuthority dest,
                             int resendInterval,
                             IConfigStore config,
                             int timeout)
                      throws EBaseException
        Throws:
        EBaseException
    • Method Detail

      • send

        public HttpResponse send​(java.lang.String op,
                                 java.lang.String msg)
                          throws EBaseException
        Description copied from interface: com.netscape.certsrv.connector.IConnector
        Sends the request to a remote authority.
        Specified by:
        send in interface com.netscape.certsrv.connector.IConnector
        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

        public boolean send​(com.netscape.certsrv.request.IRequest r)
                     throws EBaseException
        Description copied from interface: com.netscape.certsrv.connector.IConnector
        Sends the request to a remote authority.
        Specified by:
        send in interface com.netscape.certsrv.connector.IConnector
        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: com.netscape.certsrv.connector.IConnector
        Starts this connector.
        Specified by:
        start in interface com.netscape.certsrv.connector.IConnector
      • stop

        public void stop()
        Description copied from interface: com.netscape.certsrv.connector.IConnector
        Stop the connector.
        Specified by:
        stop in interface com.netscape.certsrv.connector.IConnector