Пример #1
0
  @Override
  public boolean equals(Object aThat) {
    if (this == aThat) {
      return true;
    }

    if (!(aThat instanceof HPCCECLDirectClient)) {
      return false;
    }

    HPCCECLDirectClient that = (HPCCECLDirectClient) aThat;
    EclDirectServiceSoapProxy thatSoapProxy;
    try {
      thatSoapProxy = that.getSoapProxy();
    } catch (Exception e) {
      thatSoapProxy = null;
    }

    return EqualsUtil.areEqual(
            wsEclDirectServiceSoapProxy.getEndpoint(), thatSoapProxy.getEndpoint())
        && EqualsUtil.areEqual(
            ((Stub) wsEclDirectServiceSoapProxy.getEclDirectServiceSoap()).getUsername(),
            ((Stub) thatSoapProxy.getEclDirectServiceSoap()).getUsername())
        && EqualsUtil.areEqual(
            ((Stub) wsEclDirectServiceSoapProxy.getEclDirectServiceSoap()).getPassword(),
            ((Stub) thatSoapProxy.getEclDirectServiceSoap()).getPassword());
  }
Пример #2
0
 @Override
 public int hashCode() {
   int result = HashCodeUtil.SEED;
   result = HashCodeUtil.hash(result, wsEclDirectServiceSoapProxy.getEndpoint());
   result =
       HashCodeUtil.hash(
           result, ((Stub) wsEclDirectServiceSoapProxy.getEclDirectServiceSoap()).getUsername());
   result =
       HashCodeUtil.hash(
           result, ((Stub) wsEclDirectServiceSoapProxy.getEclDirectServiceSoap()).getPassword());
   return result;
 }
Пример #3
0
  /**
   * Initializes the service's underlying soap proxy. Should only be used by constructors
   *
   * @param baseURL Target service base URL
   * @param user User credentials
   * @param pass User credentials
   */
  private void initWsEclDirectServiceSoapProxy(String baseURL, String user, String pass) {
    wsEclDirectServiceSoapProxy = new EclDirectServiceSoapProxy(baseURL);

    if (wsEclDirectServiceSoapProxy != null) {
      EclDirectServiceSoap wsEclDirectServiceSoap =
          wsEclDirectServiceSoapProxy.getEclDirectServiceSoap();
      if (wsEclDirectServiceSoap != null) {
        if (user != null && pass != null)
          Connection.initStub((Stub) wsEclDirectServiceSoap, user, pass);
      }
    }
  }