public class SoapFault
extends java.lang.Object
This class provides the Java interface to CICS SOAPFAULT API.
Modifier and Type | Field and Description |
---|---|
static int |
CLIENT
Use for the faultcode when the fault is caused by the Client
|
static int |
RECEIVER
Use for the faultcode when the fault is caused by the Receiver
|
static int |
SENDER
Use for the faultcode when the fault is caused by the Sender
|
static int |
SERVER
Use for the faultcode when the fault is caused by the Server
|
Constructor and Description |
---|
SoapFault() |
Modifier and Type | Method and Description |
---|---|
static void |
addFaultstring(java.lang.String faultstring,
java.lang.String natlang)
Add a new faultstring to the fault that has been created.
|
static void |
addSubcode(java.lang.String subcode)
Add a new subcode to the fault that has been created.
|
static void |
create(int faultcode,
java.lang.String faultstring)
Create a new SOAPFault.
|
static void |
create(int faultcode,
java.lang.String faultstring,
java.lang.String detail)
Create a new SOAPFault.
|
static void |
create(int faultcode,
java.lang.String faultstring,
java.lang.String natlang,
java.lang.String detail)
Create a new SOAPFault.
|
static void |
create(int faultcode,
java.lang.String faultstring,
java.lang.String natlang,
java.lang.String faultactor,
java.lang.String role,
java.lang.String detail)
Create a new SOAPFault.
|
static void |
create(java.lang.String faultcodeString,
java.lang.String faultstring,
java.lang.String natlang,
java.lang.String faultactor,
java.lang.String role,
java.lang.String detail)
Create a new SOAPFault.
|
static void |
delete()
Delete deletes a SOAPFault
|
public static final int SENDER
public static final int RECEIVER
public static final int CLIENT
public static final int SERVER
public static void create(int faultcode, java.lang.String faultstring, java.lang.String natlang, java.lang.String faultactor, java.lang.String role, java.lang.String detail) throws InvalidRequestException, CCSIDErrorException, LengthErrorException
faultcode
- Use one of SENDER, RECEIVER, CLIENT or SERVER to specify the SOAP fault code.faultstring
- String describing the faultnatlang
- the national language of the faultstring, xml:lang value.faultactor
- The soap actor that created the faultrole
- The role a SOAP node was acting in when a fault occurs. This only appears in a SOAP 1.2 faultdetail
- The application specific error data in name-space qualified tags.InvalidRequestException
- An INVREQ occurredCCSIDErrorException
- CCSIDERRLengthErrorException
- The length of one of the parameters was too largepublic static void create(int faultcode, java.lang.String faultstring, java.lang.String natlang, java.lang.String detail) throws InvalidRequestException, CCSIDErrorException, LengthErrorException
faultcode
- Use one of SENDER, RECEIVER, CLIENT or SERVER to specify the SOAP fault code.faultstring
- String describing the faultnatlang
- the national language of the faultstring, xml:lang value.detail
- The application specific error data in name-space qualified tags.InvalidRequestException
- An INVREQ occurredCCSIDErrorException
- CCSIDERRLengthErrorException
- The length of one of the parameters was too largepublic static void create(int faultcode, java.lang.String faultstring, java.lang.String detail) throws InvalidRequestException, CCSIDErrorException, LengthErrorException
faultcode
- Use one of SENDER, RECEIVER, CLIENT or SERVER to specify the SOAP fault code.faultstring
- String describing the faultdetail
- The application specific error data in name-space qualified tags.InvalidRequestException
- An INVREQ occurredCCSIDErrorException
- CCSIDERRLengthErrorException
- The length of one of the parameters was too largepublic static void create(int faultcode, java.lang.String faultstring) throws InvalidRequestException, CCSIDErrorException, LengthErrorException
faultcode
- Use one of SENDER, RECEIVER, CLIENT or SERVER to specify the SOAP fault code.faultstring
- String describing the faultInvalidRequestException
- An INVREQ occurredCCSIDErrorException
- CCSIDERRLengthErrorException
- The length of one of the parameters was too largepublic static void create(java.lang.String faultcodeString, java.lang.String faultstring, java.lang.String natlang, java.lang.String faultactor, java.lang.String role, java.lang.String detail) throws InvalidRequestException, CCSIDErrorException, LengthErrorException
faultcodeString
- String for faultcode to usefaultstring
- String describing the faultnatlang
- the national language of the faultstring, xml:lang value.faultactor
- The soap actor that created the faultrole
- The role a SOAP node was acting in when a fault occurs. This only appears in a SOAP 1.2 faultdetail
- The application specific error data in name-space qualified tags.InvalidRequestException
- An INVREQ occurredCCSIDErrorException
- CCSIDERRLengthErrorException
- The length of one of the parameters was too largepublic static void addFaultstring(java.lang.String faultstring, java.lang.String natlang) throws RecordNotFoundException, InvalidRequestException, CCSIDErrorException, LengthErrorException
faultstring
- The new faultstring to add to a faultnatlang
- The national language of the faultstringRecordNotFoundException
- A NOTFOUND occurredInvalidRequestException
- An INVREQ occurredCCSIDErrorException
- CCSIDERRLengthErrorException
- The length of one of the parameters was too largepublic static void addSubcode(java.lang.String subcode) throws RecordNotFoundException, InvalidRequestException, CCSIDErrorException, LengthErrorException
subcode
- The new subcode string to add to a faultRecordNotFoundException
- A NOTFOUND occurredInvalidRequestException
- An INVREQ occurredCCSIDErrorException
- CCSIDERRLengthErrorException
- The length of one of the parameters was too largepublic static void delete() throws RecordNotFoundException
RecordNotFoundException
- A NOTFOUND occurred