Adds a path attribute to the 'recording' element.

fix-message-formatting
Boris Grozev 12 years ago
parent abb7e42a85
commit ab3aba4344

@ -1538,8 +1538,14 @@ public static class Recording
*/
public static final String TOKEN_ATTR_NAME = "token";
/**
* The XML name of the <tt>path</tt> attribute.
*/
public static final String PATH_ATTR_NAME = "path";
private String token = null;
private boolean state;
private String path = null;
public Recording(boolean state)
{
@ -1558,6 +1564,16 @@ public String getToken()
return token;
}
public String getPath()
{
return path;
}
public void setPath(String path)
{
this.path = path;
}
public boolean getState()
{
return state;
@ -1573,6 +1589,11 @@ public void toXML(StringBuilder xml)
xml.append(' ').append(TOKEN_ATTR_NAME).append("='")
.append(token).append('\'');
}
if (path != null)
{
xml.append(' ').append(PATH_ATTR_NAME).append("='")
.append(path).append('\'');
}
xml.append("/>");
}
}

Loading…
Cancel
Save