com.sun.xml.ws.api.config.management.policy
Class ManagedServiceAssertion

java.lang.Object
  extended by com.sun.xml.ws.policy.PolicyAssertion
      extended by com.sun.xml.ws.policy.SimpleAssertion
          extended by com.sun.xml.ws.api.config.management.policy.ManagementAssertion
              extended by com.sun.xml.ws.api.config.management.policy.ManagedServiceAssertion

public class ManagedServiceAssertion
extends ManagementAssertion

The server-side ManagedService policy assertion.


Nested Class Summary
static class ManagedServiceAssertion.ImplementationRecord
          Return the implementation class name along with all parameters for the implementation.
static class ManagedServiceAssertion.NestedParameters
          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
static QName MANAGED_SERVICE_QNAME
           
 
Fields inherited from class com.sun.xml.ws.api.config.management.policy.ManagementAssertion
MANAGEMENT_ATTRIBUTE_QNAME, MONITORING_ATTRIBUTE_QNAME
 
Constructor Summary
ManagedServiceAssertion(com.sun.xml.ws.policy.sourcemodel.AssertionData data, Collection<com.sun.xml.ws.policy.PolicyAssertion> assertionParameters)
           
 
Method Summary
static ManagedServiceAssertion getAssertion(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.ImplementationRecord getConfigReaderImplementation()
          The ConfigReaderImplementation that was set as parameter of this assertion.
 ManagedServiceAssertion.ImplementationRecord getConfigSaverImplementation()
          The ConfigSaverImplementation that was set as parameter of this assertion.
 ManagedServiceAssertion.ImplementationRecord getConfiguratorImplementation()
          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 isManagementEnabled()
          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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

MANAGED_SERVICE_QNAME

public static final QName MANAGED_SERVICE_QNAME
Constructor Detail

ManagedServiceAssertion

public ManagedServiceAssertion(com.sun.xml.ws.policy.sourcemodel.AssertionData data,
                               Collection<com.sun.xml.ws.policy.PolicyAssertion> assertionParameters)
                        throws com.sun.xml.ws.policy.spi.AssertionCreationException
Throws:
com.sun.xml.ws.policy.spi.AssertionCreationException
Method Detail

getAssertion

public static ManagedServiceAssertion getAssertion(WSEndpoint endpoint)
                                            throws 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:
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 class ManagementAssertion
Returns:
The value of the management attribute.

getEndpointDisposeDelay

public long getEndpointDisposeDelay(long defaultDelay)
                             throws 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:
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.


Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.