public class

ValidateAddressMessageProcessor

extends Object
implements FlowConstructAware MuleContextAware Disposable Initialisable Startable Stoppable MessageProcessor
java.lang.Object
   ↳ org.mule.modules.avalara.processors.ValidateAddressMessageProcessor

Class Overview

ValidateAddressMessageProcessor invokes the validateAddress(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.Integer, java.lang.String, java.lang.String, org.mule.modules.avalara.TextCaseType, boolean, boolean, javax.xml.datatype.XMLGregorianCalendar) method in AvalaraModule. For each argument there is a field in this processor to match it. Before invoking the actual method the processor will evaluate and transform where possible to the expected argument type.

Summary

[Expand]
Inherited Constants
From interface org.mule.api.lifecycle.Disposable
From interface org.mule.api.lifecycle.Initialisable
From interface org.mule.api.lifecycle.Startable
From interface org.mule.api.lifecycle.Stoppable
Fields
private String _accountType
private String _addressCodeType
private String _avalaraClientType
private String _cityType
private boolean _coordinatesType
private String _countryType
private XMLGregorianCalendar _dateType
private String _latitudeType
private String _licenseType
private String _line1Type
private String _line2Type
private String _line3Type
private String _longitudeType
private String _postalCodeType
private String _regionType
private Integer _taxRegionIdType
private boolean _taxabilityType
private TextCaseType _textCaseType
private Object account
private Object addressCode
private Object avalaraClient
private Object city
private Object coordinates
private Object country
private Object date
private ExpressionManager expressionManager Mule Expression Manager
private FlowConstruct flowConstruct Flow construct
private Object latitude
private Object license
private Object line1
private Object line2
private Object line3
private static Logger logger
private Object longitude
private Object moduleObject Module object
private MuleContext muleContext Mule Context
private TemplateParser.PatternInfo patternInfo Mule Pattern Info
private Object postalCode
private Object region
private AtomicInteger retryCount Variable used to track how many retries we have attempted on this message processor
private int retryMax Maximum number of retries that can be attempted.
private Object taxRegionId
private Object taxability
private Object textCase
Public Constructors
ValidateAddressMessageProcessor()
Public Methods
void dispose()
void initialise()
Obtains the expression manager from the Mule context and initialises the connector.
MuleEvent process(MuleEvent event)
Invokes the MessageProcessor.
void setAccount(Object value)
Sets account
void setAddressCode(Object value)
Sets addressCode
void setAvalaraClient(Object value)
Sets avalaraClient
void setCity(Object value)
Sets city
void setCoordinates(Object value)
Sets coordinates
void setCountry(Object value)
Sets country
void setDate(Object value)
Sets date
void setFlowConstruct(FlowConstruct flowConstruct)
Sets flow construct
void setLatitude(Object value)
Sets latitude
void setLicense(Object value)
Sets license
void setLine1(Object value)
Sets line1
void setLine2(Object value)
Sets line2
void setLine3(Object value)
Sets line3
void setLongitude(Object value)
Sets longitude
void setModuleObject(Object moduleObject)
Sets the instance of the object under which the processor will execute
void setMuleContext(MuleContext context)
Set the Mule context
void setPostalCode(Object value)
Sets postalCode
void setRegion(Object value)
Sets region
void setRetryMax(int value)
Sets retryMax
void setTaxRegionId(Object value)
Sets taxRegionId
void setTaxability(Object value)
Sets taxability
void setTextCase(Object value)
Sets textCase
void start()
void stop()
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.mule.api.construct.FlowConstructAware
From interface org.mule.api.context.MuleContextAware
From interface org.mule.api.lifecycle.Disposable
From interface org.mule.api.lifecycle.Initialisable
From interface org.mule.api.lifecycle.Startable
From interface org.mule.api.lifecycle.Stoppable
From interface org.mule.api.processor.MessageProcessor

Fields

private String _accountType

private String _addressCodeType

private String _avalaraClientType

private String _cityType

private boolean _coordinatesType

private String _countryType

private XMLGregorianCalendar _dateType

private String _latitudeType

private String _licenseType

private String _line1Type

private String _line2Type

private String _line3Type

private String _longitudeType

private String _postalCodeType

private String _regionType

private Integer _taxRegionIdType

private boolean _taxabilityType

private TextCaseType _textCaseType

private Object account

private Object addressCode

private Object avalaraClient

private Object city

private Object coordinates

private Object country

private Object date

private ExpressionManager expressionManager

Mule Expression Manager

private FlowConstruct flowConstruct

Flow construct

private Object latitude

private Object license

private Object line1

private Object line2

private Object line3

private static Logger logger

private Object longitude

private Object moduleObject

Module object

private MuleContext muleContext

Mule Context

private TemplateParser.PatternInfo patternInfo

Mule Pattern Info

private Object postalCode

private Object region

private AtomicInteger retryCount

Variable used to track how many retries we have attempted on this message processor

private int retryMax

Maximum number of retries that can be attempted.

private Object taxRegionId

private Object taxability

private Object textCase

Public Constructors

public ValidateAddressMessageProcessor ()

Public Methods

public void dispose ()

public void initialise ()

Obtains the expression manager from the Mule context and initialises the connector. If a target object has not been set already it will search the Mule registry for a default one.

Throws
InitialisationException

public MuleEvent process (MuleEvent event)

Invokes the MessageProcessor.

Parameters
event MuleEvent to be processed
Throws
MuleException

public void setAccount (Object value)

Sets account

Parameters
value Value to set

public void setAddressCode (Object value)

Sets addressCode

Parameters
value Value to set

public void setAvalaraClient (Object value)

Sets avalaraClient

Parameters
value Value to set

public void setCity (Object value)

Sets city

Parameters
value Value to set

public void setCoordinates (Object value)

Sets coordinates

Parameters
value Value to set

public void setCountry (Object value)

Sets country

Parameters
value Value to set

public void setDate (Object value)

Sets date

Parameters
value Value to set

public void setFlowConstruct (FlowConstruct flowConstruct)

Sets flow construct

Parameters
flowConstruct Flow construct to set

public void setLatitude (Object value)

Sets latitude

Parameters
value Value to set

public void setLicense (Object value)

Sets license

Parameters
value Value to set

public void setLine1 (Object value)

Sets line1

Parameters
value Value to set

public void setLine2 (Object value)

Sets line2

Parameters
value Value to set

public void setLine3 (Object value)

Sets line3

Parameters
value Value to set

public void setLongitude (Object value)

Sets longitude

Parameters
value Value to set

public void setModuleObject (Object moduleObject)

Sets the instance of the object under which the processor will execute

Parameters
moduleObject Instace of the module

public void setMuleContext (MuleContext context)

Set the Mule context

Parameters
context Mule context to set

public void setPostalCode (Object value)

Sets postalCode

Parameters
value Value to set

public void setRegion (Object value)

Sets region

Parameters
value Value to set

public void setRetryMax (int value)

Sets retryMax

Parameters
value Value to set

public void setTaxRegionId (Object value)

Sets taxRegionId

Parameters
value Value to set

public void setTaxability (Object value)

Sets taxability

Parameters
value Value to set

public void setTextCase (Object value)

Sets textCase

Parameters
value Value to set

public void start ()

Throws
MuleException

public void stop ()

Throws
MuleException