Methods Summary |
---|
public java.lang.Object | clone()Clone this structure.
Protocol retval = new Protocol();
if (this.protocolName != null)
retval.protocolName = new String(this.protocolName);
if (this.protocolVersion != null)
retval.protocolVersion = new String(this.protocolVersion);
if (this.transport != null)
retval.transport = new String(this.transport);
return (Object) retval;
|
public java.lang.String | encode()Return canonical form.
return protocolName.toUpperCase() + Separators.SLASH +
protocolVersion +
Separators.SLASH + transport.toUpperCase();
|
public boolean | equals(java.lang.Object other)Compare two protocols for equality.
if (! other.getClass().equals(this.getClass())) {
return false;
}
Protocol that = (Protocol) other;
if (Utils.compareToIgnoreCase(protocolName, that.protocolName)
!= 0) {
return false;
}
if (Utils.compareToIgnoreCase(protocolVersion, protocolVersion)
!= 0) {
return false;
}
if (Utils.compareToIgnoreCase(transport, that.transport) != 0) {
return false;
}
return true;
|
public java.lang.String | getProtocolName()get the protocol name
return protocolName;
|
public java.lang.String | getProtocolVersion()get the protocol version
return protocolVersion;
|
public java.lang.String | getTransport()get the transport
return transport;
|
public void | setProtocolName(java.lang.String p)Set the protocolName member
protocolName = p;
|
public void | setProtocolVersion(java.lang.String p)Set the protocolVersion member
protocolVersion = p;
|
public void | setTransport(java.lang.String t)Set the transport member
transport = t;
|