[Asterisk-java-cvs] CVS: asterisk-java/src/java/net/sf/asterisk/manager/response ManagerResponse.jav
Brought to you by:
srt
From: Stefan R. <sr...@us...> - 2005-02-23 22:51:09
|
Update of /cvsroot/asterisk-java/asterisk-java/src/java/net/sf/asterisk/manager/response In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21466/src/java/net/sf/asterisk/manager/response Modified Files: ManagerResponse.java MailboxStatusResponse.java ManagerError.java ExtensionStateResponse.java CommandResponse.java MailboxCountResponse.java ChallengeResponse.java Log Message: added license header Index: ManagerResponse.java =================================================================== RCS file: /cvsroot/asterisk-java/asterisk-java/src/java/net/sf/asterisk/manager/response/ManagerResponse.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -p -r1.1 -r1.2 --- ManagerResponse.java 23 Feb 2005 12:45:22 -0000 1.1 +++ ManagerResponse.java 23 Feb 2005 22:50:58 -0000 1.2 @@ -1,7 +1,18 @@ /* - * (c) 2004 Stefan Reuter + * Copyright 2004-2005 Stefan Reuter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. * - * Created on Apr 22, 2004 */ package net.sf.asterisk.manager.response; @@ -15,8 +26,8 @@ import org.apache.commons.lang.builder.T /** * Represents a response received from the Asterisk server as the result of a previously sent * ManagerAction.<br> - * The response can be linked with the action that caused it by looking the action id - * attribute that will match the action id of the corresponding action. + * The response can be linked with the action that caused it by looking the action id attribute that + * will match the action id of the corresponding action. * * @see net.sf.asterisk.manager.action.ManagerAction * @author srt @@ -24,6 +35,9 @@ import org.apache.commons.lang.builder.T */ public class ManagerResponse implements Serializable { + /** + * Serial version identifier + */ static final long serialVersionUID = -935845815108584292L; private Date dateReceived; @@ -49,8 +63,8 @@ public class ManagerResponse implements } /** - * Returns the action id received with this response referencing the action - * that generated this response. + * Returns the action id received with this response referencing the action that generated this + * response. */ public String getActionId() { @@ -66,8 +80,8 @@ public class ManagerResponse implements } /** - * Returns the message received with this response. - * The content depends on the action that generated this response. + * Returns the message received with this response. The content depends on the action that + * generated this response. */ public String getMessage() { @@ -83,9 +97,8 @@ public class ManagerResponse implements } /** - * Returns the value of the "Response:" line. - * This typically a String like "Success" or "Error" but depends on the action that - * generated this response. + * Returns the value of the "Response:" line. This typically a String like "Success" or "Error" + * but depends on the action that generated this response. */ public String getResponse() { @@ -101,9 +114,8 @@ public class ManagerResponse implements } /** - * Returns the unique id received with this response. - * The unique id is used to keep track of channels created by the action sent, - * for example an OriginateAction. + * Returns the unique id received with this response. The unique id is used to keep track of + * channels created by the action sent, for example an OriginateAction. */ public String getUniqueId() { Index: MailboxStatusResponse.java =================================================================== RCS file: /cvsroot/asterisk-java/asterisk-java/src/java/net/sf/asterisk/manager/response/MailboxStatusResponse.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -p -r1.1 -r1.2 --- MailboxStatusResponse.java 23 Feb 2005 12:45:22 -0000 1.1 +++ MailboxStatusResponse.java 23 Feb 2005 22:50:58 -0000 1.2 @@ -1,13 +1,24 @@ /* - * (c) 2004 Stefan Reuter + * Copyright 2004-2005 Stefan Reuter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. * - * Created on Sep 29, 2004 */ package net.sf.asterisk.manager.response; /** - * A MailboxStatusResponse is sent in response to a MailboxStatusAction - * and indicates if a mailbox contains waiting messages. + * A MailboxStatusResponse is sent in response to a MailboxStatusAction and indicates if a mailbox + * contains waiting messages. * * @see net.sf.asterisk.manager.action.MailboxStatusAction * @@ -16,6 +27,9 @@ package net.sf.asterisk.manager.response */ public class MailboxStatusResponse extends ManagerResponse { + /** + * Serial version identifier + */ private static final long serialVersionUID = -7193581424292429279L; private String mailbox; private Integer waiting; Index: ManagerError.java =================================================================== RCS file: /cvsroot/asterisk-java/asterisk-java/src/java/net/sf/asterisk/manager/response/ManagerError.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -p -r1.1 -r1.2 --- ManagerError.java 23 Feb 2005 12:45:22 -0000 1.1 +++ ManagerError.java 23 Feb 2005 22:50:58 -0000 1.2 @@ -1,7 +1,18 @@ /* - * (c) 2004 Stefan Reuter + * Copyright 2004-2005 Stefan Reuter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. * - * Created on Apr 23, 2004 */ package net.sf.asterisk.manager.response; @@ -9,14 +20,17 @@ import org.apache.commons.lang.builder.E import org.apache.commons.lang.builder.HashCodeBuilder; /** - * Represents an "Response: Error" response received from the asterisk server. - * The cause for the error is given in the message attribute. + * Represents an "Response: Error" response received from the asterisk server. The cause for the + * error is given in the message attribute. * * @author srt * @version $Id$ */ public class ManagerError extends ManagerResponse { + /** + * Serial version identifier + */ static final long serialVersionUID = -8753149536715547476L; /** Index: ExtensionStateResponse.java =================================================================== RCS file: /cvsroot/asterisk-java/asterisk-java/src/java/net/sf/asterisk/manager/response/ExtensionStateResponse.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -p -r1.1 -r1.2 --- ExtensionStateResponse.java 23 Feb 2005 12:45:22 -0000 1.1 +++ ExtensionStateResponse.java 23 Feb 2005 22:50:58 -0000 1.2 @@ -1,7 +1,18 @@ /* - * (c) 2004 Stefan Reuter + * Copyright 2004-2005 Stefan Reuter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. * - * Created on Sep 29, 2004 */ package net.sf.asterisk.manager.response; @@ -11,6 +22,9 @@ package net.sf.asterisk.manager.response */ public class ExtensionStateResponse extends ManagerResponse { + /** + * Serial version identifier + */ private static final long serialVersionUID = -2044248427247227390L; private String exten; private String context; Index: CommandResponse.java =================================================================== RCS file: /cvsroot/asterisk-java/asterisk-java/src/java/net/sf/asterisk/manager/response/CommandResponse.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -p -r1.1 -r1.2 --- CommandResponse.java 23 Feb 2005 12:45:22 -0000 1.1 +++ CommandResponse.java 23 Feb 2005 22:50:58 -0000 1.2 @@ -1,7 +1,18 @@ /* - * (c) 2004 Stefan Reuter + * Copyright 2004-2005 Stefan Reuter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. * - * Created on Apr 25, 2004 */ package net.sf.asterisk.manager.response; @@ -10,10 +21,10 @@ import java.util.List; /** * Corresponds to a CommandAction.<br> * - * Asterisk's handling of the command action is generelly quite hairy. It sends a "Response: Follows" - * line followed by the raw output of the command including empty lines. At the end of the command - * output a line containing "--END COMMAND--" is sent. The reader parses this response into a - * CommandResponse object to hide these details. + * Asterisk's handling of the command action is generelly quite hairy. It sends a "Response: + * Follows" line followed by the raw output of the command including empty lines. At the end of the + * command output a line containing "--END COMMAND--" is sent. The reader parses this response into + * a CommandResponse object to hide these details. * * @see net.sf.asterisk.manager.action.CommandAction * @@ -22,13 +33,15 @@ import java.util.List; */ public class CommandResponse extends ManagerResponse { + /** + * Serial version identifier + */ static final long serialVersionUID = -350763332794275049L; protected List result; /** - * Returns a List containing strings representing the lines returned by - * the CLI command. + * Returns a List containing strings representing the lines returned by the CLI command. */ public List getResult() { Index: MailboxCountResponse.java =================================================================== RCS file: /cvsroot/asterisk-java/asterisk-java/src/java/net/sf/asterisk/manager/response/MailboxCountResponse.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -p -r1.1 -r1.2 --- MailboxCountResponse.java 23 Feb 2005 12:45:22 -0000 1.1 +++ MailboxCountResponse.java 23 Feb 2005 22:50:58 -0000 1.2 @@ -1,21 +1,35 @@ /* - * (c) 2004 Stefan Reuter + * Copyright 2004-2005 Stefan Reuter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. * - * Created on Sep 29, 2004 */ package net.sf.asterisk.manager.response; /** - * A MailboxCountResponse is sent in response to a MailboxCountAction - * and contains the number of old and new messages in a mailbox. - * - * @see net.sf.asterisk.manager.action.MailboxCountAction + * A MailboxCountResponse is sent in response to a MailboxCountAction and contains the number of old + * and new messages in a mailbox. + * + * @see net.sf.asterisk.manager.action.MailboxCountAction * * @author srt * @version $Id$ */ public class MailboxCountResponse extends ManagerResponse { + /** + * Serial version identifier + */ private static final long serialVersionUID = 7820598941277275838L; private String mailbox; private Integer newMessages; Index: ChallengeResponse.java =================================================================== RCS file: /cvsroot/asterisk-java/asterisk-java/src/java/net/sf/asterisk/manager/response/ChallengeResponse.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -p -r1.1 -r1.2 --- ChallengeResponse.java 23 Feb 2005 12:45:22 -0000 1.1 +++ ChallengeResponse.java 23 Feb 2005 22:50:58 -0000 1.2 @@ -1,13 +1,24 @@ /* - * (c) 2004 Stefan Reuter + * Copyright 2004-2005 Stefan Reuter + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. * - * Created on Apr 22, 2004 */ package net.sf.asterisk.manager.response; /** - * Corresponds to a ChallengeAction and contains the challenge needed to log in - * using challenge/response. + * Corresponds to a ChallengeAction and contains the challenge needed to log in using + * challenge/response. * * @see net.sf.asterisk.manager.action.ChallengeAction * @see net.sf.asterisk.manager.action.LoginAction @@ -17,6 +28,9 @@ package net.sf.asterisk.manager.response */ public class ChallengeResponse extends ManagerResponse { + /** + * Serial version identifier + */ static final long serialVersionUID = -7253724086340850957L; private String challenge; |