Package com.caplin.server.auth
Class RTTPObject
- java.lang.Object
-
- com.caplin.server.auth.RTTPObject
-
public class RTTPObject extends java.lang.Object
A representation of an RTTP Object that is present in the Liberator.
-
-
Constructor Summary
Constructors Constructor Description RTTPObject(java.lang.String name, int type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.String
getName()
Get the object's namejava.lang.Object
getPayload()
int
getType()
Get the RTTP type of this objectjava.lang.String
getValue(int fieldNumber)
Get the current value for the specified object and field number.java.lang.String
getValue(java.lang.String fieldName)
Get the current value for the specified object and field name.int
hashCode()
void
setPayload(java.lang.Object payload)
java.lang.String
toString()
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Get the object's name- Returns:
- the object name
-
getType
public int getType()
Get the RTTP type of this object- Returns:
- the rttp type of this object
-
getValue
public java.lang.String getValue(int fieldNumber)
Get the current value for the specified object and field number.
This is useful during a call to
Authenticator#checkRead
, so you can find the value of a particular field for content-based permissioning.- Parameters:
fieldNumber
- the field number for which to obtain the value- Returns:
- the current value of the specified field for this object
-
getValue
public java.lang.String getValue(java.lang.String fieldName)
Get the current value for the specified object and field name.
This is useful during a call to
Authenticator#checkRead
, so you can find the value of a particular field for content-based permissioning.- Parameters:
fieldName
- the field name for which to obtain the value- Returns:
- the current value of the specified field for this object
-
getPayload
public java.lang.Object getPayload()
-
setPayload
public void setPayload(java.lang.Object payload)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-