Java Code Examples for com.sun.xml.internal.ws.resources.AddressingMessages#ADDRESSING_SHOULD_BE_ENABLED

The following examples show how to use com.sun.xml.internal.ws.resources.AddressingMessages#ADDRESSING_SHOULD_BE_ENABLED . 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: Messages.java    From TencentKona-8 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Creates a fault {@link Message} that captures the code/subcode/subsubcode
 * defined by WS-Addressing if one of the expected WS-Addressing headers is
 * missing in the message
 *
 * @param binding WSBinding
 * @param p
 *      {@link Packet} that was missing a WS-Addressing header.
 * @param missingHeader The missing WS-Addressing Header
 * @return
 *      A message representing SOAPFault that contains the WS-Addressing code/subcode/subsubcode.
 */
public static Message createAddressingFaultMessage(WSBinding binding, Packet p, QName missingHeader) {
    AddressingVersion av = binding.getAddressingVersion();
    if(av == null) {
        // Addressing is not enabled.
        throw new WebServiceException(AddressingMessages.ADDRESSING_SHOULD_BE_ENABLED());
    }
    WsaTubeHelper helper = av.getWsaHelper(null,null,binding);
    return create(helper.newMapRequiredFault(new MissingAddressingHeaderException(missingHeader,p)));
}
 
Example 2
Source File: Messages.java    From jdk8u60 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Creates a fault {@link Message} that captures the code/subcode/subsubcode
 * defined by WS-Addressing if one of the expected WS-Addressing headers is
 * missing in the message
 *
 * @param binding WSBinding
 * @param p
 *      {@link Packet} that was missing a WS-Addressing header.
 * @param missingHeader The missing WS-Addressing Header
 * @return
 *      A message representing SOAPFault that contains the WS-Addressing code/subcode/subsubcode.
 */
public static Message createAddressingFaultMessage(WSBinding binding, Packet p, QName missingHeader) {
    AddressingVersion av = binding.getAddressingVersion();
    if(av == null) {
        // Addressing is not enabled.
        throw new WebServiceException(AddressingMessages.ADDRESSING_SHOULD_BE_ENABLED());
    }
    WsaTubeHelper helper = av.getWsaHelper(null,null,binding);
    return create(helper.newMapRequiredFault(new MissingAddressingHeaderException(missingHeader,p)));
}
 
Example 3
Source File: Messages.java    From openjdk-jdk8u with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Creates a fault {@link Message} that captures the code/subcode/subsubcode
 * defined by WS-Addressing if one of the expected WS-Addressing headers is
 * missing in the message
 *
 * @param binding WSBinding
 * @param p
 *      {@link Packet} that was missing a WS-Addressing header.
 * @param missingHeader The missing WS-Addressing Header
 * @return
 *      A message representing SOAPFault that contains the WS-Addressing code/subcode/subsubcode.
 */
public static Message createAddressingFaultMessage(WSBinding binding, Packet p, QName missingHeader) {
    AddressingVersion av = binding.getAddressingVersion();
    if(av == null) {
        // Addressing is not enabled.
        throw new WebServiceException(AddressingMessages.ADDRESSING_SHOULD_BE_ENABLED());
    }
    WsaTubeHelper helper = av.getWsaHelper(null,null,binding);
    return create(helper.newMapRequiredFault(new MissingAddressingHeaderException(missingHeader,p)));
}
 
Example 4
Source File: Messages.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Creates a fault {@link Message} that captures the code/subcode/subsubcode
 * defined by WS-Addressing if one of the expected WS-Addressing headers is
 * missing in the message
 *
 * @param binding WSBinding
 * @param p
 *      {@link Packet} that was missing a WS-Addressing header.
 * @param missingHeader The missing WS-Addressing Header
 * @return
 *      A message representing SOAPFault that contains the WS-Addressing code/subcode/subsubcode.
 */
public static Message createAddressingFaultMessage(WSBinding binding, Packet p, QName missingHeader) {
    AddressingVersion av = binding.getAddressingVersion();
    if(av == null) {
        // Addressing is not enabled.
        throw new WebServiceException(AddressingMessages.ADDRESSING_SHOULD_BE_ENABLED());
    }
    WsaTubeHelper helper = av.getWsaHelper(null,null,binding);
    return create(helper.newMapRequiredFault(new MissingAddressingHeaderException(missingHeader,p)));
}
 
