public void print() { Debug.message(toString()); } }
public boolean post(HTTPRequest req, String bindAddr, int bindPort) { return send(req.toString(), bindAddr, bindPort); }
public boolean post(HTTPRequest req) { return send(req.toString(), null, -1); }
public void print() { System.out.println(toString()); } }
public void print() { System.out.println(toString()); } }
public boolean post(HTTPRequest req) { return send(req.toString(), null, -1); }
public boolean post(HTTPRequest req) { return send(req.toString(), null, -1); }
public boolean post(HTTPRequest req, String bindAddr, int bindPort) { return send(req.toString(), bindAddr, bindPort); }
public boolean post(HTTPRequest req, String bindAddr, int bindPort) { return send(req.toString(), bindAddr, bindPort); }
synchronized public void httpRequestRecieved(HTTPRequest httpReq) { Activator.logger.DEBUG("[Importer] httpRequestRecieved event"); Activator.logger.PACKET(httpReq.toString()); if (httpReq.isNotifyRequest() == true) { Activator.logger.DEBUG("[Importer] Notify Request"); NotifyRequest notifyReq = new NotifyRequest(httpReq); String uuid = notifyReq.getSID(); long seq = notifyReq.getSEQ(); PropertyList props = notifyReq.getPropertyList(); // int propCnt = props.size(); // Hashtable hash = new Hashtable(); // for (int n = 0; n < propCnt; n++) { // Property prop = props.getProperty(n); // String varName = prop.getName(); // String varValue = prop.getValue(); // hash.put(varName, varValue); // } newEventArrived(uuid, seq, props); httpReq.returnOK(); return; } Activator.logger.DEBUG("BAD Request"); httpReq.returnBadRequest(); }
public void httpRequestRecieved(HTTPRequest httpReq) { Activator.logger.DEBUG("[Importer] httpRequestRecieved event"); Activator.logger.PACKET(httpReq.toString()); if (httpReq.isNotifyRequest() == true) { Activator.logger.DEBUG("[Importer] Notify Request"); NotifyRequest notifyReq = new NotifyRequest(httpReq); String uuid = notifyReq.getSID(); long seq = notifyReq.getSEQ(); PropertyList props = notifyReq.getPropertyList(); // int propCnt = props.size(); // Hashtable hash = new Hashtable(); // for (int n = 0; n < propCnt; n++) { // Property prop = props.getProperty(n); // String varName = prop.getName(); // String varValue = prop.getValue(); // hash.put(varName, varValue); // } newEventArrived(uuid, seq, props); httpReq.returnOK(); return; } Activator.logger.DEBUG("BAD Request"); httpReq.returnBadRequest(); }