/*
 *  Copyright 2004-2006 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.
 *
 */
package org.asteriskjava.manager.response;

/**
 * Response to an {@link org.asteriskjava.manager.action.ExtensionStateAction}.  
 *
 * @author srt
 * @version $Id$
 * @see org.asteriskjava.manager.action.ExtensionStateAction
 */
public class ExtensionStateResponse extends ManagerResponse
{
    private static final long serialVersionUID = -2044248427247227390L;
    private String exten;
    private String context;
    private String hint;
    private Integer status;

    public String getExten()
    {
        return exten;
    }

    public void setExten(String exten)
    {
        this.exten = exten;
    }

    public String getContext()
    {
        return context;
    }

    public void setContext(String context)
    {
        this.context = context;
    }

    public String getHint()
    {
        return hint;
    }

    public void setHint(String hint)
    {
        this.hint = hint;
    }

    public Integer getStatus()
    {
        return status;
    }

    public void setStatus(Integer status)
    {
        this.status = status;
    }

    @Override
    public String toString()
    {
    	StringBuilder sb;

        sb = new StringBuilder(getClass().getName() + ": ");
        sb.append("actionId='").append(getActionId()).append("'; ");
        sb.append("message='").append(getMessage()).append("'; ");
        sb.append("response='").append(getResponse()).append("'; ");
        sb.append("uniqueId='").append(getUniqueId()).append("'; ");
        sb.append("exten='").append(getExten()).append("'; ");
        sb.append("context='").append(getContext()).append("'; ");
        sb.append("hint='").append(getHint()).append("'; ");
        sb.append("status='").append(getStatus()).append("'; ");
        sb.append("systemHashcode=").append(System.identityHashCode(this));

        return sb.toString();
    }
}

@@ -1079,17 +1079,46 @@
 status;%0A
+%09private String statustext;%0A%09
 %0A
-
     publ
@@ -1695,24 +1695,172 @@
 tus;%0A    %7D%0A%0A
+%09public String getStatustext()%0A%09%7B%0A%09%09return statustext;%0A%09%7D%0A%0A%09public void setStatustext(String statustext)%0A%09%7B%0A%09%09this.statustext = statustext;%0A%09%7D%0A%0A%09%0A%09%0A
     @Overrid
@@ -2438,32 +2438,32 @@
 .append(%22'; %22);%0A
-
         sb.appen
@@ -2503,32 +2503,99 @@
 .append(%22'; %22);%0A
+%09%09sb.append(%22statustext='%22).append(getStatustext()).append(%22'; %22);%0A
         sb.appen

Add missing methods for responsefield "statustext"