package lava.net.psyc; import java.util.Vector; import lava.net.common.Packet; import lava.net.common.UNL; /** * **/ public class PSYCPacket extends Packet { /** * **/ private UNL source = null; /** * **/ private String method = null; /** * **/ public PSYCPacket() { super(); } /** * **/ public PSYCPacket(Vector header, String method, String body) { super(header,body); setMethod(method); } /** * **/ protected PSYCPacket(UNL source, Vector header, String method, String body) { super(header,body); setSource(source); setMethod(method); } /** * **/ protected void setSource(UNL source) { this.source = source; } /** * **/ public UNL getSource() { return source; } /** * **/ public void setMethod(String method) { this.method = method; } /** * **/ public String getMethod() { return method; } /** * **/ public boolean isEmpty() { return (method == null || method.length() <= 0) && super.isEmpty(); } }