当前位置: 首页>>代码示例>>Java>>正文


Java AddressingMessages.REPLY_TO_CANNOT_PARSE属性代码示例

本文整理汇总了Java中com.sun.xml.internal.ws.resources.AddressingMessages.REPLY_TO_CANNOT_PARSE属性的典型用法代码示例。如果您正苦于以下问题:Java AddressingMessages.REPLY_TO_CANNOT_PARSE属性的具体用法?Java AddressingMessages.REPLY_TO_CANNOT_PARSE怎么用?Java AddressingMessages.REPLY_TO_CANNOT_PARSE使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在com.sun.xml.internal.ws.resources.AddressingMessages的用法示例。


在下文中一共展示了AddressingMessages.REPLY_TO_CANNOT_PARSE属性的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getReplyTo

public static WSEndpointReference getReplyTo(@NotNull MessageHeaders headers, @NotNull AddressingVersion av, @NotNull SOAPVersion sv) {
    if (av == null) {
        throw new IllegalArgumentException(AddressingMessages.NULL_ADDRESSING_VERSION());
    }

    Header h = getFirstHeader(headers, av.replyToTag, true, sv);
    WSEndpointReference replyTo;
    if (h != null) {
        try {
            replyTo = h.readAsEPR(av);
        } catch (XMLStreamException e) {
            throw new WebServiceException(AddressingMessages.REPLY_TO_CANNOT_PARSE(), e);
        }
    } else {
        replyTo = av.anonymousEpr;
    }

    return replyTo;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:19,代码来源:AddressingUtils.java

示例2: getReplyTo

/**
 * Returns the value of WS-Addressing <code>ReplyTo</code> header. The <code>version</code>
 * identifies the WS-Addressing version and the header returned is targeted at
 * the current implicit role. Caches the value for subsequent invocation.
 * Duplicate <code>ReplyTo</code> headers are detected earlier.
 *
 * @param av WS-Addressing version
 * @param sv SOAP version
 * @throws IllegalArgumentException if either <code>av</code> or <code>sv</code> is null.
 * @return Value of WS-Addressing ReplyTo header, null if no header is present
 */
public WSEndpointReference getReplyTo(@NotNull AddressingVersion av, @NotNull SOAPVersion sv) {
    if (replyTo != null) {
        return replyTo;
    }
    if (av == null) {
        throw new IllegalArgumentException(AddressingMessages.NULL_ADDRESSING_VERSION());
    }

    Header h = getFirstHeader(av.replyToTag, true, sv);
    if (h != null) {
        try {
            replyTo = h.readAsEPR(av);
        } catch (XMLStreamException e) {
            throw new WebServiceException(AddressingMessages.REPLY_TO_CANNOT_PARSE(), e);
        }
    } else {
        replyTo = av.anonymousEpr;
    }

    return replyTo;
}
 
开发者ID:alexkasko,项目名称:openjdk-icedtea7,代码行数:32,代码来源:HeaderList.java


注:本文中的com.sun.xml.internal.ws.resources.AddressingMessages.REPLY_TO_CANNOT_PARSE属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。