List of usage examples for org.dom4j QName get
public static QName get(String qualifiedName, String uri)
From source file:com.xebialabs.overthere.cifs.winrm.ResourceURI.java
License:Open Source License
public Element getElement() { return DocumentHelper.createElement(QName.get("ResourceURI", Namespaces.NS_WSMAN_DMTF)) .addAttribute("mustUnderstand", "true").addText(uri); }
From source file:com.xebialabs.overthere.cifs.winrm.soap.HeaderBuilder.java
License:Open Source License
public HeaderBuilder to(URI address) { header.addElement(QName.get("To", NS_ADDRESSING)).addText(address.toString()); return this; }
From source file:com.xebialabs.overthere.cifs.winrm.soap.HeaderBuilder.java
License:Open Source License
public HeaderBuilder replyTo(URI address) { final Element replyTo = header.addElement(QName.get("ReplyTo", NS_ADDRESSING)); mustUnderstand(replyTo.addElement(QName.get("Address", NS_ADDRESSING))).addText(address.toString()); return this; }
From source file:com.xebialabs.overthere.cifs.winrm.soap.HeaderBuilder.java
License:Open Source License
public HeaderBuilder maxEnvelopeSize(int size) { mustUnderstand(header.addElement(QName.get("MaxEnvelopeSize", NS_WSMAN_DMTF))).addText("" + size); return this; }
From source file:com.xebialabs.overthere.cifs.winrm.soap.HeaderBuilder.java
License:Open Source License
public HeaderBuilder withId(String id) { header.addElement(QName.get("MessageID", NS_ADDRESSING)).addText(id); return this; }
From source file:com.xebialabs.overthere.cifs.winrm.soap.HeaderBuilder.java
License:Open Source License
public HeaderBuilder withLocale(String locale) { needNotUnderstand(header.addElement(QName.get("Locale", NS_WSMAN_DMTF))).addAttribute("xml:lang", locale); needNotUnderstand(header.addElement(QName.get("DataLocale", NS_WSMAN_MSFT))).addAttribute("xml:lang", locale);//from ww w . ja v a 2 s . c om return this; }
From source file:com.xebialabs.overthere.cifs.winrm.soap.HeaderBuilder.java
License:Open Source License
public HeaderBuilder withTimeout(String timeout) { header.addElement(QName.get("OperationTimeout", NS_WSMAN_DMTF)).addText(timeout); return this; }
From source file:com.xebialabs.overthere.cifs.winrm.soap.HeaderBuilder.java
License:Open Source License
public HeaderBuilder withAction(URI uri) { mustUnderstand(header.addElement(QName.get("Action", NS_ADDRESSING))).addText(uri.toString()); return this; }
From source file:com.xebialabs.overthere.cifs.winrm.soap.HeaderBuilder.java
License:Open Source License
public HeaderBuilder withShellId(String shellId) { header.addElement(QName.get("SelectorSet", NS_WSMAN_DMTF)).addElement(QName.get("Selector", NS_WSMAN_DMTF)) .addAttribute("Name", "ShellId").addText(shellId); return this; }
From source file:com.xebialabs.overthere.cifs.winrm.soap.HeaderBuilder.java
License:Open Source License
public HeaderBuilder withResourceURI(URI uri) { mustUnderstand(header.addElement(QName.get("ResourceURI", NS_WSMAN_DMTF))).addText(uri.toString()); return this; }