[Asterisk-java-cvs] CVS: asterisk-java/src/java/net/sf/asterisk/fastagi AGIRequestBuilderImpl.java,1
Brought to you by:
srt
Update of /cvsroot/asterisk-java/asterisk-java/src/java/net/sf/asterisk/fastagi In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22302/src/java/net/sf/asterisk/fastagi Modified Files: AGIRequestBuilderImpl.java AGIRequestBuilder.java AGIScript.java AGIServer.java AGIResponse.java AGIRequestImpl.java Log Message: Index: AGIRequestBuilderImpl.java =================================================================== RCS file: /cvsroot/asterisk-java/asterisk-java/src/java/net/sf/asterisk/fastagi/AGIRequestBuilderImpl.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -p -r1.1 -r1.2 --- AGIRequestBuilderImpl.java 5 Mar 2005 22:46:59 -0000 1.1 +++ AGIRequestBuilderImpl.java 8 Mar 2005 16:48:34 -0000 1.2 @@ -60,7 +60,7 @@ public class AGIRequestBuilderImpl imple if (map.get("callerid") != null) { String rawCallerId = (String) map.get("callerid"); - + request.setCallerId(getCallerId(rawCallerId)); request.setCallerIdName(getCallerIdName(rawCallerId)); } @@ -89,12 +89,13 @@ public class AGIRequestBuilderImpl imple } /** - * Builds a map containing variable names as key (with the "agi_" prefix stripped) and the - * corresponding values.<br> + * Builds a map containing variable names as key (with the "agi_" prefix + * stripped) and the corresponding values.<br> * Syntactically invalid and empty variables are skipped. * * @param lines the environment to transform. - * @return a map with the variables set corresponding to the given environment. + * @return a map with the variables set corresponding to the given + * environment. */ private Map buildMap(final Collection lines) { Index: AGIRequestBuilder.java =================================================================== RCS file: /cvsroot/asterisk-java/asterisk-java/src/java/net/sf/asterisk/fastagi/AGIRequestBuilder.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -p -r1.1 -r1.2 --- AGIRequestBuilder.java 5 Mar 2005 22:46:59 -0000 1.1 +++ AGIRequestBuilder.java 8 Mar 2005 16:48:34 -0000 1.2 @@ -19,7 +19,8 @@ package net.sf.asterisk.fastagi; import java.util.Collection; /** - * Parses the environment printed by asterisk's <code>setup_env</code> function to an AGIRequest. + * Parses the environment printed by asterisk's <code>setup_env</code> + * function to an AGIRequest. * * @author srt * @version $Id$ @@ -27,10 +28,11 @@ import java.util.Collection; public interface AGIRequestBuilder { /** - * Parses the environment printed by asterisk's <code>setup_env</code> function to an - * AGIRequest. + * Parses the environment printed by Asterisk's <code>setup_env</code> + * function to an AGIRequest. * - * @param lines the environment printed by asterisk's <code>setup_env</code> function. + * @param lines the environment printed by Asterisk's <code>setup_env</code> + * function. * @return an AGIRequest setup according to the environment passed in. */ AGIRequest buildAGIRequest(Collection lines); Index: AGIScript.java =================================================================== RCS file: /cvsroot/asterisk-java/asterisk-java/src/java/net/sf/asterisk/fastagi/AGIScript.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -p -r1.1 -r1.2 --- AGIScript.java 8 Mar 2005 02:25:34 -0000 1.1 +++ AGIScript.java 8 Mar 2005 16:48:34 -0000 1.2 @@ -17,11 +17,12 @@ package net.sf.asterisk.fastagi; /** - * AGIScripts are used by the AsteriskServer to handle AGIRequests received from the Asterisk - * server.<br> - * To implement functionality using this framework you have to implement this interface.<br> - * Note: The implementation of AGIScript must be threadsafe as only one instance is used by - * AsteriskServer to handle all requests to a resource. + * AGIScripts are used by the AsteriskServer to handle AGIRequests received from + * the Asterisk server.<br> + * To implement functionality using this framework you have to implement this + * interface.<br> + * Note: The implementation of AGIScript must be threadsafe as only one instance + * is used by AsteriskServer to handle all requests to a resource. * * @author srt * @version $Id$ @@ -29,12 +30,13 @@ package net.sf.asterisk.fastagi; public interface AGIScript { /** - * The service method is called by the AsteriskServer whenever this AGIScript should handle an - * incoming AGIRequest. + * The service method is called by the AsteriskServer whenever this + * AGIScript should handle an incoming AGIRequest. * - * @param request the initial data received from Asterisk when requesting this script. - * @param response a handle to communicate with Asterisk such as sending commands in response to - * the request. + * @param request the initial data received from Asterisk when requesting + * this script. + * @param response a handle to communicate with Asterisk such as sending + * commands in response to the request. */ void service(final AGIRequest request, final AGIResponse response); } Index: AGIServer.java =================================================================== RCS file: /cvsroot/asterisk-java/asterisk-java/src/java/net/sf/asterisk/fastagi/AGIServer.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -p -r1.2 -r1.3 --- AGIServer.java 8 Mar 2005 02:32:58 -0000 1.2 +++ AGIServer.java 8 Mar 2005 16:48:34 -0000 1.3 @@ -19,9 +19,10 @@ package net.sf.asterisk.fastagi; import java.io.IOException; /** - * Listens for incoming AGI connections, reads the inital data and builds an AGIRequest using an - * AGIRequestBuilder.<br> - * The AGIRequest is then handed over to the appropriate AGIScript for processing. + * Listens for incoming AGI connections, reads the inital data and builds an + * AGIRequest using an AGIRequestBuilder.<br> + * The AGIRequest is then handed over to the appropriate AGIScript for + * processing. * * @author srt * @version $Id$ @@ -30,8 +31,8 @@ public interface AGIServer { /** * Starts this AGIServer.<br> - * After calling startup() this AGIServer is ready to receive requests from Asterisk servers and - * process them. + * After calling startup() this AGIServer is ready to receive requests from + * Asterisk servers and process them. * * @throws IOException if the server socket cannot be bound. * @throws IllegalStateException if this AGIServer is already running. @@ -43,7 +44,8 @@ public interface AGIServer * The server socket is closed and all resources are freed. * * @throws IOException if the connection cannot be shut down. - * @throws IllegalStateException if this AGIServer is already shut down or has not yet been started. + * @throws IllegalStateException if this AGIServer is already shut down or + * has not yet been started. */ void shutdown() throws IOException, IllegalStateException; } Index: AGIResponse.java =================================================================== RCS file: /cvsroot/asterisk-java/asterisk-java/src/java/net/sf/asterisk/fastagi/AGIResponse.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -p -r1.1 -r1.2 --- AGIResponse.java 8 Mar 2005 02:25:34 -0000 1.1 +++ AGIResponse.java 8 Mar 2005 16:48:34 -0000 1.2 @@ -22,8 +22,10 @@ import net.sf.asterisk.fastagi.command.A import net.sf.asterisk.fastagi.reply.AGIReply; /** - * Provides the functionality to send AGICommands to Asterisk while handling an AGIRequest.<br> - * This interface is supposed to be used by AGIScripts for interaction with the Asterisk server. + * Provides the functionality to send AGICommands to Asterisk while handling an + * AGIRequest.<br> + * This interface is supposed to be used by AGIScripts for interaction with the + * Asterisk server. * * @author srt * @version $Id$ Index: AGIRequestImpl.java =================================================================== RCS file: /cvsroot/asterisk-java/asterisk-java/src/java/net/sf/asterisk/fastagi/AGIRequestImpl.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -p -r1.1 -r1.2 --- AGIRequestImpl.java 5 Mar 2005 22:46:59 -0000 1.1 +++ AGIRequestImpl.java 8 Mar 2005 16:48:34 -0000 1.2 @@ -135,9 +135,11 @@ public class AGIRequestImpl implements S } /** - * Returns the full URL of the request in the form agi://host[:port][/script]. + * Returns the full URL of the request in the form + * agi://host[:port][/script]. * - * @return the full URL of the request in the form agi://host[:port][/script]. + * @return the full URL of the request in the form + * agi://host[:port][/script]. */ public String getRequestURL() { @@ -147,7 +149,8 @@ public class AGIRequestImpl implements S /** * Sets the full URL of the request in the form agi://host[:port][/script]. * - * @param requestURL the full URL of the request in the form agi://host[:port][/script]. + * @param requestURL the full URL of the request in the form + * agi://host[:port][/script]. */ public void setRequestURL(String requestURL) { @@ -295,9 +298,11 @@ public class AGIRequestImpl implements S } /** - * Returns the context in the dial plan from which the AGI script was called. + * Returns the context in the dial plan from which the AGI script was + * called. * - * @return the context in the dial plan from which the AGI script was called. + * @return the context in the dial plan from which the AGI script was + * called. */ public String getContext() { @@ -307,7 +312,8 @@ public class AGIRequestImpl implements S /** * Sets the context in the dial plan from which the AGI script was called. * - * @param context the context in the dial plan from which the AGI script was called. + * @param context the context in the dial plan from which the AGI script was + * called. */ public void setContext(String context) { @@ -315,9 +321,11 @@ public class AGIRequestImpl implements S } /** - * Returns the extension in the dial plan from which the AGI script was called. + * Returns the extension in the dial plan from which the AGI script was + * called. * - * @return the extension in the dial plan from which the AGI script was called. + * @return the extension in the dial plan from which the AGI script was + * called. */ public String getExtension() { @@ -327,7 +335,8 @@ public class AGIRequestImpl implements S /** * Sets the extension in the dial plan from which the AGI script was called. * - * @param extension the extension in the dial plan from which the AGI script was called. + * @param extension the extension in the dial plan from which the AGI script + * was called. */ public void setExtension(String extension) { @@ -335,9 +344,11 @@ public class AGIRequestImpl implements S } /** - * Returns the priority in the dial plan from which the AGI script was called. + * Returns the priority in the dial plan from which the AGI script was + * called. * - * @return the priority in the dial plan from which the AGI script was called. + * @return the priority in the dial plan from which the AGI script was + * called. */ public Integer getPriority() { @@ -347,7 +358,8 @@ public class AGIRequestImpl implements S /** * Sets the priority in the dial plan from which the AGI script was called. * - * @param priority the priority in the dial plan from which the AGI script was called. + * @param priority the priority in the dial plan from which the AGI script + * was called. */ public void setPriority(Integer priority) { @@ -358,7 +370,8 @@ public class AGIRequestImpl implements S * Returns wheather this agi is passed audio (EAGI - Enhanced AGI).<br> * Enhanced AGI is currently not supported on FastAGI. * - * @return Boolean.TRUE if this agi is passed audio, Boolean.FALSE otherwise. + * @return Boolean.TRUE if this agi is passed audio, Boolean.FALSE + * otherwise. */ public Boolean getEnhanced() { @@ -368,7 +381,8 @@ public class AGIRequestImpl implements S /** * Sets wheather this agi is passed audio. * - * @param enhanced Boolean.TRUE if this agi is passed audio, Boolean.FALSE otherwise. + * @param enhanced Boolean.TRUE if this agi is passed audio, Boolean.FALSE + * otherwise. */ public void setEnhanced(Boolean enhanced) { @@ -397,7 +411,8 @@ public class AGIRequestImpl implements S public String toString() { - return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE); + return ToStringBuilder.reflectionToString(this, + ToStringStyle.MULTI_LINE_STYLE); } public boolean equals(Object o) |