📄 updlocationreq.java.svn-base
字号:
/**
*
*/
package org.caixapenedes.updlocation.core.axl;
/**
* @author dbea
*
*/
public class UpdLocationReq extends AXLRequest {
private String locationName;
private String kbits;
public UpdLocationReq(String axlUserName, String axlPassword, String axlPort, String axlHost,
String locationName, String kbits ) {
super( axlUserName, axlPassword, axlPort, axlHost );
this.locationName = locationName;
this.kbits = kbits;
}
/* (non-Javadoc)
* @see es.caixaterrassa.openfire.plugin.axl.AXLRequest#getRequest()
*/
@Override
protected String getRequest() {
String sAXLRequest = "";
sAXLRequest +="<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
sAXLRequest += "<SOAP-ENV:Body>";
sAXLRequest += " <axl:updateLocation xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
sAXLRequest += " xsi:schemaLocation=\"http://www.cisco.com/AXL/1.0 http://"+ getAxlHost() +"/schema/axlsoap.xsd\" ";
sAXLRequest += "sequence=\"1234\"> ";
sAXLRequest += " <name>"+ locationName +"</name>";
sAXLRequest += " <kbits>"+ kbits +"</kbits>";
sAXLRequest += " </axl:doDeviceLogout > ";
sAXLRequest += "</SOAP-ENV:Body> </SOAP-ENV:Envelope>";
return sAXLRequest;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -