Class R_OSGiWSID
- java.lang.Object
- 
- org.eclipse.ecf.core.identity.BaseID
- 
- org.eclipse.ecf.provider.r_osgi.identity.R_OSGiID
- 
- org.eclipse.ecf.provider.r_osgi.identity.R_OSGiWSID
 
 
 
- 
- All Implemented Interfaces:
- Serializable,- Comparable,- Principal,- org.eclipse.core.runtime.IAdaptable,- ID
 
 public class R_OSGiWSID extends R_OSGiID - Since:
- 3.5
- See Also:
- Serialized Form
 
- 
- 
Field SummaryFields Modifier and Type Field Description static intHTTP_PORTstatic intHTTPS_PORT
 - 
Constructor SummaryConstructors Constructor Description R_OSGiWSID(boolean secure, String hostname, int port)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ch.ethz.iks.r_osgi.URIgetURI()get the internal URI.protected intnamespaceCompareTo(BaseID id)compare in the context of the namespace.protected booleannamespaceEquals(BaseID id)check for equality in the context of the namespace.protected StringnamespaceGetName()get the name.protected intnamespaceHashCode()get the hash code.StringtoExternalForm()Get this ID instance in String form.StringtoString()get a string representation.- 
Methods inherited from class org.eclipse.ecf.core.identity.BaseIDcompareTo, equals, getAdapter, getName, getNamespace, hashCode, namespaceToExternalForm
 
- 
 
- 
- 
- 
Field Detail- 
HTTPS_PORTpublic static final int HTTPS_PORT - See Also:
- Constant Field Values
 
 - 
HTTP_PORTpublic static final int HTTP_PORT - See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
R_OSGiWSIDpublic R_OSGiWSID(boolean secure, String hostname, int port)
 
- 
 - 
Method Detail- 
namespaceCompareToprotected int namespaceCompareTo(BaseID id) compare in the context of the namespace.- Overrides:
- namespaceCompareToin class- R_OSGiID
- Parameters:
- id- another- BaseIDto compare to.
- Returns:
- -1 if smaller, 1 if larger, and 0 for equality.
- See Also:
- BaseID.namespaceCompareTo(org.eclipse.ecf.core.identity.BaseID)
 
 - 
namespaceEqualsprotected boolean namespaceEquals(BaseID id) check for equality in the context of the namespace.- Overrides:
- namespaceEqualsin class- R_OSGiID
- Parameters:
- id- another- BaseIDto check with.
- Returns:
- trueiff the two IDs are equal within the given namespace.
- See Also:
- BaseID.namespaceEquals(org.eclipse.ecf.core.identity.BaseID)
 
 - 
getURIpublic ch.ethz.iks.r_osgi.URI getURI() get the internal URI.
 - 
namespaceGetNameprotected String namespaceGetName() get the name.- Overrides:
- namespaceGetNamein class- R_OSGiID
- Returns:
- the name as a String.
 
 - 
namespaceHashCodeprotected int namespaceHashCode() get the hash code.- Overrides:
- namespaceHashCodein class- R_OSGiID
- Returns:
- the hash code.
 
 - 
toStringpublic String toString() get a string representation.- Specified by:
- toStringin interface- Principal
- Overrides:
- toStringin class- R_OSGiID
- See Also:
- Object.toString()
 
 - 
toExternalFormpublic String toExternalForm() Description copied from interface:IDGet this ID instance in String form. Will not return null.- Specified by:
- toExternalFormin interface- ID
- Overrides:
- toExternalFormin class- R_OSGiID
- Returns:
- String that is external representation of this ID
- Since:
- 3.0
- See Also:
- ID.toExternalForm()
 
 
- 
 
-