Example 5
Source File: Messages.java    From openjdk-jdk9 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Creates a fault {@link Message} that captures the code/subcode/subsubcode
 * defined by WS-Addressing if one of the expected WS-Addressing headers is
 * missing in the message
 *
 * @param binding WSBinding
 * @param p
 *      {@link Packet} that was missing a WS-Addressing header.
 * @param missingHeader The missing WS-Addressing Header
 * @return
 *      A message representing SOAPFault that contains the WS-Addressing code/subcode/subsubcode.
 */
public static Message createAddressingFaultMessage(WSBinding binding, Packet p, QName missingHeader) {
    AddressingVersion av = binding.getAddressingVersion();
    if(av == null) {
        // Addressing is not enabled.
        throw new WebServiceException(AddressingMessages.ADDRESSING_SHOULD_BE_ENABLED());
    }
    WsaTubeHelper helper = av.getWsaHelper(null,null,binding);
    return create(helper.newMapRequiredFault(new MissingAddressingHeaderException(missingHeader,p)));
}
 
Example 6
Source File: Messages.java    From hottub with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Creates a fault {@link Message} that captures the code/subcode/subsubcode
 * defined by WS-Addressing if one of the expected WS-Addressing headers is
 * missing in the message
 *
 * @param binding WSBinding
 * @param p
 *      {@link Packet} that was missing a WS-Addressing header.
 * @param missingHeader The missing WS-Addressing Header
 * @return
 *      A message representing SOAPFault that contains the WS-Addressing code/subcode/subsubcode.
 */
public static Message createAddressingFaultMessage(WSBinding binding, Packet p, QName missingHeader) {
    AddressingVersion av = binding.getAddressingVersion();
    if(av == null) {
        // Addressing is not enabled.
        throw new WebServiceException(AddressingMessages.ADDRESSING_SHOULD_BE_ENABLED());
    }
    WsaTubeHelper helper = av.getWsaHelper(null,null,binding);
    return create(helper.newMapRequiredFault(new MissingAddressingHeaderException(missingHeader,p)));
}
 
Example 7
Source File: Messages.java    From openjdk-8-source with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Creates a fault {@link Message} that captures the code/subcode/subsubcode
 * defined by WS-Addressing if one of the expected WS-Addressing headers is
 * missing in the message
 *
 * @param binding WSBinding
 * @param p
 *      {@link Packet} that was missing a WS-Addressing header.
 * @param missingHeader The missing WS-Addressing Header
 * @return
 *      A message representing SOAPFault that contains the WS-Addressing code/subcode/subsubcode.
 */
public static Message createAddressingFaultMessage(WSBinding binding, Packet p, QName missingHeader) {
    AddressingVersion av = binding.getAddressingVersion();
    if(av == null) {
        // Addressing is not enabled.
        throw new WebServiceException(AddressingMessages.ADDRESSING_SHOULD_BE_ENABLED());
    }
    WsaTubeHelper helper = av.getWsaHelper(null,null,binding);
    return create(helper.newMapRequiredFault(new MissingAddressingHeaderException(missingHeader,p)));
}
 
Example 8
Source File: Messages.java    From openjdk-8 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Creates a fault {@link Message} that captures the code/subcode/subsubcode
 * defined by WS-Addressing if one of the expected WS-Addressing headers is
 * missing in the message
 *
 * @param binding WSBinding
 * @param p
 *      {@link Packet} that was missing a WS-Addressing header.
 * @param missingHeader The missing WS-Addressing Header
 * @return
 *      A message representing SOAPFault that contains the WS-Addressing code/subcode/subsubcode.
 */
public static Message createAddressingFaultMessage(WSBinding binding, Packet p, QName missingHeader) {
    AddressingVersion av = binding.getAddressingVersion();
    if(av == null) {
        // Addressing is not enabled.
        throw new WebServiceException(AddressingMessages.ADDRESSING_SHOULD_BE_ENABLED());
    }
    WsaTubeHelper helper = av.getWsaHelper(null,null,binding);
    return create(helper.newMapRequiredFault(new MissingAddressingHeaderException(missingHeader,p)));
}