Tabnine Logo
ServiceException.findXmlElementText
Code IndexAdd Tabnine to your IDE (free)

How to use
findXmlElementText
method
in
org.jets3t.service.ServiceException

Best Java code snippets using org.jets3t.service.ServiceException.findXmlElementText (Showing top 2 results out of 315)

origin: net.java.dev.jets3t/jets3t

private void parseXmlMessage(String xmlMessage) {
  xmlMessage = xmlMessage.replaceAll("\n", "");
  this.xmlMessage = xmlMessage;
  this.errorCode = findXmlElementText(xmlMessage, "Code");
  this.errorMessage = findXmlElementText(xmlMessage, "Message");
  this.errorRequestId = findXmlElementText(xmlMessage, "RequestId");
  this.errorHostId = findXmlElementText(xmlMessage, "HostId");
  // Add Details element present in some Google Storage error
  // messages to Message field.
  String errorDetails = findXmlElementText(xmlMessage, "Details");
  if (errorDetails != null && errorDetails.length() > 0) {
    this.errorMessage += " " + errorDetails;
  }
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jets3t

private void parseXmlMessage(String xmlMessage) {
  xmlMessage = xmlMessage.replaceAll("\n", "");
  this.xmlMessage = xmlMessage;
  this.errorCode = findXmlElementText(xmlMessage, "Code");
  this.errorMessage = findXmlElementText(xmlMessage, "Message");
  this.errorRequestId = findXmlElementText(xmlMessage, "RequestId");
  this.errorHostId = findXmlElementText(xmlMessage, "HostId");
  // Add Details element present in some Google Storage error
  // messages to Message field.
  String errorDetails = findXmlElementText(xmlMessage, "Details");
  if (errorDetails != null && errorDetails.length() > 0) {
    this.errorMessage += " " + errorDetails;
  }
}
org.jets3t.serviceServiceExceptionfindXmlElementText

Popular methods of ServiceException

  • getMessage
  • getCause
  • getErrorCode
  • getErrorMessage
  • <init>
    Create a service exception that includes an underlying cause exception.
  • getResponseCode
  • getResponseHeaders
  • getResponseStatus
  • printStackTrace
  • setErrorCode
    Set the exception's error code; for internal use only.
  • setErrorMessage
    Set the exception's error message; for internal use only.
  • getRequestHost
  • setErrorMessage,
  • getRequestHost,
  • getRequestPath,
  • getRequestVerb,
  • getResponseDate,
  • getXmlMessage,
  • getXmlMessageAsBuilder,
  • isParsedFromXmlMessage,
  • parseXmlMessage

Popular in Java

  • Creating JSON documents from java classes using gson
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getExternalFilesDir (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • Path (java.nio.file)
  • Join (org.hibernate.mapping)
  • 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