updlocationreq.java.svn-base

来自「Example of using Cisco Call Manager AXL 」· SVN-BASE 代码 · 共 41 行

SVN-BASE
41
字号
/**
 * 
 */
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 + =
减小字号Ctrl + -
显示快捷键?