public class C4
extends java.lang.Object
| Constructor and Description |
|---|
C4()
Construct an instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
doC4(java.lang.String dataFilename,
java.lang.String requestContentType)
Make a request to the C4 web service by POSTing an aseXML file from the inbox.
|
java.lang.String |
doC4(java.lang.String transactionId,
java.lang.String NMI,
java.lang.String fromDate,
java.lang.String toDate,
java.lang.String asatDate,
java.lang.String participantId,
java.lang.String roleId,
java.lang.String inittransId)
Make a GET request to the C4 web service.
|
java.lang.String |
getResponse()
This method provides the web service response as a string.
|
java.lang.String |
getResponseCharset()
Reports the character set from the Content-Type header.
|
int |
getResponseCode()
Report the HTTP response code.
|
java.lang.String |
getResponseFilename()
Reports the filename from the Content-Disposition header.
|
java.lang.String |
getResponseReason()
Report the HTTP response reason.
|
java.lang.String |
getResponseType()
Reports the mime-type from the Content-Type header.
|
void |
writeResponse()
Write the web service response to a file.
|
public C4() throws ApplicationException
ApplicationException - if the instance cannot be initialised.public void doC4(java.lang.String dataFilename,
java.lang.String requestContentType)
throws ApplicationException
dataFilename - is the file to post from the inbox.requestContentType - defines the file type as XML or ZIP.ApplicationException - when something goes wrong.public java.lang.String doC4(java.lang.String transactionId,
java.lang.String NMI,
java.lang.String fromDate,
java.lang.String toDate,
java.lang.String asatDate,
java.lang.String participantId,
java.lang.String roleId,
java.lang.String inittransId)
throws ApplicationException
transactionId - identifies requestor's transaction.NMI - identifies which NMI to fetch C4 NMI Master standing data forfromDate - is the start date of the period you are interested intoDate - is the end date of the period you are interested inasatDate - is the date at which the records must have been activeparticipantId - is the participant you want shown as the filtering participantroleId - is the role you want shown as the filtering roleinittransId - is the transaction Id that you want to track this request byApplicationException - when something goes wrong.public int getResponseCode()
public java.lang.String getResponseReason()
public java.lang.String getResponseType()
public java.lang.String getResponseCharset()
public java.lang.String getResponseFilename()
public void writeResponse()
throws ApplicationException
ApplicationException - if an error occurs while writing the file.public java.lang.String getResponse()
throws ApplicationException
ApplicationException - if the response type was zip and the response could not be unzipped.