public class RTTPObject
extends java.lang.Object
A representation of an RTTP Object that is present in the Liberator.
Constructor and Description |
---|
RTTPObject(java.lang.String name,
int type) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getName()
Get the object's name
|
java.lang.Object |
getPayload() |
int |
getType()
Get the RTTP type of this object
|
java.lang.String |
getValue(int fieldNumber)
Get the current value of any field for this object.
|
int |
hashCode() |
void |
setPayload(java.lang.Object payload) |
java.lang.String |
toString() |
public java.lang.String getName()
public int getType()
public java.lang.String getValue(int fieldNumber)
Get the current value of any field for this object.
This is useful during a call to Authenticator#checkRead
, so you can
find the value of a particular field for content-based permissioning.
fieldNumber
- the field number for which to obtain the valuepublic java.lang.Object getPayload()
public void setPayload(java.lang.Object payload)
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Please send bug reports and comments to Caplin support