de.sekmi.li2b2.hive.HiveRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of li2b2-xml Show documentation
Show all versions of li2b2-xml Show documentation
Message structures and code for parsing.
Used by client and server.
package de.sekmi.li2b2.hive;
import java.net.URL;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
public class HiveRequest extends HiveMessage{
public HiveRequest(Document dom) {
super(dom);
// set timestamp
//setTimestamp();
}
public HiveRequest setRedirectUrl(URL url){
Element mh = getMessageHeader();
if( url != null ){
mh.getFirstChild().getFirstChild().setTextContent(url.toExternalForm());
}else{
// no proxy
// remove proxy element
mh.removeChild(mh.getFirstChild());
}
return this;
}
}