| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.asterisk.fastagi.impl.AGIRequestImpl
public class AGIRequestImpl
Default implementation of the AGIRequest interface.
| Constructor Summary | |
|---|---|
AGIRequestImpl(java.util.Collection environment)
Creates a new AGIRequestImpl.  | 
|
| Method Summary | |
|---|---|
 java.lang.String | 
getAccountCode()
Returns the account code set for the call.  | 
 java.lang.String | 
getCallerId()
Returns the Caller*ID, for example "1234".  | 
 java.lang.String | 
getCallerIdName()
Returns the the Caller*ID Name, for example "John Doe".  | 
 java.lang.Integer | 
getCallingAni2()
Returns the Callerid ANI 2 (Info digits). Available since Asterisk 1.2.  | 
 java.lang.Integer | 
getCallingPres()
Returns the Callerid presentation/screening. Available since Asterisk 1.2.  | 
 java.lang.Integer | 
getCallingTns()
Returns the Callerid Transit Network Select. Available since Asterisk 1.2.  | 
 java.lang.Integer | 
getCallingTon()
Returns the Callerid Type of Number. Available since Asterisk 1.2.  | 
 java.lang.String | 
getChannel()
Returns the name of the channel.  | 
 java.lang.String | 
getContext()
Returns the context in the dial plan from which the AGI script was called.  | 
 java.lang.String | 
getDnid()
Returns the number, that has been dialed by the user.  | 
 java.lang.Boolean | 
getEnhanced()
Returns wheather this agi is passed audio (EAGI - Enhanced AGI). Enhanced AGI is currently not supported on FastAGI.  | 
 java.lang.String | 
getExtension()
Returns the extension in the dial plan from which the AGI script was called.  | 
 java.lang.String | 
getLanguage()
Returns the language, for example "en".  | 
 java.net.InetAddress | 
getLocalAddress()
Returns the local address this channel, that is the IP address of the AGI server.  | 
 int | 
getLocalPort()
Returns the local port of this channel, that is the port the AGI server is listening on.  | 
 java.lang.String | 
getParameter(java.lang.String name)
Returns the value of a request parameter as a String, or null if the parameter does not exist. | 
 java.util.Map | 
getParameterMap()
Returns a java.util.Map of the parameters of this request.  | 
 java.lang.String[] | 
getParameterValues(java.lang.String name)
Returns an array of String objects containing all of the values the given request parameter has, or null if the parameter does not exist. | 
 java.lang.Integer | 
getPriority()
Returns the priority in the dial plan from which the AGI script was called.  | 
 java.lang.String | 
getRdnis()
If this call has been forwared, the number of the person doing the redirect is returned (Redirected dialed number identification service). This is usally only only available on PRI.  | 
 java.net.InetAddress | 
getRemoteAddress()
Returns the remote address of this channel, that is the IP address of the Asterisk server.  | 
 int | 
getRemotePort()
Returns the remote port of this channel, that is the client port the Asterisk server is using for the AGI connection.  | 
 java.util.Map | 
getRequest()
Returns a Map containing the raw request name/value pairs.  | 
 java.lang.String | 
getRequestURL()
Returns the full URL of the request in the form agi://host[:port][/script].  | 
 java.lang.String | 
getScript()
Returns the name of the script to execute.  | 
 java.lang.String | 
getType()
Returns the type of the channel, for example "SIP".  | 
 java.lang.String | 
getUniqueId()
Returns the unqiue id of the channel.  | 
 void | 
setLocalAddress(java.net.InetAddress localAddress)
 | 
 void | 
setLocalPort(int localPort)
 | 
 void | 
setRemoteAddress(java.net.InetAddress remoteAddress)
 | 
 void | 
setRemotePort(int remotePort)
 | 
 java.lang.String | 
toString()
 | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
|---|
public AGIRequestImpl(java.util.Collection environment)
environment - the first lines as received from Asterisk containing
            the environment.| Method Detail | 
|---|
public java.util.Map getRequest()
AGIRequest
getRequest in interface AGIRequestpublic java.lang.String getScript()
getScript in interface AGIRequestpublic java.lang.String getRequestURL()
getRequestURL in interface AGIRequestpublic java.lang.String getChannel()
getChannel in interface AGIRequestpublic java.lang.String getUniqueId()
getUniqueId in interface AGIRequestpublic java.lang.String getType()
AGIRequest
getType in interface AGIRequestpublic java.lang.String getLanguage()
AGIRequest
getLanguage in interface AGIRequestpublic java.lang.String getCallerId()
AGIRequest
getCallerId in interface AGIRequestnull is returned.public java.lang.String getCallerIdName()
AGIRequest
getCallerIdName in interface AGIRequestnull is returned.public java.lang.String getDnid()
AGIRequest
getDnid in interface AGIRequestnull is returned.public java.lang.String getRdnis()
AGIRequest
getRdnis in interface AGIRequestnull is returned.public java.lang.String getContext()
AGIRequest
getContext in interface AGIRequestpublic java.lang.String getExtension()
AGIRequest
getExtension in interface AGIRequestpublic java.lang.Integer getPriority()
AGIRequest
getPriority in interface AGIRequestpublic java.lang.Boolean getEnhanced()
AGIRequest
getEnhanced in interface AGIRequestpublic java.lang.String getAccountCode()
AGIRequest
getAccountCode in interface AGIRequestpublic java.lang.Integer getCallingAni2()
AGIRequest
getCallingAni2 in interface AGIRequestpublic java.lang.Integer getCallingPres()
AGIRequest
getCallingPres in interface AGIRequestpublic java.lang.Integer getCallingTns()
AGIRequest
getCallingTns in interface AGIRequestpublic java.lang.Integer getCallingTon()
AGIRequest
getCallingTon in interface AGIRequestpublic java.lang.String getParameter(java.lang.String name)
AGIRequestnull if the parameter does not exist. You should only use
 this method when you are sure the parameter has only one value.AGIRequest.getParameterValues(String).getParameterValues.
getParameter in interface AGIRequestname - a String containing the name of the parameter whose value is
            requested.
AGIRequest.getParameterValues(String)public java.lang.String[] getParameterValues(java.lang.String name)
AGIRequestnull if the parameter does not exist.
 If the parameter has a single value, the array has a length of 1.
- Specified by:
 getParameterValues in interface AGIRequest
 
- Parameters:
 name - a String containing the name of the parameter whose value is requested.
- Returns:
 - an array of String objects containing the parameter's values.
 
 
public java.util.Map getParameterMap()
AGIRequest
getParameterMap in interface AGIRequestpublic java.net.InetAddress getLocalAddress()
AGIRequest
getLocalAddress in interface AGIRequestpublic void setLocalAddress(java.net.InetAddress localAddress)
public int getLocalPort()
AGIRequest
getLocalPort in interface AGIRequestpublic void setLocalPort(int localPort)
public java.net.InetAddress getRemoteAddress()
AGIRequest
getRemoteAddress in interface AGIRequestpublic void setRemoteAddress(java.net.InetAddress remoteAddress)
public int getRemotePort()
AGIRequest
getRemotePort in interface AGIRequestpublic void setRemotePort(int remotePort)
public java.lang.String toString()
toString in class java.lang.Object
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||