Java Doc for SOAPFaultImpl.java in  » Web-Services-AXIS2 » saaj » org » apache » axis2 » saaj » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Web Services AXIS2 » saaj » org.apache.axis2.saaj 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.axis2.saaj.NodeImplEx
   org.apache.axis2.saaj.SOAPElementImpl
      org.apache.axis2.saaj.SOAPBodyElementImpl
         org.apache.axis2.saaj.SOAPFaultImpl

SOAPFaultImpl
public class SOAPFaultImpl extends SOAPBodyElementImpl implements SOAPFault(Code)


Field Summary
protected  org.apache.axiom.soap.SOAPFaultfault
    

Constructor Summary
public  SOAPFaultImpl(org.apache.axiom.soap.SOAPFault fault)
    

Method Summary
public  DetailaddDetail()
    
public  voidaddFaultReasonText(String text, Locale locale)
     Appends or replaces a Reason Text item containing the specified text message and an xml:lang derived from locale.
public  voidappendFaultSubcode(QName subcode)
     Adds a Subcode to the end of the sequence of Subcodes contained by this SOAPFault.
public  IteratorgetChildElements(Name name)
    
public  IteratorgetChildElements()
    
public  DetailgetDetail()
    
public  StringgetFaultActor()
    
public  StringgetFaultCode()
     Gets the fault code for this SOAPFault object.
public  NamegetFaultCodeAsName()
    
public  QNamegetFaultCodeAsQName()
     Gets the fault code for this SOAPFault object as a QName object.
public  StringgetFaultNode()
     Returns the optional Node element value for this SOAPFault object.
public  IteratorgetFaultReasonLocales()
     Returns an Iterator over a distinct sequence of Locales for which there are associated Reason Text items.
public  StringgetFaultReasonText(Locale locale)
     Returns the Reason Text associated with the given Locale.
public  IteratorgetFaultReasonTexts()
     Returns an Iterator over a sequence of String objects containing all of the Reason Text items for this SOAPFault.
public  StringgetFaultRole()
     Returns the optional Role element value for this SOAPFault object.
public  StringgetFaultString()
    
public  LocalegetFaultStringLocale()
     Gets the locale of the fault string for this SOAPFault object.
public  IteratorgetFaultSubcodes()
     Gets the Subcodes for this SOAPFault as an iterator over QNames. an Iterator that accesses a sequence of QNames.
public  booleanhasDetail()
     Returns true if this SOAPFault has a Detail subelement and false otherwise.
public  voidremoveAllFaultSubcodes()
     Removes any Subcodes that may be contained by this SOAPFault.
 voidremoveDefaults()
    
 voidsetDefaults()
    
public  voidsetFaultActor(String faultActor)
     Sets this SOAPFault object with the given fault actor.The fault actor is the recipient in the message path who caused the fault to happen.
public  voidsetFaultCode(String faultCode)
     Sets this SOAPFault object with the given fault code.

Fault codes, which given information about the fault, are defined in the SOAP 1.1 specification.

public  voidsetFaultCode(Name faultCodeName)
     Sets this SOAPFault object with the given fault code.Fault codes, which give information about the fault, are defined in the SOAP 1.1 specification.
public  voidsetFaultCode(QName qname)
     Sets this SOAPFault object with the given fault code.
public  voidsetFaultNode(String s)
     Creates or replaces any existing Node element value for this SOAPFault object.
public  voidsetFaultRole(String uri)
     Creates or replaces any existing Role element value for this SOAPFault object.
public  voidsetFaultString(String faultString)
     Sets the fault string for this SOAPFault object to the given string.
public  voidsetFaultString(String faultString, Locale locale)
     Sets the fault string for this SOAPFault object to the given string.

Field Detail
fault
protected org.apache.axiom.soap.SOAPFault fault(Code)




Constructor Detail
SOAPFaultImpl
public SOAPFaultImpl(org.apache.axiom.soap.SOAPFault fault)(Code)

Parameters:
  fault -




Method Detail
addDetail
public Detail addDetail() throws SOAPException(Code)



addFaultReasonText
public void addFaultReasonText(String text, Locale locale) throws SOAPException(Code)
Appends or replaces a Reason Text item containing the specified text message and an xml:lang derived from locale. If a Reason Text item with this xml:lang already exists its text value will be replaced with text. The locale parameter should not be null Code sample: SOAPFault fault = ...; fault.addFaultReasonText(Version Mismatch, Locale.ENGLISH);
Parameters:
  text - - reason message string locale - Locale object representing the locale of themessage
