Class LocalConnector

  • All Implemented Interfaces:
    IConnector

    public class LocalConnector
    extends java.lang.Object
    implements IConnector
    • Field Detail

      • logger

        public static org.slf4j.Logger logger
    • Method Detail

      • send

        public boolean send​(IRequest r)
                     throws EBaseException
        send request to local authority. returns resulting request
        Specified by:
        send in interface 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.
      • send

        public HttpResponse send​(java.lang.String op,
                                 java.lang.String r)
                          throws EBaseException
        Description copied from interface: IConnector
        Sends the request to a remote authority.
        Specified by:
        send in interface IConnector
        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: IConnector
        Starts this connector.
        Specified by:
        start in interface IConnector
      • stop

        public void stop()
        Description copied from interface: IConnector
        Stop the connector.
        Specified by:
        stop in interface IConnector
      • transferRequest

        protected void transferRequest​(IRequest src,
                                       IRequest dest)