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
-
public class ManagedServiceAssertion extends ManagementAssertion
The server-side ManagedService policy assertion.- Author:
- Fabian Ritzmann
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classManagedServiceAssertion.ImplementationRecordReturn the implementation class name along with all parameters for the implementation.static classManagedServiceAssertion.NestedParametersThe 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 Modifier and Type Field Description static QNameMANAGED_SERVICE_QNAME-
Fields inherited from class com.sun.xml.ws.api.config.management.policy.ManagementAssertion
MANAGEMENT_ATTRIBUTE_QNAME, MONITORING_ATTRIBUTE_QNAME
-
-
Constructor Summary
Constructors Constructor Description ManagedServiceAssertion(AssertionData data, Collection<PolicyAssertion> assertionParameters)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ManagedServiceAssertiongetAssertion(WSEndpoint endpoint)Return ManagedService assertion if there is one associated with the endpoint.Collection<ManagedServiceAssertion.ImplementationRecord>getCommunicationServerImplementations()A list of CommunicationServerImplementation elements that were set as parameters of this assertion.ManagedServiceAssertion.ImplementationRecordgetConfigReaderImplementation()The ConfigReaderImplementation that was set as parameter of this assertion.ManagedServiceAssertion.ImplementationRecordgetConfigSaverImplementation()The ConfigSaverImplementation that was set as parameter of this assertion.ManagedServiceAssertion.ImplementationRecordgetConfiguratorImplementation()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.booleanisManagementEnabled()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, getNestedAssertionsIterator, getParametersIterator, getValue, hashCode, hasNestedAssertions, hasParameters, isIgnorable, isOptional, isPrivate, toString, toString
-
-
-
-
Field Detail
-
MANAGED_SERVICE_QNAME
public static final QName MANAGED_SERVICE_QNAME
-
-
Constructor Detail
-
ManagedServiceAssertion
public ManagedServiceAssertion(AssertionData data, Collection<PolicyAssertion> assertionParameters) throws AssertionCreationException
- Throws:
AssertionCreationException
-
-
Method Detail
-
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:
isManagementEnabledin classManagementAssertion- Returns:
- The value of the management attribute.
-
getEndpointDisposeDelay
public long getEndpointDisposeDelay(long defaultDelay) throws jakarta.xml.ws.WebServiceExceptionReturns 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
public ManagedServiceAssertion.ImplementationRecord 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
public ManagedServiceAssertion.ImplementationRecord 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
public ManagedServiceAssertion.ImplementationRecord 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.
-
-