throws:
  SOAPException - - if there was an error in adding the Reason text or the locale passedwas null. java.lang.UnsupportedOperationException - if this messagedoes not support the SOAP 1.2 concept of Fault Reason.



appendFaultSubcode
public void appendFaultSubcode(QName subcode) throws SOAPException(Code)
Adds a Subcode to the end of the sequence of Subcodes contained by this SOAPFault. Subcodes, which were introduced in SOAP 1.2, are represented by a recursive sequence of subelements rooted in the mandatory Code subelement of a SOAP Fault.
Parameters:
  subcode - - a QName containing the Value of the Subcode.
throws:
  SOAPException - - if there was an error in setting the Subcode java.lang.UnsupportedOperationException- if this message does not support the SOAP 1.2 concept of Subcode.



getChildElements
public Iterator getChildElements(Name name)(Code)



getChildElements
public Iterator getChildElements()(Code)



getDetail
public Detail getDetail()(Code)



getFaultActor
public String getFaultActor()(Code)



getFaultCode
public String getFaultCode()(Code)
Gets the fault code for this SOAPFault object. a String with the fault code
See Also:   SOAPFaultImpl.setFaultCode(String)
See Also:    setFaultCode(java.lang.String)



getFaultCodeAsName
public Name getFaultCodeAsName()(Code)



getFaultCodeAsQName
public QName getFaultCodeAsQName()(Code)
Gets the fault code for this SOAPFault object as a QName object.




getFaultNode
public String getFaultNode()(Code)
Returns the optional Node element value for this SOAPFault object. The Node element is optional in SOAP 1.2. Content of the env:Fault/env:Node element as a String or null if none
throws:
  UnsupportedOperationException - - if this message does not support the SOAP 1.2 concept of Fault Node.



getFaultReasonLocales
public Iterator getFaultReasonLocales() throws SOAPException(Code)
Returns an Iterator over a distinct sequence of Locales for which there are associated Reason Text items. Any of these Locales can be used in a call to getFaultReasonText in order to obtain a localized version of the Reason Text string. an Iterator over a sequence of Locale objects for which there are associated ReasonText items.
throws:
  SOAPException - - if there was an error in retrieving the fault Reason locales.java.lang.UnsupportedOperationException - if this message does notsupport the SOAP 1.2 concept of Fault Reason.
since:
   SAAJ 1.3



getFaultReasonText
public String getFaultReasonText(Locale locale) throws SOAPException(Code)
Returns the Reason Text associated with the given Locale. If more than one such Reason Text exists the first matching Text is returned
Parameters:
  locale - - the Locale for which a localized Reason Text is desired the Reason Text associated with locale
throws:
  SOAPException - - if there was an error in retrieving the fault Reason text for thespecified locale. java.lang.UnsupportedOperationException - if thismessage does not support the SOAP 1.2 concept of Fault Reason.
since:
   SAAJ 1.3



getFaultReasonTexts
public Iterator getFaultReasonTexts() throws SOAPException(Code)
Returns an Iterator over a sequence of String objects containing all of the Reason Text items for this SOAPFault.
throws:
  SOAPException - if there is an error in retrieving texts for Reason objectsjava.lang.UnsupportedOperationException - if this message does notsupport the SOAP 1.2 concept of Fault Reason.



getFaultRole
public String getFaultRole()(Code)
Returns the optional Role element value for this SOAPFault object. The Role element is optional in SOAP 1.2. Content of the env:Fault/env:Role element as a String or null if none
throws:
  UnsupportedOperationException - - if this message does not support the SOAP 1.2 concept of Fault Role.
since:
   SAAJ 1.3



getFaultString
public String getFaultString()(Code)



getFaultStringLocale
public Locale getFaultStringLocale()(Code)
Gets the locale of the fault string for this SOAPFault object. If this SOAPFault is part of a message that supports SOAP 1.2 then this call is equivalent to:

Locale locale = null; try { locale = (Locale) getFaultReasonLocales().next(); } catch (SOAPException e) {} return locale; a Locale object indicating the native language of the fault string or null if nolocale was specified
See Also:    setFaultString(String, Locale)
since:
   SAAJ 1.2




