Tabnine Logo
EndpointHelper
Code IndexAdd Tabnine to your IDE (free)

How to use
EndpointHelper
in
com.arjuna.webservices11.wsaddr

Best Java code snippets using com.arjuna.webservices11.wsaddr.EndpointHelper (Showing top 20 results out of 315)

origin: org.jboss.jbossts.xts/jbossxts

/**
 * 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;
  }
}
origin: org.jboss.jbossts.xts/jbossxts

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.");
}
origin: org.jboss.jbossts/jbossxts

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.");
}
origin: org.jboss.jbossts/jbossxts

/**
 * 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;
  }
}
origin: org.jboss.narayana.xts/ws-c11

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.");
}
origin: org.jboss.jbossts.xts/jbossxts

/**
 * 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;
  }
}
origin: jbosstm/narayana

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.");
}
origin: org.jboss.jbossts.xts/jbossxts

/**
 * 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;
  }
}
origin: org.jboss.jbossts/jbossxts

/**
 * 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;
  }
}
origin: org.jboss.jbossts.xts/ws-t11

/**
 * 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;
  }
}
origin: org.jboss.jbossts/jbossxts

/**
 * 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;
  }
}
origin: org.jboss.jbossts/jbossxts

/**
 * 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;
  }
}
origin: org.jboss.jbossts.xts/jbossxts

/**
 * 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;
  }
}
origin: org.jboss.jbossts.xts/ws-t11

/**
 * 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;
  }
}
origin: org.jboss.jbossts.xts/ws-t11

/**
 * 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;
  }
}
origin: org.jboss.jbossts.xts/ws-t11

/**
 * 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;
  }
}
origin: org.jboss.jbossts.xts/jbossxts

/**
 * 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;
  }
}
origin: org.jboss.jbossts/jbossxts

/**
 * 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;
  }
}
origin: org.jboss.jbossts/jbossxts

/**
 * 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;
  }
}
origin: org.jboss.jbossts/jbossxts

/**
 * 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;
  }
}
com.arjuna.webservices11.wsaddrEndpointHelper

Javadoc

helper class to allow transformation of W3CEndpointreference instances to internal types which are not opaque

Most used methods

  • transform
  • getSourceFromEndpointReference

Popular in Java

  • Start an intent from android
  • requestLocationUpdates (LocationManager)
  • notifyDataSetChanged (ArrayAdapter)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • BoxLayout (javax.swing)
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now