public void httpRequestRecieved(HTTPRequest httpReq) { if (Debug.isOn() == true) httpReq.print(); // Thanks for Giordano Sassaroli <sassarol@cefriel.it> (09/08/03) if (httpReq.isNotifyRequest() == true) { NotifyRequest notifyReq = new NotifyRequest(httpReq); String uuid = notifyReq.getSID(); long seq = notifyReq.getSEQ(); PropertyList props = notifyReq.getPropertyList(); int propCnt = props.size(); for (int n = 0; n < propCnt; n++) { Property prop = props.getProperty(n); String varName = prop.getName(); String varValue = prop.getValue(); performEventListener(uuid, seq, varName, varValue); } httpReq.returnOK(); return; } httpReq.returnBadRequest(); }
public void httpRequestRecieved(HTTPRequest httpReq) { if (Debug.isOn() == true) httpReq.print(); if (hasPresentationListener() && isPresentationRequest(httpReq)) { PresentationListener listener = getPresentationListener(); listener.httpRequestRecieved(httpReq); return; } if (httpReq.isGetRequest() == true || httpReq.isHeadRequest() == true) { httpGetRequestRecieved(httpReq); return; } if (httpReq.isPostRequest() == true) { httpPostRequestRecieved(httpReq); return; } if (httpReq.isSubscribeRequest() == true || httpReq.isUnsubscribeRequest() == true) { SubscriptionRequest subReq = new SubscriptionRequest(httpReq); deviceEventSubscriptionRecieved(subReq); return; } httpReq.returnBadRequest(); }
public void httpRequestRecieved(HTTPRequest httpReq) { if (Debug.isOn() == true) httpReq.print(); // Thanks for Giordano Sassaroli <sassarol@cefriel.it> (09/08/03) if (httpReq.isNotifyRequest() == true) { NotifyRequest notifyReq = new NotifyRequest(httpReq); String uuid = notifyReq.getSID(); long seq = notifyReq.getSEQ(); PropertyList props = notifyReq.getPropertyList(); int propCnt = props.size(); for (int n = 0; n < propCnt; n++) { Property prop = props.getProperty(n); String varName = prop.getName(); String varValue = prop.getValue(); performEventListener(uuid, seq, varName, varValue); } httpReq.returnOK(); return; } httpReq.returnBadRequest(); }
public void httpRequestRecieved(HTTPRequest httpReq) { if (Debug.isOn() == true) httpReq.print(); // Thanks for Giordano Sassaroli <sassarol@cefriel.it> (09/08/03) if (httpReq.isNotifyRequest() == true) { NotifyRequest notifyReq = new NotifyRequest(httpReq); String uuid = notifyReq.getSID(); long seq = notifyReq.getSEQ(); PropertyList props = notifyReq.getPropertyList(); int propCnt = props.size(); for (int n = 0; n < propCnt; n++) { Property prop = props.getProperty(n); String varName = prop.getName(); String varValue = prop.getValue(); performEventListener(uuid, seq, varName, varValue); } httpReq.returnOK(); return; } httpReq.returnBadRequest(); }
public void httpRequestRecieved(HTTPRequest httpReq) { if (Debug.isOn() == true) httpReq.print(); if (hasPresentationListener() && isPresentationRequest(httpReq)) { PresentationListener listener = getPresentationListener(); listener.httpRequestRecieved(httpReq); return; } if (httpReq.isGetRequest() == true || httpReq.isHeadRequest() == true) { httpGetRequestRecieved(httpReq); return; } if (httpReq.isPostRequest() == true) { httpPostRequestRecieved(httpReq); return; } if (httpReq.isSubscribeRequest() == true || httpReq.isUnsubscribeRequest() == true) { SubscriptionRequest subReq = new SubscriptionRequest(httpReq); deviceEventSubscriptionRecieved(subReq); return; } httpReq.returnBadRequest(); }
public void httpRequestRecieved(HTTPRequest httpReq) { if (Debug.isOn() == true) httpReq.print(); if (hasPresentationListener() && isPresentationRequest(httpReq)) { PresentationListener listener = getPresentationListener(); listener.httpRequestRecieved(httpReq); return; } if (httpReq.isGetRequest() == true || httpReq.isHeadRequest() == true) { httpGetRequestRecieved(httpReq); return; } if (httpReq.isPostRequest() == true) { httpPostRequestRecieved(httpReq); return; } if (httpReq.isSubscribeRequest() == true || httpReq.isUnsubscribeRequest() == true) { SubscriptionRequest subReq = new SubscriptionRequest(httpReq); deviceEventSubscriptionRecieved(subReq); return; } httpReq.returnBadRequest(); }