Example #1
0
  public boolean isQueriedFormSURL() {

    if (surlType == null) {
      surlType = computeType();
    }
    return (surlType.equals(SRMURLType.QUERIED));
  }
Example #2
0
  public String getSURLType() {

    if (surlType == null) {
      surlType = computeType();
    }
    return surlType.toString();
  }
Example #3
0
  /*
   * (non-Javadoc)
   *
   * @see java.lang.Object#hashCode()
   */
  @Override
  public int hashCode() {

    final int prime = 31;
    int result = 17;
    result = prime * result + local;
    result = prime * result + (localSURL ? 1231 : 1237);
    result = prime * result + ((path == null) ? 0 : path.hashCode());
    result = prime * result + ((queryString == null) ? 0 : queryString.hashCode());
    result = prime * result + ((surlType == null) ? 0 : surlType.hashCode());
    result = prime * result + ((transfProtocol == null) ? 0 : transfProtocol.hashCode());
    return result;
  }
Example #4
0
  /*
   * (non-Javadoc)
   *
   * @see java.lang.Object#equals(java.lang.Object)
   */
  @Override
  public boolean equals(Object obj) {

    if (this == obj) return true;
    if (obj == null) return false;
    if (!(obj instanceof SRMURL)) return false;
    SRMURL other = (SRMURL) obj;
    if (local != other.local) return false;
    if (localSURL != other.localSURL) return false;
    if (path == null) {
      if (other.path != null) return false;
    } else if (!path.equals(other.path)) return false;
    if (queryString == null) {
      if (other.queryString != null) return false;
    } else if (!queryString.equals(other.queryString)) return false;
    if (surlType == null) {
      if (other.surlType != null) return false;
    } else if (!surlType.equals(other.surlType)) return false;
    if (transfProtocol == null) {
      if (other.transfProtocol != null) return false;
    } else if (!transfProtocol.equals(other.transfProtocol)) return false;
    return true;
  }