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


Java AddressingMessages.NULL_ADDRESSING_VERSION属性代码示例

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


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

示例1: getFaultTo

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

    Header h = getFirstHeader(headers, av.faultToTag, true, sv);
    WSEndpointReference faultTo = null;
    if (h != null) {
        try {
            faultTo = h.readAsEPR(av);
        } catch (XMLStreamException e) {
            throw new WebServiceException(AddressingMessages.FAULT_TO_CANNOT_PARSE(), e);
        }
    }

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

示例2: 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

示例3: getTo

/**
 * Returns the value of WS-Addressing <code>To</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>To</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 To header, anonymous URI if no header is present
 */
public String getTo(AddressingVersion av, SOAPVersion sv) {
    if (to != null) {
        return to;
    }
    if (av == null) {
        throw new IllegalArgumentException(AddressingMessages.NULL_ADDRESSING_VERSION());
    }

    Header h = getFirstHeader(av.toTag, true, sv);
    if (h != null) {
        to = h.getStringContent();
    } else {
        to = av.anonymousUri;
    }

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

示例4: getAction

/**
 * Returns the value of WS-Addressing <code>Action</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>Action</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 Action header, null if no header is present
 */
public String getAction(@NotNull AddressingVersion av, @NotNull SOAPVersion sv) {
    if (action != null) {
        return action;
    }
    if (av == null) {
        throw new IllegalArgumentException(AddressingMessages.NULL_ADDRESSING_VERSION());
    }

    Header h = getFirstHeader(av.actionTag, true, sv);
    if (h != null) {
        action = h.getStringContent();
    }

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

示例5: 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

示例6: getFaultTo

/**
 * Returns the value of WS-Addressing <code>FaultTo</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>FaultTo</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 FaultTo header, null if no header is present
 */
public WSEndpointReference getFaultTo(@NotNull AddressingVersion av, @NotNull SOAPVersion sv) {
    if (faultTo != null) {
        return faultTo;
    }

    if (av == null) {
        throw new IllegalArgumentException(AddressingMessages.NULL_ADDRESSING_VERSION());
    }

    Header h = getFirstHeader(av.faultToTag, true, sv);
    if (h != null) {
        try {
            faultTo = h.readAsEPR(av);
        } catch (XMLStreamException e) {
            throw new WebServiceException(AddressingMessages.FAULT_TO_CANNOT_PARSE(), e);
        }
    }

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

示例7: getMessageID

/**
 * Returns the value of WS-Addressing <code>MessageID</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>MessageID</code> headers are detected earlier.
 *
 * @param av WS-Addressing version
 * @param sv SOAP version
 * @throws WebServiceException if either <code>av</code> or <code>sv</code> is null.
 * @return Value of WS-Addressing MessageID header, null if no header is present
 */
public String getMessageID(@NotNull AddressingVersion av, @NotNull SOAPVersion sv) {
    if (messageId != null) {
        return messageId;
    }

    if (av == null) {
        throw new IllegalArgumentException(AddressingMessages.NULL_ADDRESSING_VERSION());
    }

    Header h = getFirstHeader(av.messageIDTag, true, sv);
    if (h != null) {
        messageId = h.getStringContent();
    }

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

示例8: getRelatesTo

/**
 * Returns the value of WS-Addressing <code>RelatesTo</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>RelatesTo</code> headers are detected earlier.
 *
 * @param av WS-Addressing version
 * @param sv SOAP version
 * @throws WebServiceException if either <code>av</code> or <code>sv</code> is null.
 * @return Value of WS-Addressing RelatesTo header, null if no header is present
 */
public String getRelatesTo(@NotNull AddressingVersion av, @NotNull SOAPVersion sv) {
    if (relatesTo != null) {
        return relatesTo;
    }

    if (av == null) {
        throw new IllegalArgumentException(AddressingMessages.NULL_ADDRESSING_VERSION());
    }

    Header h = getFirstHeader(av.relatesToTag, true, sv);
    if (h != null) {
        relatesTo = h.getStringContent();
    }

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

示例9: getAction

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

    String action = null;
    Header h = getFirstHeader(headers, av.actionTag, true, sv);
    if (h != null) {
        action = h.getStringContent();
    }

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

示例10: getMessageID

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

    Header h = getFirstHeader(headers, av.messageIDTag, true, sv);
    String messageId = null;
    if (h != null) {
        messageId = h.getStringContent();
    }

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

示例11: getRelatesTo

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

    Header h = getFirstHeader(headers, av.relatesToTag, true, sv);
    String relatesTo = null;
    if (h != null) {
        relatesTo = h.getStringContent();
    }

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

示例12: getTo

public static String getTo(MessageHeaders headers, AddressingVersion av, SOAPVersion sv) {
    if (av == null) {
        throw new IllegalArgumentException(AddressingMessages.NULL_ADDRESSING_VERSION());
    }

    Header h = getFirstHeader(headers, av.toTag, true, sv);
    String to;
    if (h != null) {
        to = h.getStringContent();
    } else {
        to = av.anonymousUri;
    }

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


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