/** * Set the address of the provided endpoint reference. * @param ref - the endpoint reference * @param address - the address */ public static void setAddress(EndpointReferenceType ref, String address) { WSAEndpointReferenceUtils.setAddress(ref, address); } /**
/** * Set the address of the provided endpoint reference. * @param ref - the endpoint reference * @param address - the address */ public static void setAddress(EndpointReferenceType ref, String address) { WSAEndpointReferenceUtils.setAddress(ref, address); } /**
public void setAddress(String addr) { if (null == address) { address = WSAEndpointReferenceUtils.getEndpointReference(addr); } else { WSAEndpointReferenceUtils.setAddress(address, addr); } }
/** * Create an anonymous endpoint reference. * @return EndpointReferenceType - the endpoint reference */ public static EndpointReferenceType getAnonymousEndpointReference() { EndpointReferenceType reference = WSA_OBJECT_FACTORY.createEndpointReferenceType(); setAddress(reference, ANONYMOUS_ADDRESS); return reference; }
/** * Create an anonymous endpoint reference. * @return EndpointReferenceType - the endpoint reference */ public static EndpointReferenceType getAnonymousEndpointReference() { EndpointReferenceType reference = WSA_OBJECT_FACTORY.createEndpointReferenceType(); setAddress(reference, ANONYMOUS_ADDRESS); return reference; }
/** * Create an endpoint reference for the provided address. * @param address - address URI * @return EndpointReferenceType - the endpoint reference */ public static EndpointReferenceType getEndpointReference(String address) { EndpointReferenceType reference = WSA_OBJECT_FACTORY.createEndpointReferenceType(); setAddress(reference, address); return reference; }
/** * Create an endpoint reference for the provided address. * @param address - address URI * @return EndpointReferenceType - the endpoint reference */ public static EndpointReferenceType getEndpointReference(String address) { EndpointReferenceType reference = WSA_OBJECT_FACTORY.createEndpointReferenceType(); setAddress(reference, address); return reference; }
public void setAddress(String addr) { if (null == address) { address = WSAEndpointReferenceUtils.getEndpointReference(addr); } else { WSAEndpointReferenceUtils.setAddress(address, addr); } }
/** * Create an endpoint reference for the provided address. * @param address - address URI * @return EndpointReferenceType - the endpoint reference */ public static EndpointReferenceType getEndpointReference(String address) { EndpointReferenceType reference = WSA_OBJECT_FACTORY.createEndpointReferenceType(); setAddress(reference, address); return reference; }
/** * Create an anonymous endpoint reference. * @return EndpointReferenceType - the endpoint reference */ public static EndpointReferenceType getAnonymousEndpointReference() { EndpointReferenceType reference = WSA_OBJECT_FACTORY.createEndpointReferenceType(); setAddress(reference, ANONYMOUS_ADDRESS); return reference; }
/** * Creates an endpoint reference by duplicating the endpoint reference of a given server. * @param server * @param address * @param props * @return */ private static EndpointReferenceType createEPR(Server server, String address, SLProperties props) { EndpointReferenceType sourceEPR = server.getEndpoint().getEndpointInfo().getTarget(); EndpointReferenceType targetEPR = WSAEndpointReferenceUtils.duplicate(sourceEPR); WSAEndpointReferenceUtils.setAddress(targetEPR, address); if (props != null) { addProperties(targetEPR, props); } return targetEPR; }
/** * Creates an endpoint reference by duplicating the endpoint reference of a given server. * @param server * @param address * @param props * @return */ private static EndpointReferenceType createEPR(Server server, String address, SLProperties props) { EndpointReferenceType sourceEPR = server.getEndpoint().getEndpointInfo().getTarget(); EndpointReferenceType targetEPR = WSAEndpointReferenceUtils.duplicate(sourceEPR); WSAEndpointReferenceUtils.setAddress(targetEPR, address); if (props != null) { addProperties(targetEPR, props); } return targetEPR; }