Java Code Examples for com.sun.xml.internal.ws.policy.sourcemodel.AssertionData#containsAttribute()

The following examples show how to use com.sun.xml.internal.ws.policy.sourcemodel.AssertionData#containsAttribute() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ManagementAssertion.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Create a new ManagementAssertion instance.
 *
 * @param name The fully qualified name of the server or client assertion. Must
 *   not be null.
 * @param data The assertion data. Must not be null.
 * @param assertionParameters Parameters of the assertion. May be null.
 * @throws AssertionCreationException Thrown if the creation of the assertion failed.
 */
protected ManagementAssertion(final QName name, AssertionData data, Collection<PolicyAssertion> assertionParameters)
        throws AssertionCreationException {
    super(data, assertionParameters);
    if (!name.equals(data.getName())) {
        throw LOGGER.logSevereException(new AssertionCreationException(data,
                ManagementMessages.WSM_1002_EXPECTED_MANAGEMENT_ASSERTION(name)));
    }
    if (isManagementEnabled() && !data.containsAttribute(ID_ATTRIBUTE_QNAME)) {
        throw LOGGER.logSevereException(new AssertionCreationException(data,
                ManagementMessages.WSM_1003_MANAGEMENT_ASSERTION_MISSING_ID(name)));
    }
}
 
Example 2
Source File: ManagementAssertion.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Create a new ManagementAssertion instance.
 *
 * @param name The fully qualified name of the server or client assertion. Must
 *   not be null.
 * @param data The assertion data. Must not be null.
 * @param assertionParameters Parameters of the assertion. May be null.
 * @throws AssertionCreationException Thrown if the creation of the assertion failed.
 */
protected ManagementAssertion(final QName name, AssertionData data, Collection<PolicyAssertion> assertionParameters)
        throws AssertionCreationException {
    super(data, assertionParameters);
    if (!name.equals(data.getName())) {
        throw LOGGER.logSevereException(new AssertionCreationException(data,
                ManagementMessages.WSM_1002_EXPECTED_MANAGEMENT_ASSERTION(name)));
    }
    if (isManagementEnabled() && !data.containsAttribute(ID_ATTRIBUTE_QNAME)) {
        throw LOGGER.logSevereException(new AssertionCreationException(data,
                ManagementMessages.WSM_1003_MANAGEMENT_ASSERTION_MISSING_ID(name)));
    }
}
 
Example 3
Source File: ManagementAssertion.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Create a new ManagementAssertion instance.
 *
 * @param name The fully qualified name of the server or client assertion. Must
 *   not be null.
 * @param data The assertion data. Must not be null.
 * @param assertionParameters Parameters of the assertion. May be null.
 * @throws AssertionCreationException Thrown if the creation of the assertion failed.
 */
protected ManagementAssertion(final QName name, AssertionData data, Collection<PolicyAssertion> assertionParameters)
        throws AssertionCreationException {
    super(data, assertionParameters);
    if (!name.equals(data.getName())) {
        throw LOGGER.logSevereException(new AssertionCreationException(data,
                ManagementMessages.WSM_1002_EXPECTED_MANAGEMENT_ASSERTION(name)));
    }
    if (isManagementEnabled() && !data.containsAttribute(ID_ATTRIBUTE_QNAME)) {
        throw LOGGER.logSevereException(new AssertionCreationException(data,
                ManagementMessages.WSM_1003_MANAGEMENT_ASSERTION_MISSING_ID(name)));
    }
}
 
Example 4
Source File: ManagementAssertion.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Create a new ManagementAssertion instance.
 *
 * @param name The fully qualified name of the server or client assertion. Must
 *   not be null.
 * @param data The assertion data. Must not be null.
 * @param assertionParameters Parameters of the assertion. May be null.
 * @throws AssertionCreationException Thrown if the creation of the assertion failed.
 */
protected ManagementAssertion(final QName name, AssertionData data, Collection<PolicyAssertion> assertionParameters)
        throws AssertionCreationException {
    super(data, assertionParameters);
    if (!name.equals(data.getName())) {
        throw LOGGER.logSevereException(new AssertionCreationException(data,
                ManagementMessages.WSM_1002_EXPECTED_MANAGEMENT_ASSERTION(name)));
    }
    if (isManagementEnabled() && !data.containsAttribute(ID_ATTRIBUTE_QNAME)) {
        throw LOGGER.logSevereException(new AssertionCreationException(data,
                ManagementMessages.WSM_1003_MANAGEMENT_ASSERTION_MISSING_ID(name)));
    }
}
 
