Class SecurityRoleRef
- java.lang.Object
-
- org.apache.tomcat.util.descriptor.web.SecurityRoleRef
-
- All Implemented Interfaces:
java.io.Serializable
public class SecurityRoleRef extends java.lang.Object implements java.io.SerializableRepresentation of a security role reference for a web application, as represented in a
<security-role-ref>element in the deployment descriptor.- Since:
- Tomcat 5.5
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SecurityRoleRef()Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetLink()Get the role link.java.lang.StringgetName()Get the role name.inthashCode()voidsetLink(java.lang.String link)Set the role link.voidsetName(java.lang.String name)Set the role name.java.lang.StringtoString()Return a String representation of this object.
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Get the role name.- Returns:
- the role name
-
setName
public void setName(java.lang.String name)
Set the role name.- Parameters:
name- The role name
-
getLink
public java.lang.String getLink()
Get the role link.- Returns:
- the role link
-
setLink
public void setLink(java.lang.String link)
Set the role link.- Parameters:
link- The role link
-
toString
public java.lang.String toString()
Return a String representation of this object.- Overrides:
toStringin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-