Module com.sun.xml.ws
Class ManagedServiceAssertion
java.lang.Object
com.sun.xml.ws.policy.PolicyAssertion
com.sun.xml.ws.policy.SimpleAssertion
com.sun.xml.ws.api.config.management.policy.ManagementAssertion
com.sun.xml.ws.api.config.management.policy.ManagedServiceAssertion
The server-side ManagedService policy assertion.
- Author:
- Fabian Ritzmann
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Return the implementation class name along with all parameters for the implementation.static class
The nested parameters that may be set as part of an implementation element.Nested classes/interfaces inherited from class com.sun.xml.ws.api.config.management.policy.ManagementAssertion
ManagementAssertion.Setting
-
Field Summary
Fields inherited from class com.sun.xml.ws.api.config.management.policy.ManagementAssertion
MANAGEMENT_ATTRIBUTE_QNAME, MONITORING_ATTRIBUTE_QNAME
-
Constructor Summary
ConstructorDescriptionManagedServiceAssertion
(AssertionData data, Collection<PolicyAssertion> assertionParameters) -
Method Summary
Modifier and TypeMethodDescriptionstatic ManagedServiceAssertion
getAssertion
(WSEndpoint endpoint) Return ManagedService assertion if there is one associated with the endpoint.A list of CommunicationServerImplementation elements that were set as parameters of this assertion.The ConfigReaderImplementation that was set as parameter of this assertion.The ConfigSaverImplementation that was set as parameter of this assertion.The ConfiguratorImplementation that was set as parameter of this assertion.long
getEndpointDisposeDelay
(long defaultDelay) Returns the value of the endpointDisposeDelay attribute or the default value otherwise.boolean
Returns the value of the management attribute.Methods inherited from class com.sun.xml.ws.api.config.management.policy.ManagementAssertion
getAssertion, getId, getStart, monitoringAttribute
Methods inherited from class com.sun.xml.ws.policy.SimpleAssertion
getNestedPolicy, hasNestedPolicy
Methods inherited from class com.sun.xml.ws.policy.PolicyAssertion
equals, getAttributes, getAttributesSet, getAttributeValue, getImplementation, getName, getParametersIterator, getValue, hashCode, hasParameters, isIgnorable, isOptional, isPrivate, toString, toString
-
Field Details
-
MANAGED_SERVICE_QNAME
-
-
Constructor Details
-
ManagedServiceAssertion
public ManagedServiceAssertion(AssertionData data, Collection<PolicyAssertion> assertionParameters) throws AssertionCreationException - Throws:
AssertionCreationException
-
-
Method Details
-
getAssertion
public static ManagedServiceAssertion getAssertion(WSEndpoint endpoint) throws jakarta.xml.ws.WebServiceException Return ManagedService assertion if there is one associated with the endpoint.- Parameters:
endpoint
- The endpoint. Must not be null.- Returns:
- The policy assertion if found. Null otherwise.
- Throws:
jakarta.xml.ws.WebServiceException
- If computing the effective policy of the endpoint failed.
-
isManagementEnabled
public boolean isManagementEnabled()Returns the value of the management attribute. True if unset or set to "true" or "on". False otherwise.- Specified by:
isManagementEnabled
in classManagementAssertion
- Returns:
- The value of the management attribute.
-
getEndpointDisposeDelay
public long getEndpointDisposeDelay(long defaultDelay) throws jakarta.xml.ws.WebServiceException Returns the value of the endpointDisposeDelay attribute or the default value otherwise.- Parameters:
defaultDelay
- The default value that is returned if this attribute is not set- Returns:
- The value of the endpointDisposeDelay attribute or the default value otherwise.
- Throws:
jakarta.xml.ws.WebServiceException
-
getCommunicationServerImplementations
public Collection<ManagedServiceAssertion.ImplementationRecord> getCommunicationServerImplementations()A list of CommunicationServerImplementation elements that were set as parameters of this assertion.- Returns:
- A list of CommunicationServerImplementation elements that were set as parameters of this assertion. May be empty.
-
getConfiguratorImplementation
The ConfiguratorImplementation that was set as parameter of this assertion.- Returns:
- The ConfiguratorImplementation that was set as parameter of this assertion. May be null.
-
getConfigSaverImplementation
The ConfigSaverImplementation that was set as parameter of this assertion.- Returns:
- The ConfigSaverImplementation that was set as parameter of this assertion. May be null.
-
getConfigReaderImplementation
The ConfigReaderImplementation that was set as parameter of this assertion.- Returns:
- The ConfigReaderImplementation that was set as parameter of this assertion. May be null.
-