public class NMIDetail
extends java.lang.Object
| Constructor and Description |
|---|
NMIDetail()
Construct an instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
doNmiDetail(java.lang.String dataFilename,
java.lang.String requestContentType)
Make a request to the NMI Detail web service by POSTing an aseXML file from the inbox.
|
java.lang.String |
doNmiDetail(java.lang.String transactionId,
java.lang.String nmi,
java.lang.String checksum,
java.lang.String type,
java.lang.String reason)
Make a GET request to the NMI Detail web service to fetch details for a specific NMI.
|
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 NMIDetail()
throws ApplicationException
ApplicationException - if the instance cannot be initialised.public void doNmiDetail(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 doNmiDetail(java.lang.String transactionId,
java.lang.String nmi,
java.lang.String checksum,
java.lang.String type,
java.lang.String reason)
throws ApplicationException
transactionId - identifies requestor's transaction.nmi - identifies which NMI to fetch details for.checksum - verifies the NMI value.type - reason - ApplicationException - 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.