com.ibm.websphere.wsrf

Class BaseFault

  • java.lang.Object
    • java.lang.Throwable
      • java.lang.Exception
        • com.ibm.websphere.wsrf.BaseFault
    • Constructor Detail

      • BaseFault

        public BaseFault()
        Default constructor. Constructs a BaseFault with the just the mandatory timestamp field set. Other fields may be modified using the 'set' methods.
      • BaseFault

        public BaseFault(EndpointReference originator,
                 ErrorCode errorCode,
                 FaultDescription[] descriptions,
                 IOSerializableSOAPElement faultCause,
                 IOSerializableSOAPElement[] extensibilityElements,
                 Attribute[] attributes)
        Constructor for a new BaseFault instance. Since all fields are optional, null may be passed for any value to omit a field.
        Parameters:
        originator - The WS-Addressing EndpointReference of the Web Service that generated the fault.
        errorCode - The error code.
        descriptions - The set of descriptions.
        faultCause - The fault cause.
        extensibilityElements - The set of extensibility elements.
        attributes - The set of attributes
    • Method Detail

      • getTimestamp

        public java.util.Calendar getTimestamp()
        Gets the timestamp.
        Returns:
        The timestamp.
      • setTimestamp

        public void setTimestamp(java.util.Calendar timestamp)
        Sets the timestamp.
        Parameters:
        timestamp - The new timetamp.
      • getOriginator

        public EndpointReference getOriginator()
        Gets the originator.
        Returns:
        The originator, or null if none present.
      • setOriginator

        public void setOriginator(EndpointReference originator)
        Sets the originator.
        Parameters:
        originator - The new originator.
      • getErrorCode

        public ErrorCode getErrorCode()
        Gets the error code.
        Returns:
        The error code, or null if none present.
      • setErrorCode

        public void setErrorCode(ErrorCode errorCode)
        Sets the error code.
        Parameters:
        errorCode - The new error code.
      • getDescriptions

        public FaultDescription[] getDescriptions()
        Gets the set of descriptions.
        Returns:
        The set of descriptions, or null if none present.
      • setDescriptions

        public void setDescriptions(FaultDescription[] descriptions)
        Sets the descriptions.
        Parameters:
        descriptions - The new descriptions array.
      • getFaultCause

        public IOSerializableSOAPElement getFaultCause()
        Gets the fault case.
        Returns:
        The fault cause, or null if none present.
      • setFaultCause

        public void setFaultCause(IOSerializableSOAPElement faultCause)
        Sets the fault cause.
        Parameters:
        faultCause - The new fault cause.
      • getExtensibilityElements

        public IOSerializableSOAPElement[] getExtensibilityElements()
        Gets the extensibility elements.
        Returns:
        The extensibility elements, or null if none present.
      • setExtensibilityElements

        public void setExtensibilityElements(IOSerializableSOAPElement[] extensibilityElements)
        Sets the extensibility elements.
        Parameters:
        extensibilityElements - The new set of extensibility elements value.
      • getAttributes

        public Attribute[] getAttributes()
        Gets the attributes.
        Returns:
        An array of Attributes, or null if none exist.
      • setAttributes

        public void setAttributes(Attribute[] attributes)
        Sets the attributes.
        Parameters:
        attributes - The array of Attributes.
IBM WebSphere Application ServerTM
Release 8.5