Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.1.2)

Part Number E27170-01

weblogic.wsee.reliability.faults
Class WsrmFaultMsg

java.lang.Object
  extended by weblogic.wsee.reliability.faults.WsrmFaultMsg
Direct Known Subclasses:
SequenceFaultMsg

public abstract class WsrmFaultMsg
extends Object


Field Summary
protected  WsrmConstants.FaultCode code
          WSRM Specification: fault code, minus any SOAP prefix
protected  String reason
          WSRM Specification: The english language reason element
protected  String subCode
          WSRM Specification: fault subcode, minus any WSRM prefix
protected  SequenceFaultMsgType type
          Note, subclasses will handle detail
 
Constructor Summary
protected WsrmFaultMsg(WsrmConstants.RMVersion rmVersion, WsrmConstants.FaultCode code, String subCode, String reason, SequenceFaultMsgType type)
           
 
Method Summary
 WsrmConstants.FaultCode getCode()
           
 String getCodeLocalName(WsrmConstants.SOAPVersion soapVersion)
           
 QName getCodeQName(WsrmConstants.SOAPVersion soapVersion)
           
 String getCodeQualifiedName(WsrmConstants.SOAPVersion soapVersion)
           
 String getReason()
           
 WsrmConstants.RMVersion getRmVersion()
           
 String getSubCodeLocalName()
           
 QName getSubCodeQName()
           
static QName getSubCodeQName(Class clazz, WsrmConstants.RMVersion rmVersion)
          Get the QName representing the fault with the given class, conforming to the given WS-RM version.
static List<QName> getSubCodeQNames(Class clazz)
          Get a list of QName objects representing the fault with the given class and all possible versions of WS-RM
 String getSubCodeQualifiedName()
           
 SequenceFaultMsgType getType()
           
abstract  void read(SOAPMessage msg)
           
abstract  void readDetail(Element element)
           
 void setReason(String reason)
           
 String toString()
           
abstract  void write(SOAPMessage msg)
           
abstract  void writeDetail(Element element)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

code

protected WsrmConstants.FaultCode code
WSRM Specification: fault code, minus any SOAP prefix


subCode

protected String subCode
WSRM Specification: fault subcode, minus any WSRM prefix


reason

protected String reason
WSRM Specification: The english language reason element


type

protected SequenceFaultMsgType type
Note, subclasses will handle detail

Constructor Detail

WsrmFaultMsg

protected WsrmFaultMsg(WsrmConstants.RMVersion rmVersion,
                       WsrmConstants.FaultCode code,
                       String subCode,
                       String reason,
                       SequenceFaultMsgType type)
Method Detail

getRmVersion

public WsrmConstants.RMVersion getRmVersion()

getCode

public WsrmConstants.FaultCode getCode()

getCodeQualifiedName

public String getCodeQualifiedName(WsrmConstants.SOAPVersion soapVersion)

getCodeQName

public QName getCodeQName(WsrmConstants.SOAPVersion soapVersion)

getCodeLocalName

public String getCodeLocalName(WsrmConstants.SOAPVersion soapVersion)

getSubCodeQualifiedName

public String getSubCodeQualifiedName()

getSubCodeQName

public QName getSubCodeQName()

getSubCodeLocalName

public String getSubCodeLocalName()

getReason

public String getReason()

setReason

public void setReason(String reason)

getType

public SequenceFaultMsgType getType()

getSubCodeQName

public static QName getSubCodeQName(Class clazz,
                                    WsrmConstants.RMVersion rmVersion)
Get the QName representing the fault with the given class, conforming to the given WS-RM version.

Parameters:
clazz - WsrmFaultMsg or subclass
rmVersion - Version of WS-RM to which the header will conform.
Returns:
The QName of the desired header
Throws:
RuntimeException - if the given class is not a WsrmFaultMsg subclass

getSubCodeQNames

public static List<QName> getSubCodeQNames(Class clazz)
Get a list of QName objects representing the fault with the given class and all possible versions of WS-RM

Parameters:
clazz - WsrmFaultMsg or subclass
Returns:
The QName of the desired header
Throws:
RuntimeException - if the given class is not a WsrmFaultMsg subclass

read

public abstract void read(SOAPMessage msg)
                   throws SequenceFaultException
Throws:
SequenceFaultException

write

public abstract void write(SOAPMessage msg)
                    throws SequenceFaultException
Throws:
SequenceFaultException

readDetail

public abstract void readDetail(Element element)
                         throws SequenceFaultException
Throws:
SequenceFaultException

writeDetail

public abstract void writeDetail(Element element)
                          throws SequenceFaultException
Throws:
SequenceFaultException

toString

public String toString()
Overrides:
toString in class Object

Copyright 1996, 2013, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.1.2)

Part Number E27170-01