|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sblim.slp.ServiceType
The ServiceType object models the SLP service type. It parses a string based service type specifier into its various components, and contains property accessors to return the components. URL schemes, protocol service types, and abstract service types are all handled.
Constructor Summary | |
---|---|
ServiceType(java.lang.String pType)
Constructs a service type object from the service type specifier. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getAbstractTypeName()
If the type is an abstract type, returns the fully formatted abstract type name including the "service:" and naming authority but without the concrete type name or intervening colon. |
java.lang.String |
getConcreteTypeName()
Returns the concrete type name in an abstract type, or the empty string if the service type is not abstract. |
java.lang.String |
getNamingAuthority()
Return the naming authority name, or the empty string if the naming authority is the default. |
java.lang.String |
getPrincipleTypeName()
Returns the abstract type name for an abstract type, the protocol name in a protocol type, or the URL scheme for a generic URL. |
int |
hashCode()
|
boolean |
isAbstractType()
Returns true if the type name is for an abstract type. |
boolean |
isNADefault()
Returns true if the naming authority is the default, i.e. |
boolean |
isServiceURL()
Returns true if the type name contains the "service:" prefix. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ServiceType(java.lang.String pType)
pType
- The service type name as a String. If the service type is from
a service: URL, the "service:" prefix must be intact.Method Detail |
public boolean isServiceURL()
true
if the type name contains the "service:"
prefixpublic boolean isAbstractType()
true
if the type name is for an abstract typepublic boolean isNADefault()
true
if the naming authority is the default, i.e.
is the empty stringpublic java.lang.String getConcreteTypeName()
true
if the service type is not abstractpublic java.lang.String getPrincipleTypeName()
public java.lang.String getAbstractTypeName()
public java.lang.String getNamingAuthority()
public boolean equals(java.lang.Object obj)
public java.lang.String toString()
public int hashCode()
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |