public class

AvalaraProfileHeader

extends Object
implements SOAPHandler<T extends SOAPMessageContext>
java.lang.Object
   ↳ org.mule.modules.avalara.util.AvalaraProfileHeader

Summary

Constants
String AVALARA_PREFIX
String NAMESPACE
String PROFILE_ELEMENT
Fields
private String client
Public Constructors
AvalaraProfileHeader(String client)
Creates a SOAPSimpleCredentials handler and initialises the member variables.
Public Methods
void close(MessageContext messageContext)
Set<QName> getHeaders()
Returns null as this handler doesn't process any Headers, it just adds one.
boolean handleFault(SOAPMessageContext smc)
Returns true, no action is taken for faults messages.
boolean handleMessage(SOAPMessageContext smc)
Adds WS-Security header to request messages.
static void sign(BindingProvider bindingProvider, String client)
This method created an instance of the AvalaraProfileHeader class and adds it as a handler to the bindingProvider supplied.
[Expand]
Inherited Methods
From class java.lang.Object
From interface javax.xml.ws.handler.Handler
From interface javax.xml.ws.handler.soap.SOAPHandler

Constants

public static final String AVALARA_PREFIX

Constant Value: "aval"

public static final String NAMESPACE

Constant Value: "http://avatax.avalara.com/services"

public static final String PROFILE_ELEMENT

Constant Value: "Profile"

Fields

private String client

Public Constructors

public AvalaraProfileHeader (String client)

Creates a SOAPSimpleCredentials handler and initialises the member variables. In most cases, the sign static method should be used instead.

Parameters
client The client for the system user.

Public Methods

public void close (MessageContext messageContext)

Parameters
messageContext

public Set<QName> getHeaders ()

Returns null as this handler doesn't process any Headers, it just adds one.

public boolean handleFault (SOAPMessageContext smc)

Returns true, no action is taken for faults messages.

Parameters
smc

public boolean handleMessage (SOAPMessageContext smc)

Adds WS-Security header to request messages.

Parameters
smc

public static void sign (BindingProvider bindingProvider, String client)

This method created an instance of the AvalaraProfileHeader class and adds it as a handler to the bindingProvider supplied.

Parameters
bindingProvider The client stub to which the handler will be added. The most convenient way to obtain the required bindingProvvider is to call one of the getPort methods on the Service class for the Web service and then cast the returned object to a BindingProvider.
client The client for the system user.