getFaultSubcodes
public Iterator getFaultSubcodes()(Code)
Gets the Subcodes for this SOAPFault as an iterator over QNames. an Iterator that accesses a sequence of QNames. This Iterator should not support theoptional remove method. The order in which the Subcodes are returned reflects thehierarchy of Subcodes present in the fault from top to bottom.
throws:
  UnsupportedOperationException - - if this message does not support the SOAP 1.2 concept of Subcode.



hasDetail
public boolean hasDetail()(Code)
Returns true if this SOAPFault has a Detail subelement and false otherwise.



removeAllFaultSubcodes
public void removeAllFaultSubcodes()(Code)
Removes any Subcodes that may be contained by this SOAPFault. Subsequent calls to getFaultSubcodes will return an empty iterator until a call to appendFaultSubcode is made.
throws:
  UnsupportedOperationException - - if this message does not support the SOAP 1.2 concept of Subcode.



removeDefaults
void removeDefaults()(Code)



setDefaults
void setDefaults() throws SOAPException(Code)



setFaultActor
public void setFaultActor(String faultActor) throws SOAPException(Code)
Sets this SOAPFault object with the given fault actor.The fault actor is the recipient in the message path who caused the fault to happen. If this SOAPFault supports SOAP 1.2 then this call is equivalent to setFaultRole(String)
Parameters:
  faultActor - - a String identifying the actor that caused this SOAPFault object
throws:
  SOAPException - - if there was an error in adding the faultActor to the underlying XMLtree.



setFaultCode
public void setFaultCode(String faultCode) throws SOAPException(Code)
Sets this SOAPFault object with the given fault code.

Fault codes, which given information about the fault, are defined in the SOAP 1.1 specification. This element is mandatory in SOAP 1.1. Because the fault code is required to be a QName it is preferable to use the setFaultCode(Name)form of this method.
Parameters:
  faultCode - - a String giving the fault code to be set. It must be of the form"prefix:localName" where the prefix has been defined in a namespacedeclaration.
throws:
  SOAPException - - if there was an error in adding the faultCode to the underlying XMLtree.
See Also:    setFaultCode(Name), getFaultCode(),SOAPElement.addNamespaceDeclaration(String, String)




setFaultCode
public void setFaultCode(Name faultCodeName) throws SOAPException(Code)
Sets this SOAPFault object with the given fault code.Fault codes, which give information about the fault, are defined in the SOAP 1.1 specification. A fault code is mandatory and must be of type QName. This method provides a convenient way to set a fault code. For example,

SOAPEnvelope se = ...; // Create a qualified name in the SOAP namespace with a localName // of Client. Note that prefix parameter is optional and is null // here which causes the implementation to use an appropriate prefix. Name qname = se.createName(Client, null,SOAPConstants.URI_NS_SOAP_ENVELOPE); SOAPFault fault = ...; fault.setFaultCode(qname);

It is preferable to use this method over setFaultCode(String).
Parameters:
  faultCodeQName - - a Name object giving the fault code to be set. It must be namespacequalified.
throws:
  SOAPException - - if there was an error in adding the faultcode element to theunderlying XML tree.




setFaultCode
public void setFaultCode(QName qname) throws SOAPException(Code)
Sets this SOAPFault object with the given fault code. It is preferable to use this method over setFaultCode(Name)
Parameters:
  faultCodeQName - - a QName object giving the fault code to be set. It must be namespacequalified.
throws:
  SOAPException - - if there was an error in adding the faultcode element to theunderlying XML tree.
See Also:    getFaultCodeAsQName(), setFaultCode(Name), getFaultCodeAsQName()
since:
   SAAJ 1.3



setFaultNode
public void setFaultNode(String s) throws SOAPException(Code)
Creates or replaces any existing Node element value for this SOAPFault object. The Node element is optional in SOAP 1.2.
throws:
  SOAPException - - if there was an error in setting the Node for this SOAPFault object.java.lang.UnsupportedOperationException - if this message does notsupport the SOAP 1.2 concept of Fault Node.
since:
   SAAJ 1.3



setFaultRole
public void setFaultRole(String uri) throws SOAPException(Code)
Creates or replaces any existing Role element value for this SOAPFault object. The Role element is optional in SOAP 1.2.
Parameters:
  uri - - the URI of the Role
throws:
  SOAPException - - if there was an error in setting the Role for this SOAPFault objectjava.lang.UnsupportedOperationException - if this message does notsupport the SOAP 1.2 concept of Fault Role.



