Examples of request()


Examples of isbndb.rest.RestRequestor.request()

   
    Request request = new Request(getIsbnkey(), RequestType.ISBN,
        fIsbn.getValue());
   
    RestRequestor restRequestor = new RestRequestor();
    restRequestor.request(request);
   
    XmlResponseParser xmlResponseParser = new XmlResponseParser();
   
    lookup.setAccessKey(getIsbnkey());
    lookup.setRequestor(restRequestor);
View Full Code Here

Examples of javax.jms.QueueRequestor.request()

      receiver.setMessageListener(listener);
      conn2.start();
     
      Message m1 = sess1.createMessage();
      log.trace("Sending request message");
      TextMessage m2 = (TextMessage)requestor.request(m1);
     
     
      assertNotNull(m2);
     
      assertEquals("This is the response", m2.getText());
View Full Code Here

Examples of javax.jms.TopicRequestor.request()

        TopicRequestor requestor = new TopicRequestor((TopicSession)localSession, included);
        // allow for consumer infos to perculate arround
        Thread.sleep(2000);
        for (int i = 0; i < MESSAGE_COUNT; i++) {
            TextMessage msg = localSession.createTextMessage("test msg: " + i);
            TextMessage result = (TextMessage)requestor.request(msg);
            assertNotNull(result);
            LOG.info(result.getText());
        }
    }
View Full Code Here

Examples of javax.ws.rs.client.WebTarget.request()

      for (Object o : entry.getValue()) {
        target = target.queryParam(entry.getKey(), o);
      }
    }
        target.register(logger);
    Invocation.Builder invocation = target.request();

    for(Map.Entry<String, List<Object>> h : request.headers().entrySet()) {
      StringBuilder sb = new StringBuilder();
      for(Object v : h.getValue()) {
        sb.append(String.valueOf(v));
View Full Code Here

Examples of net.sf.jeters.componentInterface.UIComponent.request()

  private void outputError(String message) {
   
    UIComponent uiComponent = componentManager.getUIComponent();
   
    if (uiComponent != null) {
      uiComponent.request(new UIRequest_Output(message));
    } else {
      System.err.println(message);
    }
   
    //TODO: log
View Full Code Here

Examples of net.sf.jsptest.compiler.api.Jsp.request()

                + new File(getWebRoot()).getAbsolutePath());
        compiler.setWebRoot(getWebRoot());
        compiler.setOutputDirectory(getOutputDirectory());
        Jsp jsp = compiler.compile(path, substituteTaglibs);
        log.debug("Simulating a request to " + path);
        execution = jsp.request(httpMethod, requestAttributes, sessionAttributes, requestParameters);
    }

    private void validatePath(String path) {
        if (!path.startsWith("/")) {
            throw new IllegalArgumentException("The JSP path must start with a \"/\"");
View Full Code Here

Examples of net.tomp2p.futures.FutureResponse.request()

      storePeerConnection(message, peerConnection);
      responder.response(createResponseMessage(message, Type.OK).keepAlive(true));
    } else {
      ConcurrentHashMap<Integer, FutureResponse> cachedRequests = peer.connectionBean().sender().cachedRequests();
      final FutureResponse cachedRequest = cachedRequests.remove(message.intAt(0));
      final Message cachedMessage = cachedRequest.request();
      LOG.debug("This reverse connection is only used for sending a direct message {}", cachedMessage);

      // send the message to the unreachable peer through the open channel
      FutureResponse futureResponse = RelayUtils.send(peerConnection, peer.peerBean(), peer.connectionBean(), config,
          cachedMessage);
View Full Code Here

Examples of org.activeio.RequestChannel.request()

            RequestChannel channel = createRequestChannel(target);
            Packet response;
            try {
                channel.start();
                Packet request = serialize(invocation);
                response = channel.request(request, Service.WAIT_FOREVER_TIMEOUT);
            } finally {
                channel.dispose();               
            }
           
            Object obj;
View Full Code Here

Examples of org.activeio.adapter.AsyncChannelToClientRequestChannel.request()

                  Subject subject = Subject.getSubject(AccessController.getContext());
                  String p = subject.getPrincipals().iterator().next().toString();
                  log.info("Sending request as: "+p);

                    Packet request = new ByteArrayPacket("whoami".getBytes());
                    Packet response = channel.request(request, 1000*5*1000);

                    assertNotNull(response);
                    assertEquals( p, new String(response.sliceAsBytes()) );
                    return null;
              }
View Full Code Here

Examples of org.activeio.adapter.AsynchChannelToClientRequestChannel.request()

                  Subject subject = Subject.getSubject(AccessController.getContext());
                  String p = subject.getPrincipals().iterator().next().toString();
                  log.info("Sending request as: "+p);

                    Packet request = new ByteArrayPacket("whoami".getBytes());
                    Packet response = channel.request(request, 1000*5*1000);

                    assertNotNull(response);
                    assertEquals( p, new String(response.sliceAsBytes()) );
                    return null;
              }
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.