@ComponentProfile(summary="Send a fax using the Interfax service",
tag="producer,fax",
recommended=com.adaptris.core.NullConnection.class)
public class InterfaxProducer
extends ProduceOnlyProducerImp
implements LicensedComponent
Implementation of AdaptrisMessageProducer which sends faxes using Interfax.
In the adapter configuration file this class is aliased as interfax-producer which is the preferred alternative to the fully qualified classname when building your configuration.
License Required: STANDARD
logCONFIRMATION_ID_KEY| Constructor and Description |
|---|
InterfaxProducer()
Creates a new instance.
|
InterfaxProducer(ProduceDestination d) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
java.lang.String |
getPassword()
Returns the password to use.
|
ResponseHandler |
getResponseHandler()
Returns the ResponseHandler to use.
|
java.lang.String |
getServiceName()
Return the service name.
|
java.lang.String |
getServiceUrl()
Returns the URL of the service.
|
java.lang.String |
getTransmissionType()
Returns the transmission type, e.g.
|
java.lang.String |
getUserName()
Returns the user name for the fax service.
|
void |
init() |
boolean |
isEnabled(License license) |
void |
prepare() |
void |
produce(AdaptrisMessage msg,
ProduceDestination destination) |
void |
setPassword(java.lang.String s)
Sets the password to use.
|
void |
setResponseHandler(ResponseHandler handler)
Sets the ResponseHandler to use.
|
void |
setServiceName(java.lang.String s)
Sets the service name, e.g.
|
void |
setServiceUrl(java.lang.String s)
Sets the URL of the service.
|
void |
setTransmissionType(java.lang.String s)
Sets the transmission type, e.g.
|
void |
setUserName(java.lang.String s)
Sets the user name for the fax service.
|
void |
start() |
void |
stop() |
java.lang.String |
toString() |
produce, request, request, request, requestgetDestination, setDestinationcreateName, createQualifier, decode, encode, getEncoder, getIsTrackingEndpoint, getMessageFactory, getUniqueId, handleConnectionException, isTrackingEndpoint, registerConnection, registerEncoderMessageFactory, retrieveConnection, setEncoder, setIsTrackingEndpoint, setMessageFactory, setUniqueId, withMessageFactoryclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdecode, encode, getEncoder, getMessageFactory, handleConnectionException, registerConnection, retrieveConnection, setEncoder, setMessageFactorygetUniqueIdcreateName, createQualifier, isTrackingEndpointpublic InterfaxProducer()
Creates a new instance. Defaults are URL http://ws.interfax.net/DFS.asmx,
service name SendCharFax, type TXT and NullResponseHandler.
public InterfaxProducer(ProduceDestination d)
public void prepare()
throws CoreException
prepare in interface ComponentLifecycleExtensionCoreExceptionpublic boolean isEnabled(License license)
isEnabled in interface LicensedComponentpublic void init()
throws CoreException
init in interface ComponentLifecycleCoreExceptionComponentLifecycle.init()public void start()
throws CoreException
start in interface ComponentLifecycleCoreExceptionComponentLifecycle.start()public void stop()
stop in interface ComponentLifecycleComponentLifecycle.stop()public void close()
close in interface ComponentLifecycleComponentLifecycle.close()public void produce(AdaptrisMessage msg, ProduceDestination destination) throws ProduceException
produce in interface AdaptrisMessageSenderProduceExceptionAdaptrisMessageSender.produce(AdaptrisMessage,
ProduceDestination)public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public void setPassword(java.lang.String s)
Sets the password to use. May not be null.
In additional to plain text passwords, the passwords can also be encoded
using the appropriate Password
s - the password to usepublic java.lang.String getPassword()
Returns the password to use.
public void setTransmissionType(java.lang.String s)
Sets the transmission type, e.g. TXT, HTML. May not be null.
s - the transmission typepublic java.lang.String getTransmissionType()
Returns the transmission type, e.g. TXT, HTML.
public void setUserName(java.lang.String s)
Sets the user name for the fax service. May not be null.
s - the user name for the fax servicepublic java.lang.String getUserName()
Returns the user name for the fax service.
public void setServiceName(java.lang.String s)
Sets the service name, e.g. SendCharFax. May not be null.
s - the service namepublic java.lang.String getServiceName()
Return the service name.
public void setServiceUrl(java.lang.String s)
Sets the URL of the service.
s - the URL of the servicepublic java.lang.String getServiceUrl()
Returns the URL of the service.
public void setResponseHandler(ResponseHandler handler)
Sets the ResponseHandler to use.
handler - the ResponseHandler to usepublic ResponseHandler getResponseHandler()
Returns the ResponseHandler to use.