setFaultString
public void setFaultString(String faultString) throws SOAPException(Code)
Sets the fault string for this SOAPFault object to the given string.
Parameters:
  faultString - a String giving an explanation of the fault
throws:
  SOAPException - if there was an error in adding the faultString to theunderlying XML tree.
See Also:   SOAPFaultImpl.getFaultString()
See Also:    getFaultString()



setFaultString
public void setFaultString(String faultString, Locale locale) throws SOAPException(Code)
Sets the fault string for this SOAPFault object to the given string. If this SOAPFault is part of a message that supports SOAP 1.2 then this call is equivalent to: addFaultReasonText(faultString, Locale.getDefault());
Parameters:
  faultString - - a String giving an explanation of the fault
throws:
  SOAPException - - if there was an error in adding the faultString to the underlying XMLtree.
See Also:    getFaultString()



Methods inherited from org.apache.axis2.saaj.SOAPBodyElementImpl
public SOAPElement addAttribute(QName qname, String value) throws SOAPException(Code)(Java Doc)
public SOAPElement addChildElement(QName qname) throws SOAPException(Code)(Java Doc)
public QName createQName(String localName, String prefix) throws SOAPException(Code)(Java Doc)
public Iterator getAllAttributesAsQNames()(Code)(Java Doc)
public String getAttributeValue(QName qname)(Code)(Java Doc)
public Iterator getChildElements(QName qname)(Code)(Java Doc)
public QName getElementQName()(Code)(Java Doc)
public boolean removeAttribute(QName qname)(Code)(Java Doc)
public SOAPElement setElementQName(QName newName) throws SOAPException(Code)(Java Doc)
public void setParentElement(SOAPElement parent) throws SOAPException(Code)(Java Doc)

Fields inherited from org.apache.axis2.saaj.SOAPElementImpl
protected ElementImpl element(Code)(Java Doc)

