public interface ADEPT2RemoteObjectIdentifierFactory
| Modifier and Type | Method and Description |
|---|---|
void |
checkServiceURI(java.net.URI serviceURI)
Validates whether the designated URI is well-formed and may identify a
service instance.
|
java.net.URI |
createCallbackIdentifier(java.lang.Class<?> callbackInterface)
Creates a remote object identifier for an callback object of the specified
type.
|
java.net.URI |
createRemoteObjectIdentifier(java.lang.String serviceType,
java.lang.String serviceInstance)
Creates a remote object identifier for the specified ADEPT2 service.
|
java.lang.String |
getInstanceNameFromServiceURI(java.net.URI serviceURI)
Returns the hierarchical instance name from the service URI.
|
java.net.URI createRemoteObjectIdentifier(java.lang.String serviceType,
java.lang.String serviceInstance)
serviceType - The type of the requested ADEPT2 service as it is known
to the ADEPT2 registry.serviceInstance - The name of the service instance as it is known to
the ADEPT2 registry.java.net.URI createCallbackIdentifier(java.lang.Class<?> callbackInterface)
callbackInterface - The type of the callback object to
identify.void checkServiceURI(java.net.URI serviceURI)
serviceURI - The URI to check for validity.java.lang.IllegalArgumentException - If the service URI is invalid, an
IllegalArgumentException will be thrown.java.lang.String getInstanceNameFromServiceURI(java.net.URI serviceURI)
Whenever the instance name needs to be derived from a services URI, this method should be called. This keeps the way, how the instance name is stored in the URI more exchangeable.
serviceURI - The service URI.java.lang.IllegalArgumentException - If the service URI is invalid for this
communication service, an IllegalArgumentException
will be thrown.