org.openid4java.discovery.xrds
Class XrdsServiceEndpoint
java.lang.Object
org.openid4java.discovery.xrds.XrdsServiceEndpoint
- All Implemented Interfaces:
- Comparable
public class XrdsServiceEndpoint
- extends Object
- implements Comparable
Encapsulates the (OpenID-related) information extracted in
service elements discovered through Yadis.
Note: this class has a natural ordering that is inconsistent with equals.
Only the URI priority and Service priority fields are used for comparison.
- Author:
- jbufu
LOWEST_PRIORITY
public static final int LOWEST_PRIORITY
- See Also:
- Constant Field Values
XrdsServiceEndpoint
public XrdsServiceEndpoint(String uri,
Set types,
int servicePriority,
int uriPriority,
String localId,
String delegate,
String canonicalId)
getServicePriority
public int getServicePriority()
setServicePriority
public void setServicePriority(int servicePriority)
getUriPriority
public int getUriPriority()
setUriPriority
public void setUriPriority(int uriPriority)
getTypes
public Set getTypes()
setTypes
public void setTypes(Set types)
matchesType
public boolean matchesType(String type)
getUri
public String getUri()
setUri
public void setUri(String uri)
getLocalId
public String getLocalId()
setLocalId
public void setLocalId(String localId)
getDelegate
public String getDelegate()
setDelegate
public void setDelegate(String delegate)
getCanonicalId
public String getCanonicalId()
setCanonicalId
public void setCanonicalId(String canonicalId)
compareTo
public int compareTo(Object o)
- Specified by:
compareTo in interface Comparable
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2013 Sxip. All Rights Reserved.