Methods inherited from org.apache.axis2.saaj.SOAPElementImpl
public SOAPElement addAttribute(Name name, String value) throws SOAPException(Code)(Java Doc)
public SOAPElement addAttribute(QName qname, String value) throws SOAPException(Code)(Java Doc)
public SOAPElement addChildElement(Name name) throws SOAPException(Code)(Java Doc)
public SOAPElement addChildElement(SOAPElement soapElement) throws SOAPException(Code)(Java Doc)
public SOAPElement addChildElement(String localName, String prefix, String uri) throws SOAPException(Code)(Java Doc)
public SOAPElement addChildElement(String localName, String prefix) throws SOAPException(Code)(Java Doc)
public SOAPElement addChildElement(String localName) throws SOAPException(Code)(Java Doc)
public SOAPElement addChildElement(QName qname) throws SOAPException(Code)(Java Doc)
public SOAPElement addNamespaceDeclaration(String prefix, String uri) throws SOAPException(Code)(Java Doc)
public SOAPElement addTextNode(String text) throws SOAPException(Code)(Java Doc)
public QName createQName(String localName, String prefix) throws SOAPException(Code)(Java Doc)
public OMNode detach()(Code)(Java Doc)
public void detachNode()(Code)(Java Doc)
public void discard() throws OMException(Code)(Java Doc)
public Iterator getAllAttributes()(Code)(Java Doc)
public Iterator getAllAttributesAsQNames()(Code)(Java Doc)
public String getAttribute(String name)(Code)(Java Doc)
public String getAttributeNS(String namespaceURI, String localName)(Code)(Java Doc)
public Attr getAttributeNode(String name)(Code)(Java Doc)
public Attr getAttributeNodeNS(String namespaceURI, String localName)(Code)(Java Doc)
public String getAttributeValue(Name name)(Code)(Java Doc)
public String getAttributeValue(QName qname)(Code)(Java Doc)
public NamedNodeMap getAttributes()(Code)(Java Doc)
public Iterator getChildElements()(Code)(Java Doc)
public Iterator getChildElements(Name name)(Code)(Java Doc)
public Iterator getChildElements(QName qname)(Code)(Java Doc)
public NodeList getChildNodes()(Code)(Java Doc)
public ElementImpl getElement()(Code)(Java Doc)
public Name getElementName()(Code)(Java Doc)
public QName getElementQName()(Code)(Java Doc)
public NodeList getElementsByTagName(String name)(Code)(Java Doc)
public NodeList getElementsByTagNameNS(String namespaceURI, String localName)(Code)(Java Doc)
public String getEncodingStyle()(Code)(Java Doc)
public org.w3c.dom.Node getFirstChild()(Code)(Java Doc)
public org.w3c.dom.Node getLastChild()(Code)(Java Doc)
public String getLocalName()(Code)(Java Doc)
public Iterator getNamespacePrefixes()(Code)(Java Doc)
public String getNamespaceURI()(Code)(Java Doc)
public String getNamespaceURI(String prefix)(Code)(Java Doc)
public org.w3c.dom.Node getNextSibling()(Code)(Java Doc)
public String getNodeName()(Code)(Java Doc)
public short getNodeType()(Code)(Java Doc)
public Document getOwnerDocument()(Code)(Java Doc)
public SOAPElement getParentElement()(Code)(Java Doc)
public Node getParentNode()(Code)(Java Doc)
public String getPrefix()(Code)(Java Doc)
public Node getPreviousSibling()(Code)(Java Doc)
public String getTagName()(Code)(Java Doc)
public String getValue()(Code)(Java Doc)
public Iterator getVisibleNamespacePrefixes()(Code)(Java Doc)
public boolean hasAttribute(String name)(Code)(Java Doc)
public boolean hasAttributeNS(String namespaceURI, String localName)(Code)(Java Doc)
public boolean hasChildNodes()(Code)(Java Doc)
public void internalSerialize(javax.xml.stream.XMLStreamWriter writer) throws XMLStreamException(Code)(Java Doc)
public void internalSerializeAndConsume(javax.xml.stream.XMLStreamWriter writer) throws XMLStreamException(Code)(Java Doc)
public boolean removeAttribute(QName qname)(Code)(Java Doc)
public boolean removeAttribute(Name name)(Code)(Java Doc)
public void removeAttribute(String name) throws DOMException(Code)(Java Doc)
public void removeAttributeNS(String namespaceURI, String localName) throws DOMException(Code)(Java Doc)
public Attr removeAttributeNode(Attr attr) throws DOMException(Code)(Java Doc)
public void removeContents()(Code)(Java Doc)
public boolean removeNamespaceDeclaration(String prefix)(Code)(Java Doc)
public void setAttribute(String name, String value) throws DOMException(Code)(Java Doc)
public void setAttributeNS(String namespaceURI, String qualifiedName, String value) throws DOMException(Code)(Java Doc)
public Attr setAttributeNode(Attr attr) throws DOMException(Code)(Java Doc)
public Attr setAttributeNodeNS(Attr attr) throws DOMException(Code)(Java Doc)
public SOAPElement setElementQName(QName newName) throws SOAPException(Code)(Java Doc)
public void setEncodingStyle(String encodingStyle) throws SOAPException(Code)(Java Doc)
public void setParent(OMContainer parentElement)(Code)(Java Doc)
public void setParentElement(SOAPElement parent) throws SOAPException(Code)(Java Doc)
public void setValue(String value)(Code)(Java Doc)

Fields inherited from org.apache.axis2.saaj.NodeImplEx
final static String SAAJ_NODE(Code)(Java Doc)
protected SOAPElement parentElement(Code)(Java Doc)

Methods inherited from org.apache.axis2.saaj.NodeImplEx
public OMNode detach()(Code)(Java Doc)
public void detachNode()(Code)(Java Doc)
public OMContainer getParent()(Code)(Java Doc)
public SOAPElement getParentElement()(Code)(Java Doc)
public TypeInfo getSchemaTypeInfo()(Code)(Java Doc)
public int getType()(Code)(Java Doc)
public String getValue()(Code)(Java Doc)
public void recycleNode()(Code)(Java Doc)
public void setIdAttribute(String name, boolean isId) throws DOMException(Code)(Java Doc)
public void setIdAttributeNS(String namespaceURI, String localName, boolean isId) throws DOMException(Code)(Java Doc)
public void setIdAttributeNode(Attr idAttr, boolean isId) throws DOMException(Code)(Java Doc)
public void setParentElement(SOAPElement parent) throws SOAPException(Code)(Java Doc)
public void setType(int nodeType) throws OMException(Code)(Java Doc)
javax.xml.soap.Node toSAAJNode(org.w3c.dom.Node domNode)(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.