org.openid4java.discovery.xrds
Class XrdsServiceEndpoint

java.lang.Object
  extended by org.openid4java.discovery.xrds.XrdsServiceEndpoint
All Implemented Interfaces:
java.lang.Comparable

public class XrdsServiceEndpoint
extends java.lang.Object
implements java.lang.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

Field Summary
private  java.lang.String canonicalId
           
private  java.lang.String delegate
           
private  java.lang.String localId
           
static int LOWEST_PRIORITY
           
private  int servicePriority
           
private  java.util.Set types
           
private  java.lang.String uri
           
private  int uriPriority
           
 
Constructor Summary
XrdsServiceEndpoint(java.lang.String uri, java.util.Set types, int servicePriority, int uriPriority, java.lang.String localId, java.lang.String delegate, java.lang.String canonicalId)
           
 
Method Summary
 int compareTo(java.lang.Object o)
           
 java.lang.String getCanonicalId()
           
 java.lang.String getDelegate()
           
 java.lang.String getLocalId()
           
 int getServicePriority()
           
 java.util.Set getTypes()
           
 java.lang.String getUri()
           
 int getUriPriority()
           
 boolean matchesType(java.lang.String type)
           
 void setCanonicalId(java.lang.String canonicalId)
           
 void setDelegate(java.lang.String delegate)
           
 void setLocalId(java.lang.String localId)
           
 void setServicePriority(int servicePriority)
           
 void setTypes(java.util.Set types)
           
 void setUri(java.lang.String uri)
           
 void setUriPriority(int uriPriority)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

servicePriority

private int servicePriority

uriPriority

private int uriPriority

types

private java.util.Set types

uri

private java.lang.String uri

localId

private java.lang.String localId

delegate

private java.lang.String delegate

LOWEST_PRIORITY

public static final int LOWEST_PRIORITY
See Also:
Constant Field Values

canonicalId

private java.lang.String canonicalId
Constructor Detail

XrdsServiceEndpoint

public XrdsServiceEndpoint(java.lang.String uri,
                           java.util.Set types,
                           int servicePriority,
                           int uriPriority,
                           java.lang.String localId,
                           java.lang.String delegate,
                           java.lang.String canonicalId)
Method Detail

getServicePriority

public int getServicePriority()

setServicePriority

public void setServicePriority(int servicePriority)

getUriPriority

public int getUriPriority()

setUriPriority

public void setUriPriority(int uriPriority)

getTypes

public java.util.Set getTypes()

setTypes

public void setTypes(java.util.Set types)

matchesType

public boolean matchesType(java.lang.String type)

getUri

public java.lang.String getUri()

setUri

public void setUri(java.lang.String uri)

getLocalId

public java.lang.String getLocalId()

setLocalId

public void setLocalId(java.lang.String localId)

getDelegate

public java.lang.String getDelegate()

setDelegate

public void setDelegate(java.lang.String delegate)

getCanonicalId

public java.lang.String getCanonicalId()

setCanonicalId

public void setCanonicalId(java.lang.String canonicalId)

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright 2006-2008 Sxip Identity Corporation