public static class ServiceURL.Builder extends Object
| Constructor and Description |
|---|
Builder()
Construct a new instance.
|
| Modifier and Type | Method and 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.
|
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 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 ServiceURL create()
IllegalArgumentException - if one or more builder property values is not acceptableCopyright © 2017 JBoss by Red Hat. All rights reserved.