Interface WsDiscoveryTargetService
- All Superinterfaces:
Interceptor
- All Known Implementing Classes:
WsDiscoveryTargetServiceInterceptor
WS-Discovery Target Service interface.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionThread-safe function to get the MatchBy rule.com.google.common.primitives.UnsignedIntegerThread-safe function to get the metadata version.Thread-safe function to get the list of scope URIs.getTypes()Thread-safe function to get the list of QNames.Thread-safe function to get the list of XAddr URIs.voidsendBye()Blocking function to send out a Bye message.com.google.common.primitives.UnsignedIntegerBlocking function to send out a Hello message.com.google.common.primitives.UnsignedIntegersendHello(boolean forceNewMetadataVersion) Blocking function to send out a Hello message.voidsetMatchBy(MatchBy matchBy) Thread-safe function to set the MatchBy rule.voidThread-safe function to explicitly set the target service metadata to be modified (thread-safe).voidThread-safe function to set the list of scope URIs.voidThread-safe function to set the list of QNames.voidThread-safe function to set the list of XAddr URIs.
-
Method Details
-
getEndpointReference
EndpointReferenceType getEndpointReference() -
setTypes
Thread-safe function to set the list of QNames.- Parameters:
qNames- the list of QNames to set.
-
getTypes
Thread-safe function to get the list of QNames.- Returns:
- the list of QNames.
-
setScopes
Thread-safe function to set the list of scope URIs.- Parameters:
uris- the list of scope URIs to set.
-
getScopes
Thread-safe function to get the list of scope URIs.- Returns:
- the list of scope URIs.
-
setXAddrs
Thread-safe function to set the list of XAddr URIs.- Parameters:
xAddrs- the list of XAddr URIs.
-
getXAddrs
Thread-safe function to get the list of XAddr URIs.- Returns:
- the list of XAddr URIs.
-
setMatchBy
Thread-safe function to set the MatchBy rule.- Parameters:
matchBy- the MatchBy rule to set.
-
getMatchBy
MatchBy getMatchBy()Thread-safe function to get the MatchBy rule.- Returns:
- the MatchBy rule.
-
setMetadataModified
void setMetadataModified()Thread-safe function to explicitly set the target service metadata to be modified (thread-safe).This is useful if the metadata change does not belong to, e.g., Types and Scopes.
-
getMetadataVersion
com.google.common.primitives.UnsignedInteger getMetadataVersion()Thread-safe function to get the metadata version.- Returns:
- the metadata version.
-
sendHello
com.google.common.primitives.UnsignedInteger sendHello() throws MarshallingException, TransportException, InterceptorExceptionBlocking function to send out a Hello message.This is a shorthand function to
sendHello(boolean).- Returns:
- the metadata version that has been attached to the Hello message.
- Throws:
MarshallingException- if marshalling the Hello message fails.TransportException- if there is any problem on the transport layer.InterceptorException- if one of the interceptors pops up with an error.
-
sendHello
com.google.common.primitives.UnsignedInteger sendHello(boolean forceNewMetadataVersion) throws MarshallingException, TransportException, InterceptorException Blocking function to send out a Hello message.- Parameters:
forceNewMetadataVersion- set to true to force incrementing the metadata version, or false to not do so.- Returns:
- the metadata version that has been attached to the Hello message.
- Throws:
MarshallingException- if marshalling the Hello message fails.TransportException- if there is any problem on the transport layer.InterceptorException- if one of the interceptors pops up with an error.
-
sendBye
Blocking function to send out a Bye message.- Throws:
MarshallingException- if marshalling the Bye message fails.TransportException- if there is any problem on the transport layer.InterceptorException- if one of the interceptors pops up with an error.
-