public final class ServiceURL extends ServiceDesignation
| Modifier and Type | Class and Description |
|---|---|
static class |
ServiceURL.Builder
A builder for service URLs.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other)
Determine whether this service URL is equal to the given object.
|
boolean |
equals(ServiceDesignation other)
Determine whether this service URL is equal to the given object.
|
boolean |
equals(ServiceURL other)
Determine whether this service URL is equal to the given object.
|
String |
getAbstractType()
Get the abstract type, if any.
|
String |
getAbstractTypeAuthority()
Get the abstract type authority, if any.
|
List<AttributeValue> |
getAttributeValues(String name)
Get the values of the attribute with the given name.
|
AttributeValue |
getFirstAttributeValue(String name)
Get the first attribute value for the given name.
|
AttributeValue |
getFirstAttributeValue(String name,
AttributeValue defaultValue)
Get the first attribute value for the given name.
|
String |
getHostName()
Get the host name of the concrete URI.
|
AttributeValue |
getLastAttributeValue(String name)
Get the last attribute value for the given name.
|
AttributeValue |
getLastAttributeValue(String name,
AttributeValue defaultValue)
Get the last attribute value for the given name.
|
URI |
getLocationURI()
Get the concrete location URI of this service URL.
|
String |
getPath()
Get the path name of the concrete URI, if any.
|
int |
getPort()
Get the port number of the concrete URI, if any.
|
ServiceType |
getServiceType()
Get the service type of this URL.
|
String |
getUriScheme()
Get the concrete URI scheme.
|
String |
getUriSchemeAuthority()
Get the concrete URI scheme authority, if any.
|
String |
getUserName()
Get the user name of the concrete URI, if any.
|
int |
hashCode()
Get the hash code of this service URL.
|
boolean |
implies(ServiceDesignation other)
Determine if this service URL implies the other service designation.
|
boolean |
implies(ServiceURL other)
Determine if this service URL implies the other service URL.
|
boolean |
satisfies(FilterSpec filterSpec)
Determine whether this service URL satisfies the given filter specification.
|
URI |
toServiceURI()
Convert this service URL into a URI whose contents are exactly equal to this object's.
|
String |
toString()
Get the string representation of this service URL.
|
public boolean satisfies(FilterSpec filterSpec)
filterSpec - the filter specificationtrue if this service satisfies the filter specification, false if it does notpublic boolean implies(ServiceURL other)
other - the other service URLtrue if they are equal, false otherwisepublic boolean implies(ServiceDesignation other)
implies in class ServiceDesignationother - the other service designationtrue if they are equal service URLs, false otherwisepublic boolean equals(ServiceURL other)
other - the other objecttrue if they are equal, false otherwisepublic boolean equals(ServiceDesignation other)
equals in class ServiceDesignationother - the other objecttrue if they are equal, false otherwisepublic boolean equals(Object other)
equals in class ServiceDesignationother - the other objecttrue if they are equal, false otherwisepublic int hashCode()
hashCode in class ServiceDesignationpublic String toString()
toString in class ServiceDesignationpublic URI toServiceURI() throws URISyntaxException
null)URISyntaxException - if there was some syntactical problem in the URI being constructedpublic URI getLocationURI()
null)public ServiceType getServiceType()
null)public String getAbstractType()
getAbstractType in class ServiceDesignationnull if no abstract type is setpublic String getAbstractTypeAuthority()
getAbstractTypeAuthority in class ServiceDesignationnull if no abstract type authority is setpublic String getUriScheme()
getUriScheme in class ServiceDesignationnull)public String getUriSchemeAuthority()
getUriSchemeAuthority in class ServiceDesignationnull if none is setpublic String getUserName()
null if none is setpublic String getHostName()
null)public int getPort()
public String getPath()
null if none is setpublic AttributeValue getFirstAttributeValue(String name)
name - the attribute name (must not be null)null if no such attribute existspublic AttributeValue getFirstAttributeValue(String name, AttributeValue defaultValue)
name - the attribute name (must not be null)defaultValue - the value to return if no such attribute existsdefaultValue if no such attribute existspublic AttributeValue getLastAttributeValue(String name)
name - the attribute name (must not be null)null if no such attribute existspublic AttributeValue getLastAttributeValue(String name, AttributeValue defaultValue)
name - the attribute name (must not be null)defaultValue - the value to return if no such attribute existsnull if no such attribute existspublic List<AttributeValue> getAttributeValues(String name)
name - the attribute name (must not be null)null)Copyright © 2017 JBoss by Red Hat. All rights reserved.