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
Nested ClassesModifier and TypeClassDescriptionstatic classReturn the implementation class name along with all parameters for the implementation.static classThe 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
FieldsFields inherited from class com.sun.xml.ws.api.config.management.policy.ManagementAssertion
MANAGEMENT_ATTRIBUTE_QNAME, MONITORING_ATTRIBUTE_QNAME -
Constructor Summary
ConstructorsConstructorDescriptionManagedServiceAssertion(AssertionData data, Collection<PolicyAssertion> assertionParameters) -
Method Summary
Modifier and TypeMethodDescriptionstatic ManagedServiceAssertiongetAssertion(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.longgetEndpointDisposeDelay(long defaultDelay) Returns the value of the endpointDisposeDelay attribute or the default value otherwise.booleanReturns the value of the management attribute.Methods inherited from class com.sun.xml.ws.api.config.management.policy.ManagementAssertion
getAssertion, getId, getStart, monitoringAttributeMethods inherited from class com.sun.xml.ws.policy.SimpleAssertion
getNestedPolicy, hasNestedPolicyMethods 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
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:
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:
isManagementEnabledin classManagementAssertion- Returns:
- The value of the management attribute.
-
getEndpointDisposeDelay
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:
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.
-