/** * return a coordinator endpoint appropriate to the type of participant * @param participant * @return either the secure terminaton participant endpoint or the non-secure endpoint */ MAPEndpoint getCoordinator(W3CEndpointReference participant) { NativeEndpointReference nativeRef = EndpointHelper.transform(NativeEndpointReference.class, participant); String address = nativeRef.getAddress(); if (address.startsWith("https")) { return secureTerminationCoordinator; } else { return terminationCoordinator; } }
public static <T extends EndpointReference> T transform(Class<T> clazz, EndpointReference epr) { assert epr != null; if (clazz.isAssignableFrom(W3CEndpointReference.class)) { if (epr instanceof W3CEndpointReference) { return (T)epr; } else if (epr instanceof NativeEndpointReference) { return (T)W3CEndpointReference.readFrom(getSourceFromEndpointReference(epr)); } else { throw new WebServiceException("Unsupported EndpointReference: " + epr); } } else if (clazz.isAssignableFrom(NativeEndpointReference.class)) { return (T)NativeEndpointReference.readFrom(getSourceFromEndpointReference(epr)); } //transformations from different types of EndpointReference could be supported in future... throw new WebServiceException("EndpointReference of type " + clazz + " not supported."); }
public static <T extends EndpointReference> T transform(Class<T> clazz, EndpointReference epr) { assert epr != null; if (clazz.isAssignableFrom(W3CEndpointReference.class)) { if (epr instanceof W3CEndpointReference) { return (T)epr; } else if (epr instanceof NativeEndpointReference) { return (T)W3CEndpointReference.readFrom(getSourceFromEndpointReference(epr)); } else { throw new WebServiceException("Unsupported EndpointReference: " + epr); } } else if (clazz.isAssignableFrom(NativeEndpointReference.class)) { return (T)NativeEndpointReference.readFrom(getSourceFromEndpointReference(epr)); } //transformations from different types of EndpointReference could be supported in future... throw new WebServiceException("EndpointReference of type " + clazz + " not supported."); }
/** * return a participant endpoint appropriate to the type of coordinator * @param coordinator * @return either the secure terminaton coordinator endpoint or the non-secure endpoint */ MAPEndpoint getParticipant(W3CEndpointReference coordinator) { NativeEndpointReference nativeRef = EndpointHelper.transform(NativeEndpointReference.class, coordinator); String address = nativeRef.getAddress(); if (address.startsWith("https")) { return secureTerminationParticipant; } else { return terminationParticipant; } }
public static <T extends EndpointReference> T transform(Class<T> clazz, EndpointReference epr) { assert epr != null; if (clazz.isAssignableFrom(W3CEndpointReference.class)) { if (epr instanceof W3CEndpointReference) { return (T)epr; } else if (epr instanceof NativeEndpointReference) { return (T)W3CEndpointReference.readFrom(getSourceFromEndpointReference(epr)); } else { throw new WebServiceException("Unsupported EndpointReference: " + epr); } } else if (clazz.isAssignableFrom(NativeEndpointReference.class)) { return (T)NativeEndpointReference.readFrom(getSourceFromEndpointReference(epr)); } //transformations from different types of EndpointReference could be supported in future... throw new WebServiceException("EndpointReference of type " + clazz + " not supported."); }
/** * return a participant endpoint appropriate to the type of coordinator * @param coordinator * @return either the secure terminaton coordinator endpoint or the non-secure endpoint */ MAPEndpoint getParticipant(W3CEndpointReference coordinator) { NativeEndpointReference nativeRef = EndpointHelper.transform(NativeEndpointReference.class, coordinator); String address = nativeRef.getAddress(); if (address.startsWith("https")) { return secureTerminationParticipant; } else { return terminationParticipant; } }
public static <T extends EndpointReference> T transform(Class<T> clazz, EndpointReference epr) { assert epr != null; if (clazz.isAssignableFrom(W3CEndpointReference.class)) { if (epr instanceof W3CEndpointReference) { return (T)epr; } else if (epr instanceof NativeEndpointReference) { return (T)W3CEndpointReference.readFrom(getSourceFromEndpointReference(epr)); } else { throw new WebServiceException("Unsupported EndpointReference: " + epr); } } else if (clazz.isAssignableFrom(NativeEndpointReference.class)) { return (T)NativeEndpointReference.readFrom(getSourceFromEndpointReference(epr)); } //transformations from different types of EndpointReference could be supported in future... throw new WebServiceException("EndpointReference of type " + clazz + " not supported."); }
/** * return a completion initiator endpoint appropriate to the type of completion coordinator * @param participant * @return either the secure terminaton participant endpoint or the non-secure endpoint */ MAPEndpoint getCompletionInitiator(W3CEndpointReference participant) { NativeEndpointReference nativeRef = EndpointHelper.transform(NativeEndpointReference.class, participant); String address = nativeRef.getAddress(); if (address.startsWith("https")) { return secureCompletionInitiator; } else { return completionInitiator; } }
/** * return a completion coordinator endpoint appropriate to the type of completion initiator * @param participant * @return either the secure terminaton participant endpoint or the non-secure endpoint */ MAPEndpoint getCompletionCoordinator(W3CEndpointReference participant) { NativeEndpointReference nativeRef = EndpointHelper.transform(NativeEndpointReference.class, participant); String address = nativeRef.getAddress(); if (address.startsWith("https")) { return secureCompletionCoordinator; } else { return completionCoordinator; } }
/** * return a completion initiator endpoint appropriate to the type of completion coordinator * @param participant * @return either the secure terminaton participant endpoint or the non-secure endpoint */ MAPEndpoint getCompletionInitiator(W3CEndpointReference participant) { NativeEndpointReference nativeRef = EndpointHelper.transform(NativeEndpointReference.class, participant); String address = nativeRef.getAddress(); if (address.startsWith("https")) { return secureCompletionInitiator; } else { return completionInitiator; } }
/** * return a coordinator endpoint appropriate to the type of participant * @param participant * @return either the secure terminaton participant endpoint or the non-secure endpoint */ MAPEndpoint getCoordinator(W3CEndpointReference participant) { NativeEndpointReference nativeRef = EndpointHelper.transform(NativeEndpointReference.class, participant); String address = nativeRef.getAddress(); if (address.startsWith("https")) { return secureTerminationCoordinator; } else { return terminationCoordinator; } }
/** * return a completion initiator endpoint appropriate to the type of completion coordinator * @param participant * @return either the secure terminaton participant endpoint or the non-secure endpoint */ MAPEndpoint getCompletionInitiator(W3CEndpointReference participant) { NativeEndpointReference nativeRef = EndpointHelper.transform(NativeEndpointReference.class, participant); String address = nativeRef.getAddress(); if (address.startsWith("https")) { return secureCompletionInitiator; } else { return completionInitiator; } }
/** * return a completion coordinator endpoint appropriate to the type of completion initiator * @param participant * @return either the secure terminaton participant endpoint or the non-secure endpoint */ MAPEndpoint getCompletionCoordinator(W3CEndpointReference participant) { NativeEndpointReference nativeRef = EndpointHelper.transform(NativeEndpointReference.class, participant); String address = nativeRef.getAddress(); if (address.startsWith("https")) { return secureCompletionCoordinator; } else { return completionCoordinator; } }
/** * return a coordinator endpoint appropriate to the type of participant * @param participant * @return either the secure terminaton participant endpoint or the non-secure endpoint */ MAPEndpoint getCoordinator(W3CEndpointReference participant) { NativeEndpointReference nativeRef = EndpointHelper.transform(NativeEndpointReference.class, participant); String address = nativeRef.getAddress(); if (address.startsWith("https")) { return secureTerminationCoordinator; } else { return terminationCoordinator; } }
/** * return a completion coordinator endpoint appropriate to the type of completion initiator * @param participant * @return either the secure terminaton participant endpoint or the non-secure endpoint */ MAPEndpoint getCompletionCoordinator(W3CEndpointReference participant) { NativeEndpointReference nativeRef = EndpointHelper.transform(NativeEndpointReference.class, participant); String address = nativeRef.getAddress(); if (address.startsWith("https")) { return secureCompletionCoordinator; } else { return completionCoordinator; } }
/** * return a participant endpoint appropriate to the type of coordinator * @param coordinator * @return either the secure terminaton coordinator endpoint or the non-secure endpoint */ MAPEndpoint getParticipant(W3CEndpointReference coordinator) { NativeEndpointReference nativeRef = EndpointHelper.transform(NativeEndpointReference.class, coordinator); String address = nativeRef.getAddress(); if (address.startsWith("https")) { return secureTerminationParticipant; } else { return terminationParticipant; } }
/** * return a coordinator endpoint appropriate to the type of participant * @param endpoint * @return either the secure coordinator endpoint or the non-secure endpoint */ MAPEndpoint getCoordinator(W3CEndpointReference endpoint, MAP map) { String address; if (endpoint != null) { NativeEndpointReference nativeRef = EndpointHelper.transform(NativeEndpointReference.class, endpoint); address = nativeRef.getAddress(); } else { address = map.getTo(); } if (address.startsWith("https")) { return secureCoordinatorCompletionCoordinator; } else { return coordinatorCompletionCoordinator; } }
/** * return a participant endpoint appropriate to the type of coordinator * @param endpoint * @return either the secure participant endpoint or the non-secure endpoint */ MAPEndpoint getParticipant(W3CEndpointReference endpoint, MAP map) { String address; if (endpoint != null) { NativeEndpointReference nativeRef = EndpointHelper.transform(NativeEndpointReference.class, endpoint); address = nativeRef.getAddress(); } else { address = map.getTo(); } if (address.startsWith("https")) { return secureCoordinatorCompletionParticipant; } else { return coordinatorCompletionParticipant; } }
/** * return a participant endpoint appropriate to the type of coordinator * @param endpoint * @return either the secure participant endpoint or the non-secure endpoint */ MAPEndpoint getParticipant(W3CEndpointReference endpoint, MAP map) { String address; if (endpoint != null) { NativeEndpointReference nativeRef = EndpointHelper.transform(NativeEndpointReference.class, endpoint); address = nativeRef.getAddress(); } else { address = map.getTo(); } if (address.startsWith("https")) { return secureParticipant; } else { return participant; } }
/** * return a coordinator endpoint appropriate to the type of participant * @param endpoint * @return either the secure coordinator endpoint or the non-secure endpoint */ MAPEndpoint getCoordinator(W3CEndpointReference endpoint, MAP map) { String address; if (endpoint != null) { NativeEndpointReference nativeRef = EndpointHelper.transform(NativeEndpointReference.class, endpoint); address = nativeRef.getAddress(); } else { address = map.getTo(); } if (address.startsWith("https")) { return secureParticipantCompletionCoordinator; } else { return participantCompletionCoordinator; } }