public static class ServiceURL.Builder extends Object
| Constructor | Description |
|---|---|
Builder() |
Construct a new instance.
|
Builder(ServiceURL original) |
Construct a new instance from an original template.
|
| Modifier and Type | Method | Description |
|---|---|---|
ServiceURL.Builder |
addAttribute(String name) |
Add a valueless attribute.
|
ServiceURL.Builder |
addAttribute(String name,
AttributeValue value) |
Add an attribute.
|
ServiceURL |
create() |
Construct the service URL.
|
String |
getAbstractType() |
Get the abstract type.
|
String |
getAbstractTypeAuthority() |
Get the abstract type authority.
|
URI |
getUri() |
Get the concrete URI.
|
String |
getUriSchemeAuthority() |
Get the URI scheme authority, if any.
|
List<AttributeValue> |
removeAttribute(String name) |
Remove all values of the given attribute name.
|
boolean |
removeAttributeValue(String name,
AttributeValue value) |
Remove the given value of the given attribute name.
|
ServiceURL.Builder |
setAbstractType(String abstractType) |
Set the abstract type.
|
ServiceURL.Builder |
setAbstractTypeAuthority(String abstractTypeAuthority) |
Set the abstract authority.
|
ServiceURL.Builder |
setUri(URI uri) |
Set the concrete URI.
|
ServiceURL.Builder |
setUriSchemeAuthority(String uriSchemeAuthority) |
Set the URI scheme authority.
|
public Builder()
public Builder(ServiceURL original)
original - the original service URL (must not be null)public String getAbstractType()
null if it is not setpublic ServiceURL.Builder setAbstractType(String abstractType)
abstractType - the abstract typepublic String getAbstractTypeAuthority()
null if it is not setpublic ServiceURL.Builder setAbstractTypeAuthority(String abstractTypeAuthority)
abstractTypeAuthority - the abstract authoritypublic URI getUri()
public ServiceURL.Builder setUri(URI uri)
uri - the concrete URI (must not be null)public String getUriSchemeAuthority()
null if none is setpublic ServiceURL.Builder setUriSchemeAuthority(String uriSchemeAuthority)
uriSchemeAuthority - the URI scheme authoritypublic ServiceURL.Builder addAttribute(String name, AttributeValue value)
name - the attribute name (must not be null)value - the attribute value (must not be null)public ServiceURL.Builder addAttribute(String name)
name - the attribute name (must not be null)public List<AttributeValue> removeAttribute(String name)
name - the attribute name (must not be null)null if the attribute was not present in the builderpublic boolean removeAttributeValue(String name, AttributeValue value)
name - the attribute name (must not be null)value - the value to remove (must not be null)true if the value was present, or false otherwisepublic ServiceURL create()
IllegalArgumentException - if one or more builder property values is not acceptableCopyright © 2019 JBoss by Red Hat. All rights reserved.