Examples of post()


Examples of org.cybergarage.http.HTTPRequest.post()

    }

    HTTPRequest httpReq = new HTTPRequest();
    httpReq.setMethod(HTTP.GET);
    httpReq.setURI(uri);
    HTTPResponse httpRes = httpReq.post(host, port);
    if (httpRes.isSuccessful() == false)
      throw new ParserException("HTTP comunication failed: no answer from peer." +
          "Unable to retrive resoure -> "+locationURL.toString());
    String content = new String(httpRes.getContent());
    ByteArrayInputStream strBuf = new ByteArrayInputStream(content.getBytes());
View Full Code Here

Examples of org.cybergarage.upnp.control.ActionRequest.post()

    ArgumentList actionInputArgList = getInputArgumentList();   
    ActionRequest ctrlReq = new ActionRequest();
    ctrlReq.setRequest(this, actionInputArgList);
    if (Debug.isOn() == true)
      ctrlReq.print();
    ActionResponse ctrlRes = ctrlReq.post();
    if (Debug.isOn() == true)
      ctrlRes.print();
    setControlResponse(ctrlRes);
    // Thanks for Dimas <cyberrate@users.sourceforge.net> and Stefano Lenzi <kismet-sl@users.sourceforge.net> (07/09/04)
    int statCode = ctrlRes.getStatusCode();
View Full Code Here

Examples of org.cybergarage.upnp.control.QueryRequest.post()

  {
    QueryRequest queryReq = new QueryRequest();
    queryReq.setRequest(this);
    if (Debug.isOn() == true)
      queryReq.print();
    QueryResponse queryRes = queryReq.post();
    if (Debug.isOn() == true)
      queryRes.print();
    setQueryResponse(queryRes);
    // Thanks for Dimas <cyberrate@users.sourceforge.net> and Stefano Lenzi <kismet-sl@users.sourceforge.net> (07/09/04)
    if (queryRes.isSuccessful() == false) {
View Full Code Here

Examples of org.cybergarage.upnp.event.NotifyRequest.post()

    int port = sub.getDeliveryPort();
   
    NotifyRequest notifyReq = new NotifyRequest();
    notifyReq.setRequest(sub, varName, value);
   
    HTTPResponse res = notifyReq.post(host, port);
    if (res.isSuccessful() == false)
      return false;
     
    sub.incrementNotifyCount();   
   
View Full Code Here

Examples of org.cybergarage.upnp.event.SubscriptionRequest.post()

  {
    SubscriptionRequest subReq = new SubscriptionRequest();
    subReq.setRenewRequest(service, uuid, timeout);
    if (Debug.isOn() == true)
      subReq.print()
    SubscriptionResponse subRes = subReq.post();
    if (Debug.isOn() == true)
      subRes.print()
    if (subRes.isSuccessful() == true) {
      service.setSID(subRes.getSID());
      service.setTimeout(subRes.getTimeout());
View Full Code Here

Examples of org.cybergarage.upnp.ssdp.SSDPNotifySocket.post()

    if (isRootDevice() == true) {
      String devNT = getNotifyDeviceNT();
      String devUSN = getNotifyDeviceUSN();
      ssdpReq.setNT(devNT);
      ssdpReq.setUSN(devUSN);
      ssdpSock.post(ssdpReq);

      String devUDN = getUDN();
      ssdpReq.setNT(devUDN);
      ssdpReq.setUSN(devUDN);
      ssdpSock.post(ssdpReq);
View Full Code Here

Examples of org.cybergarage.upnp.ssdp.SSDPSearchResponseSocket.post()

    SSDPSearchResponseSocket ssdpResSock = new SSDPSearchResponseSocket();
    if (Debug.isOn() == true)
      ssdpRes.print();
    int ssdpCount = getSSDPAnnounceCount();
    for (int i = 0; i < ssdpCount; i++)
      ssdpResSock.post(remoteAddr, remotePort, ssdpRes);

    return true;
  }

  public void deviceSearchResponse(SSDPPacket ssdpPacket) {
View Full Code Here

Examples of org.cybergarage.upnp.ssdp.SSDPSearchResponseSocketList.post()

  public void search(String target, int mx)
  {
    SSDPSearchRequest msReq = new SSDPSearchRequest(target, mx);
    SSDPSearchResponseSocketList ssdpSearchResponseSocketList = getSSDPSearchResponseSocketList();
    ssdpSearchResponseSocketList.post(msReq);
  }

  public void search(String target)
  {
    search(target, SSDP.DEFAULT_MSEARCH_MX);
View Full Code Here

Examples of org.drools.guvnor.server.files.RestAPI.post()

                new Command() {
                    public void execute() throws Exception {
                        res.setContentType("text/html");
                        RestAPI api = getAPI();
                        String comment = req.getHeader("Checkin-Comment");
                        api.post(req.getRequestURI(),
                                req.getInputStream(),
                                (comment != null) ? comment : "");
                        res.getWriter().write("OK");
                    }
                });
View Full Code Here

Examples of org.drools.guvnor.server.rest.ActionsAPI.post()

        doAuthorizedAction(req, res, new A() {
            public void a() throws Exception {
                Map map = req.getParameterMap();
                ActionsAPI api = new ActionsAPI();
                api.post(service, repository, req, res);
            }
        });
    }
}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.