org.livetribe.slp
Class ServiceInfo.Key

java.lang.Object
  extended by org.livetribe.slp.ServiceInfo.Key
Enclosing class:
ServiceInfo

public static class ServiceInfo.Key
extends Object

Services in SLP are identified by their ServiceURL and their language. This class encapsulates this service identity.


Constructor Summary
ServiceInfo.Key(ServiceURL serviceURL, String language)
          Creates a new Key object.
 
Method Summary
 boolean equals(Object obj)
           
 String getLanguage()
          Returns the language of this key.
 ServiceURL getServiceURL()
          Returns the ServiceURL of this key.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceInfo.Key

public ServiceInfo.Key(ServiceURL serviceURL,
                       String language)
Creates a new Key object.

Parameters:
serviceURL - The ServiceURL of the service
language - The language of the service
Method Detail

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

getServiceURL

public ServiceURL getServiceURL()
Returns the ServiceURL of this key.


getLanguage

public String getLanguage()
Returns the language of this key.



Copyright © 2006-2012 LiveTribe. All Rights Reserved.