Class HttpConnection

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

    public class HttpConnection
    extends java.lang.Object
    implements com.netscape.certsrv.connector.IHttpConnection
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getRequestURI()
      Gets the HttpRequest URI
      com.netscape.certsrv.connector.IPKIMessage send​(com.netscape.certsrv.connector.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
      • Methods inherited from class java.lang.Object

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

      • mDest

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

        protected com.netscape.certsrv.connector.IRequestEncoder mReqEncoder
    • Constructor Detail

      • HttpConnection

        public HttpConnection​(com.netscape.certsrv.connector.IRemoteAuthority dest,
                              ISocketFactory factory,
                              int timeout)
      • HttpConnection

        public HttpConnection​(com.netscape.certsrv.connector.IRemoteAuthority dest,
                              ISocketFactory factory)
    • Method Detail

      • setRequestURI

        public void setRequestURI​(java.lang.String uri)
                           throws EBaseException
        Description copied from interface: com.netscape.certsrv.connector.IHttpConnection
        Sets the HttpRequest URI before send
        Specified by:
        setRequestURI in interface com.netscape.certsrv.connector.IHttpConnection
        Parameters:
        uri - the uri for the HttpRequest
        Throws:
        EBaseException
      • getRequestURI

        public java.lang.String getRequestURI()
        Description copied from interface: com.netscape.certsrv.connector.IHttpConnection
        Gets the HttpRequest URI
        Specified by:
        getRequestURI in interface com.netscape.certsrv.connector.IHttpConnection
      • send

        public com.netscape.certsrv.connector.IPKIMessage send​(com.netscape.certsrv.connector.IPKIMessage tomsg)
                                                        throws EBaseException
        sends a request to remote RA/CA, returning the result.
        Specified by:
        send in interface com.netscape.certsrv.connector.IHttpConnection
        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 interface com.netscape.certsrv.connector.IHttpConnection
        Parameters:
        content - Message to forward to authority.
        Returns:
        HttpResponse response to be parsed by the client
        Throws:
        EBaseException - for any failure