Examples of createRequest()


Examples of com.genesys.wsclient.GenesysClient.createRequest()

      .serverUri(TestParams.SERVER_URI)
      .credentials(TestParams.USERNAME, TestParams.PASSWORD)
      .create();
   
    // do simple GET
    String response1 = client.createRequest("GET", "/api/v2/users").execute();
    // ...process the JSON response here
   
    // do POST operation
    client.createRequest("POST", "/api/v2/me")
      .operationName("Ready")
View Full Code Here

Examples of com.google.gdata.client.Service.createRequest()

  @Override
  public void execute() throws Exception {
    MediaFileSource media = new MediaFileSource(new File(attachmentFile), attachmentMimeType);
   
    Service service = createService();
    Service.GDataRequest request = service.createRequest(GDataRequest.RequestType.INSERT,
        new URL(itemMediaUrl), new ContentType(attachmentMimeType));

    if (caption != null) {
      request.setHeader("Slug", caption);
    }
View Full Code Here

Examples of com.volantis.map.agent.RequestFactory.createRequest()

            URI absoluteURI = new URI(pageContext.getAbsoluteURL(
                new MarinerURL(objectAttribute.getSrc()), true).toExternalForm());
            // use resovled absolute uri from now on

            RequestFactory factory = pageContext.getMediaAgentRequestFactory();
            Request request = factory.createRequest(
                objectAttribute.getSrcType(), absoluteURI, inputParameters);
       
            MAPResponseCallback callback =
                new MAPResponseCallbackXDIME2(objectAttribute,
                    MAPResponseCallback.createURLRewriter(pageContext, PageURLType.OBJECT));
View Full Code Here

Examples of com.volantis.map.agent.RequestFactory.createRequest()

            URI absoluteURI = new URI(pageContext.getAbsoluteURL(
                new MarinerURL(objectAttribute.getSrc()), true).toExternalForm());

            // use resovled absolute uri from now on
            RequestFactory factory = pageContext.getMediaAgentRequestFactory();
            Request request = factory.createRequest(
                objectAttribute.getSrcType(), absoluteURI, inputParameters);
       
            MAPResponseCallback callback =
                new MAPResponseCallbackXDIME2(objectAttribute,
                    MAPResponseCallback.createURLRewriter(pageContext, PageURLType.OBJECT));
View Full Code Here

Examples of com.webobjects.appserver.WOApplication.createRequest()

    } catch (MalformedURLException mue) {
      // The above should never fail.  As a last resort, using the empty string will
      // look funny in the request, but still allow the context to use a relative url.
      requestUrl = "";
    }
    return app.createContextForRequest(app.createRequest("GET", requestUrl, "HTTP/1.1", null, null, null));
  }

  public NSMutableDictionary mutableUserInfo() {
    return contextDictionary();
  }
View Full Code Here

Examples of gov.nist.javax.sip.message.MessageFactoryImpl.createRequest()

public class JunkAtEndOfMessageTest extends TestCase {

    public void testMessageSyntax() {
        MessageFactoryImpl messageFactory = new MessageFactoryImpl();
        try {
            Request request = messageFactory
                    .createRequest("BYE sip:127.0.0.1:5080;transport=tcp SIP/2.0\r\n"
                            + "Via: SIP/2.0/TCP 127.0.0.1:5060;rport=5060;branch=z9hG4bKd2c87858eb0a7a09becc7a115c608d27\r\n"
                            + "CSeq: 2 BYE\r\n"
                            + "Call-ID: 84a5c57fd263bcce6fec05edf20c5aba@127.0.0.1\r\n"
                            + "From: \"The Master Blaster\" <sip:BigGuy@here.com>;tag=12345\r\n"
View Full Code Here

Examples of javax.servlet.sip.SipSession.createRequest()

    try
    {
      SipSession session = subscription.getSession();
      if (session.isValid())
      {
        SipServletRequest notify = session.createRequest(Constants.NOTIFY);
        notify.addHeader(Constants.EVENT, getName());
       
        String s = subscription.getState().getName();
        if (subscription.getState() == Subscription.State.ACTIVE
            || subscription.getState() == Subscription.State.PENDING)
View Full Code Here

Examples of javax.servlet.sip.SipSession.createRequest()

        // ACK to leg1
        response.createAck().send();
      }
      else if (status >= SipServletResponse.SC_MULTIPLE_CHOICES)
      {
        leg2.createRequest("BYE").send();
        leg1.getApplicationSession().invalidate();
     
    }
  }
 
View Full Code Here

Examples of javax.servlet.sip.SipSession.createRequest()

                            uow.lockDialog(dialog);
                        }
                        // issue 1085 :: create byeRequest before invoking the listeners.
                        // issue 1350 :: check that session is still valid. If app is undeployed it will not be
                        if(session.isValid()){
                          byeRequest = session.createRequest("BYE");
                        }
                        else {
                          if (m_Log.isLoggable(Level.FINE)) {
                                m_Log.log(Level.FINE,
                                        "Skipping to send BYE since SipSession is no longer valid");
View Full Code Here

Examples of javax.sip.Dialog.createRequest()

      System.out.println("For-loop Exception:" + e);
    }
     
      Request byeRequest;
      try {
        byeRequest = dialog.createRequest(Request.BYE);
        dialog.sendRequest(sipProvider.getNewClientTransaction(byeRequest));
      } catch (SipException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
      }
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.