public class VeraZipCaller
extends java.lang.Object
VeraZipCaller provides an higher level interface to TaxWare's zipcode verification software.
ZipRequest,
ZipResultItem,
ZipResult| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASS_VERSION |
protected static boolean |
m_bOpen
whether TaxWare's files are open or not
|
protected static atg.integrations.taxware.VeraZipCaller.InputHeader |
m_inputHeader
Input header re-used for each request
|
protected static java.lang.reflect.Method |
m_methodCalculateTax
method for calculating tax
|
protected static java.lang.Object[] |
m_rgobjArgs
argument array
|
protected static java.lang.StringBuffer |
m_strbufInput
StringBuffer re-used for each request
|
| Constructor and Description |
|---|
VeraZipCaller() |
| Modifier and Type | Method and Description |
|---|---|
static ZipResult |
calculate(ZipRequest request)
Verify a city/state/zipcode triplet when given a ZipRequest object.
|
protected static atg.integrations.taxware.VeraZipCaller.OutputHeader |
calculateInternal(ZipRequest request,
java.lang.StringBuffer strbuf)
Does all the stuff for verifying a zip that needs to be synchronized.
|
protected static atg.integrations.taxware.VeraZipCaller.OutputHeader |
callCalculate(java.lang.String stringRequest,
java.lang.StringBuffer strbuf)
Calls the verify zipcode function.
|
protected static java.lang.StringBuffer |
createBuffer(int cRequests)
Create a string buffer already pre-filled to the
appropriate size.
|
protected static void |
createInputHeader() |
protected static void |
createInputStringBuffer()
Create our static input string buffer
|
static void |
main(java.lang.String[] rgArgs)
Perform some basic tests.
|
static ZipResult |
QuickVerifyZip(java.lang.String strCity,
java.lang.String strState,
java.lang.String strZip,
boolean bDumpResults)
A wrapper used for testing.
|
public static java.lang.String CLASS_VERSION
protected static java.lang.StringBuffer m_strbufInput
protected static atg.integrations.taxware.VeraZipCaller.InputHeader m_inputHeader
protected static boolean m_bOpen
protected static java.lang.reflect.Method m_methodCalculateTax
protected static java.lang.Object[] m_rgobjArgs
protected static void createInputStringBuffer()
protected static void createInputHeader()
protected static java.lang.StringBuffer createBuffer(int cRequests)
protected static atg.integrations.taxware.VeraZipCaller.OutputHeader callCalculate(java.lang.String stringRequest,
java.lang.StringBuffer strbuf)
throws TaxwareMinorException,
TaxwareCriticalException
TaxwareCriticalException - Thrown if installation problem.TaxwareMinorException - Thrown if error returned from VeraZip.protected static atg.integrations.taxware.VeraZipCaller.OutputHeader calculateInternal(ZipRequest request, java.lang.StringBuffer strbuf) throws TaxwareMinorException, TaxwareCriticalException
TaxwareCriticalException - Thrown if installation problem.TaxwareMinorException - Thrown if error returned from VeraZip.public static ZipResult calculate(ZipRequest request) throws TaxwareMinorException, TaxwareCriticalException
request - a ZipRequest objectTaxwareCriticalException - Thrown if installation problem.TaxwareMinorException - Thrown if error returned from VeraZip.public static final ZipResult QuickVerifyZip(java.lang.String strCity, java.lang.String strState, java.lang.String strZip, boolean bDumpResults)
public static void main(java.lang.String[] rgArgs)