Java Code Examples for org.apache.cxf.ws.addressing.EndpointReferenceType#getMetadata()
The following examples show how to use
org.apache.cxf.ws.addressing.EndpointReferenceType#getMetadata() .
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: AbstractSTSClient.java From steady with Apache License 2.0 | 5 votes |
protected String findMEXLocation(EndpointReferenceType ref, boolean useEPRWSAAddrAsMEXLocation) { if (ref.getMetadata() != null && ref.getMetadata().getAny() != null) { for (Object any : ref.getMetadata().getAny()) { if (any instanceof Element) { String addr = findMEXLocation((Element)any); if (addr != null) { return addr; } } } } return useEPRWSAAddrAsMEXLocation ? EndpointReferenceUtils.getAddress(ref) : null; }
Example 2
Source File: AbstractSTSClient.java From steady with Apache License 2.0 | 5 votes |
protected String findMEXLocation(EndpointReferenceType ref, boolean useEPRWSAAddrAsMEXLocation) { if (ref.getMetadata() != null && ref.getMetadata().getAny() != null) { for (Object any : ref.getMetadata().getAny()) { if (any instanceof Element) { String addr = findMEXLocation((Element)any); if (addr != null) { return addr; } } } } return useEPRWSAAddrAsMEXLocation ? EndpointReferenceUtils.getAddress(ref) : null; }
Example 3
Source File: AbstractSTSClient.java From steady with Apache License 2.0 | 5 votes |
protected String findMEXLocation(EndpointReferenceType ref, boolean useEPRWSAAddrAsMEXLocation) { if (ref.getMetadata() != null && ref.getMetadata().getAny() != null) { for (Object any : ref.getMetadata().getAny()) { if (any instanceof Element) { String addr = findMEXLocation((Element)any); if (addr != null) { return addr; } } } } return useEPRWSAAddrAsMEXLocation ? EndpointReferenceUtils.getAddress(ref) : null; }
Example 4
Source File: AbstractSTSClient.java From steady with Apache License 2.0 | 5 votes |
protected String findMEXLocation(EndpointReferenceType ref, boolean useEPRWSAAddrAsMEXLocation) { if (ref.getMetadata() != null && ref.getMetadata().getAny() != null) { for (Object any : ref.getMetadata().getAny()) { if (any instanceof Element) { String addr = findMEXLocation((Element)any); if (addr != null) { return addr; } } } } return useEPRWSAAddrAsMEXLocation ? EndpointReferenceUtils.getAddress(ref) : null; }
Example 5
Source File: SimpleBatchSTSClient.java From cxf with Apache License 2.0 | 5 votes |
protected String findMEXLocation(EndpointReferenceType ref) { if (ref.getMetadata() != null && ref.getMetadata().getAny() != null) { for (Object any : ref.getMetadata().getAny()) { if (any instanceof Element) { String addr = findMEXLocation((Element)any); if (addr != null) { return addr; } } } } return EndpointReferenceUtils.getAddress(ref); }
Example 6
Source File: STSUtils.java From cxf with Apache License 2.0 | 5 votes |
public static String findMEXLocation(EndpointReferenceType ref) { if (ref.getMetadata() != null && ref.getMetadata().getAny() != null) { for (Object any : ref.getMetadata().getAny()) { if (any instanceof Element) { String addr = findMEXLocation((Element)any); if (addr != null) { return addr; } } } } return null; }
Example 7
Source File: AbstractSTSClient.java From cxf with Apache License 2.0 | 5 votes |
protected String findMEXLocation(EndpointReferenceType ref, boolean useEPRWSAAddrAsMEXLocation) { if (ref.getMetadata() != null && ref.getMetadata().getAny() != null) { for (Object any : ref.getMetadata().getAny()) { if (any instanceof Element) { String addr = findMEXLocation((Element)any); if (addr != null) { return addr; } } } } return useEPRWSAAddrAsMEXLocation ? EndpointReferenceUtils.getAddress(ref) : null; }
Example 8
Source File: WSAEndpointReferenceUtils.java From cxf with Apache License 2.0 | 5 votes |
public static MetadataType getSetMetadata(EndpointReferenceType ref) { MetadataType mt = ref.getMetadata(); if (null == mt) { mt = WSA_OBJECT_FACTORY.createMetadataType(); ref.setMetadata(mt); } return mt; }