Example 5
Source File: ManagementAssertion.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Create a new ManagementAssertion instance.
 *
 * @param name The fully qualified name of the server or client assertion. Must
 *   not be null.
 * @param data The assertion data. Must not be null.
 * @param assertionParameters Parameters of the assertion. May be null.
 * @throws AssertionCreationException Thrown if the creation of the assertion failed.
 */
protected ManagementAssertion(final QName name, AssertionData data, Collection<PolicyAssertion> assertionParameters)
        throws AssertionCreationException {
    super(data, assertionParameters);
    if (!name.equals(data.getName())) {
        throw LOGGER.logSevereException(new AssertionCreationException(data,
                ManagementMessages.WSM_1002_EXPECTED_MANAGEMENT_ASSERTION(name)));
    }
    if (isManagementEnabled() && !data.containsAttribute(ID_ATTRIBUTE_QNAME)) {
        throw LOGGER.logSevereException(new AssertionCreationException(data,
                ManagementMessages.WSM_1003_MANAGEMENT_ASSERTION_MISSING_ID(name)));
    }
}
 
Example 6
Source File: ManagementAssertion.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Create a new ManagementAssertion instance.
 *
 * @param name The fully qualified name of the server or client assertion. Must
 *   not be null.
 * @param data The assertion data. Must not be null.
 * @param assertionParameters Parameters of the assertion. May be null.
 * @throws AssertionCreationException Thrown if the creation of the assertion failed.
 */
protected ManagementAssertion(final QName name, AssertionData data, Collection<PolicyAssertion> assertionParameters)
        throws AssertionCreationException {
    super(data, assertionParameters);
    if (!name.equals(data.getName())) {
        throw LOGGER.logSevereException(new AssertionCreationException(data,
                ManagementMessages.WSM_1002_EXPECTED_MANAGEMENT_ASSERTION(name)));
    }
    if (isManagementEnabled() && !data.containsAttribute(ID_ATTRIBUTE_QNAME)) {
        throw LOGGER.logSevereException(new AssertionCreationException(data,
                ManagementMessages.WSM_1003_MANAGEMENT_ASSERTION_MISSING_ID(name)));
    }
}
 
Example 7
Source File: ManagementAssertion.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Create a new ManagementAssertion instance.
 *
 * @param name The fully qualified name of the server or client assertion. Must
 *   not be null.
 * @param data The assertion data. Must not be null.
 * @param assertionParameters Parameters of the assertion. May be null.
 * @throws AssertionCreationException Thrown if the creation of the assertion failed.
 */
protected ManagementAssertion(final QName name, AssertionData data, Collection<PolicyAssertion> assertionParameters)
        throws AssertionCreationException {
    super(data, assertionParameters);
    if (!name.equals(data.getName())) {
        throw LOGGER.logSevereException(new AssertionCreationException(data,
                ManagementMessages.WSM_1002_EXPECTED_MANAGEMENT_ASSERTION(name)));
    }
    if (isManagementEnabled() && !data.containsAttribute(ID_ATTRIBUTE_QNAME)) {
        throw LOGGER.logSevereException(new AssertionCreationException(data,
                ManagementMessages.WSM_1003_MANAGEMENT_ASSERTION_MISSING_ID(name)));
    }
}
 
Example 8
Source File: ManagementAssertion.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Create a new ManagementAssertion instance.
 *
 * @param name The fully qualified name of the server or client assertion. Must
 *   not be null.
 * @param data The assertion data. Must not be null.
 * @param assertionParameters Parameters of the assertion. May be null.
 * @throws AssertionCreationException Thrown if the creation of the assertion failed.
 */
protected ManagementAssertion(final QName name, AssertionData data, Collection<PolicyAssertion> assertionParameters)
        throws AssertionCreationException {
    super(data, assertionParameters);
    if (!name.equals(data.getName())) {
        throw LOGGER.logSevereException(new AssertionCreationException(data,
                ManagementMessages.WSM_1002_EXPECTED_MANAGEMENT_ASSERTION(name)));
    }
    if (isManagementEnabled() && !data.containsAttribute(ID_ATTRIBUTE_QNAME)) {
        throw LOGGER.logSevereException(new AssertionCreationException(data,
                ManagementMessages.WSM_1003_MANAGEMENT_ASSERTION_MISSING_ID(name)));
    }
}