Class AsteriskEndpoint
- java.lang.Object
-
- org.apache.camel.support.service.BaseService
-
- org.apache.camel.support.service.ServiceSupport
-
- org.apache.camel.support.DefaultEndpoint
-
- org.apache.camel.component.asterisk.AsteriskEndpoint
-
- All Implemented Interfaces:
AutoCloseable
,org.apache.camel.CamelContextAware
,org.apache.camel.Endpoint
,org.apache.camel.IsSingleton
,org.apache.camel.Service
,org.apache.camel.ShutdownableService
,org.apache.camel.spi.HasId
,org.apache.camel.StatefulService
,org.apache.camel.SuspendableService
@UriEndpoint(firstVersion="2.18.0", scheme="asterisk", title="Asterisk", syntax="asterisk:name", category=VOIP, headersClass=AsteriskConstants.class) public class AsteriskEndpoint extends org.apache.camel.support.DefaultEndpoint
Interact with Asterisk PBX Server.
-
-
Constructor Summary
Constructors Constructor Description AsteriskEndpoint(String uri, AsteriskComponent component)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.camel.Consumer
createConsumer(org.apache.camel.Processor processor)
org.apache.camel.Producer
createProducer()
protected void
doInit()
AsteriskAction
getAction()
String
getHostname()
String
getName()
Logical nameString
getPassword()
String
getUsername()
void
setAction(AsteriskAction action)
What action to perform such as getting queue status, sip peers or extension state.void
setHostname(String hostname)
The hostname of the asterisk servervoid
setName(String name)
void
setPassword(String password)
Login passwordvoid
setUsername(String username)
Login username-
Methods inherited from class org.apache.camel.support.DefaultEndpoint
configureConsumer, configureExchange, configurePollingConsumer, configureProperties, createAsyncProducer, createEndpointUri, createExchange, createExchange, createPollingConsumer, doStart, doStop, equals, getCamelContext, getComponent, getEndpointKey, getEndpointUri, getExceptionHandler, getExchangePattern, getId, getPollingConsumerBlockTimeout, getPollingConsumerQueueSize, hashCode, isAutowiredEnabled, isBridgeErrorHandler, isLazyStartProducer, isLenientProperties, isPollingConsumerBlockWhenFull, isPollingConsumerCopy, isSingleton, setAutowiredEnabled, setBridgeErrorHandler, setCamelContext, setComponent, setEndpointUri, setEndpointUriIfNotSpecified, setExceptionHandler, setExchangePattern, setLazyStartProducer, setPollingConsumerBlockTimeout, setPollingConsumerBlockWhenFull, setPollingConsumerCopy, setPollingConsumerQueueSize, setProperties, toString
-
Methods inherited from class org.apache.camel.support.service.BaseService
build, doBuild, doFail, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Constructor Detail
-
AsteriskEndpoint
public AsteriskEndpoint(String uri, AsteriskComponent component)
-
-
Method Detail
-
doInit
protected void doInit() throws Exception
- Overrides:
doInit
in classorg.apache.camel.support.DefaultEndpoint
- Throws:
Exception
-
createProducer
public org.apache.camel.Producer createProducer()
-
createConsumer
public org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor) throws Exception
- Throws:
Exception
-
getUsername
public String getUsername()
-
setUsername
public void setUsername(String username)
Login username
-
getPassword
public String getPassword()
-
setPassword
public void setPassword(String password)
Login password
-
getAction
public AsteriskAction getAction()
-
setAction
public void setAction(AsteriskAction action)
What action to perform such as getting queue status, sip peers or extension state.
-
getHostname
public String getHostname()
-
setHostname
public void setHostname(String hostname)
The hostname of the asterisk server
-
getName
public String getName()
Logical name
-
setName
public void setName(String name)
-
-