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

How to use
DetailImpl
in
org.jboss.ws.core.soap

Best Java code snippets using org.jboss.ws.core.soap.DetailImpl (Showing top 9 results out of 315)

origin: stackoverflow.com

@Path("getValues/")
 @GET   
 @Produces( MediaType.APPLICATION_JSON)
 public DetailInterface getClientDetail() {
   DetailInterface di = new DetailImpl()
   return di; 
 }
origin: org.jboss.ws.native/jbossws-native-core

public DetailEntry addDetailEntry(Name name) throws SOAPException
{
 DetailEntryImpl detailEntry = new DetailEntryImpl(name);
 addChildElement(detailEntry);
 return detailEntry;
}
origin: org.jboss.ws.native/jbossws-native-core

@Override
public SOAPElement addChildElement(SOAPElement child) throws SOAPException
{
 if (!(child instanceof DetailEntry))
   child = convertToDetailEntry((SOAPElementImpl)child);
 return super.addChildElement(child);
}
origin: org.jboss.ws.native/jbossws-native-core

/** Converts the given element to a Detail. */
DetailImpl(SOAPElementImpl element)
{
 super(element.getElementName());
 // altough detail schema does not define attributes, copy them for completeness 
 DOMUtils.copyAttributes(this, element);
 try
 {
   NodeList nodeList = element.getChildNodes();
   for (int i = 0; i < nodeList.getLength(); i++)
   {
    Node node = nodeList.item(i);
    if (node instanceof SOAPElement)
      addChildElement((SOAPElement)node);
    else
      appendChild(node);
   }
 }
 catch (SOAPException e)
 {
   throw new WSException(BundleUtils.getMessage(bundle, "UNABLE_TO_CREATE_FAULT_DETAIL"),  e);
 }
}
origin: org.jboss.ws.native/jbossws-native-core

public Iterator getDetailEntries()
{
 List<DetailEntry> list = new ArrayList<DetailEntry>();
 NodeList nodeList = getChildNodes();
 for (int i = 0; i < nodeList.getLength(); i++)
 {
   org.w3c.dom.Node node = nodeList.item(i);
   if (node instanceof DetailEntry)
    list.add((DetailEntry)node);
 }
 return list.iterator();
}
origin: org.jboss.ws.native/jbossws-native-core

@Override
public Detail createDetail() throws SOAPException
{
 assertEnvNamespace();
 return SOAPConstants.URI_NS_SOAP_1_1_ENVELOPE.equals(envNamespace) ? new DetailImpl() :
   new DetailImpl(SOAPConstants.SOAP_ENV_PREFIX, envNamespace);
}
origin: org.jboss.ws.native/jbossws-native-core

public DetailEntry addDetailEntry(QName qname) throws SOAPException
{
 DetailEntryImpl detailEntry = new DetailEntryImpl(qname);
 addChildElement(detailEntry);
 return detailEntry;
}
origin: org.jboss.ws.native/jbossws-native-core

private SOAPFaultElement convertToFaultElement(SOAPElementImpl element)
{
 element.detachNode();
 QName elementName = element.getElementQName();
 SOAPFaultElement faultElement;
 if (Constants.NS_SOAP11_ENV.equals(getNamespaceURI()) ? Constants.SOAP11_DETAIL.equals(elementName) : Constants.SOAP12_DETAIL.equals(elementName))
   faultElement = new DetailImpl(element);
 else faultElement = new SOAPFaultElementImpl(element);
 log.trace("convertToFaultElement : " + faultElement);
 return faultElement;
}
origin: org.jboss.ws.native/jbossws-native-core

/** Creates an optional Detail object and sets it as the Detail object for this SOAPFault  object.
*/
public Detail addDetail() throws SOAPException
{
 if (Constants.NS_SOAP11_ENV.equals(getNamespaceURI()))
 {
   if (detail == null)
    findSoap11DetailElement();
   if (detail != null)
    throw new SOAPException(BundleUtils.getMessage(bundle, "ALREADY_CONTAINS_DETAIL"));
   detail = new DetailImpl();
 }
 else
 {
   if (detail == null)
    findSoap12DetailElement();
   if (detail != null)
    throw new SOAPException(BundleUtils.getMessage(bundle, "ALREADY_CONTAINS_DETAIL"));
   detail = new DetailImpl(getPrefix(), getNamespaceURI());
 }
 detail = (Detail)addChildElement(detail);
 return detail;
}
org.jboss.ws.core.soapDetailImpl

Javadoc

A container for DetailEntry objects. DetailEntry objects give detailed error information that is application-specific and related to the SOAPBody object that contains it. A Detail object, which is part of a SOAPFault object, can be retrieved using the method SOAPFault.getDetail. The Detail interface provides two methods. One creates a new DetailEntry object and also automatically adds it to the Detail object. The second method gets a list of the DetailEntry objects contained in a Detail object.

Most used methods

  • <init>
    Converts the given element to a Detail.
  • addChildElement
  • appendChild
  • convertToDetailEntry
  • getChildNodes

Popular in Java

  • Parsing JSON documents to java classes using gson
  • notifyDataSetChanged (ArrayAdapter)
  • onRequestPermissionsResult (Fragment)
  • runOnUiThread (Activity)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Top Vim plugins
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