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

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

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

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.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/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: 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.");
}
com.arjuna.webservices11.wsaddrEndpointHelpergetSourceFromEndpointReference

Popular methods of EndpointHelper

  • transform

Popular in Java

  • Reading from database using SQL prepared statement
  • getSupportFragmentManager (FragmentActivity)
  • setContentView (Activity)
  • requestLocationUpdates (LocationManager)
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • From CI to AI: The AI layer in your organization
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