Package javax.sip.header

Examples of javax.sip.header.EventHeader


                            + transport + ";lr>"));
            request.addHeader(route);
            // JvB end added

            // Create an event header for the subscription.
            EventHeader eventHeader = headerFactory.createEventHeader("foo");
            eventHeader.setEventId("foo");
            request.addHeader(eventHeader);

            SubscriptionStateHeader ssh = headerFactory
                    .createSubscriptionStateHeader(SubscriptionStateHeader.ACTIVE);
            // Create the client transaction.
View Full Code Here


            Request request = requestEvent.getRequest();
            if (LOG.isDebugEnabled()) {
                LOG.debug("SipPresenceAgentListener: Received a Publish request, sending OK");
                LOG.debug("SipPresenceAgentListener request: " + request);
            }
            EventHeader eventHeader = (EventHeader) requestEvent.getRequest().getHeader(EventHeader.NAME);
            Response response = sipPresenceAgent.getConfiguration().getMessageFactory().createResponse(202, request);
            sipPresenceAgent.getProvider().sendResponse(response);

            // Send notification to subscriber
            sendNotification(eventHeader, false, request.getContent());
View Full Code Here

        Request request = requestEvent.getRequest();
        try {
            logger.info("notifier: got an Subscribe sending OK");
            logger.info("notifier:  " + request);
            logger.info("notifier : dialog = " + requestEvent.getDialog());
            EventHeader eventHeader = (EventHeader) request.getHeader(EventHeader.NAME);
            this.gotSubscribeRequest = true;

            AbstractSubsnotifyTestCase.assertTrue("Event header is null ", eventHeader != null);

            // Always create a ServerTransaction, best as early as possible in the code
View Full Code Here

            Request unsub = dialog.createRequest(Request.SUBSCRIBE);
            ExpiresHeader expiresHeader = headerFactory
                    .createExpiresHeader(0);
            unsub.addHeader(expiresHeader);

            EventHeader eventHeader = null;
            eventHeader = headerFactory.createEventHeader("reg");
            unsub.addHeader(eventHeader);

            ClientTransaction ct = sipProvider.getNewClientTransaction(unsub);
            ct.sendRequest();
View Full Code Here

            ExpiresHeader expires_header = headerFactory
                    .createExpiresHeader(200);
            request.addHeader(expires_header);

            EventHeader event_header = null;
            event_header = headerFactory.createEventHeader("reg");
            request.addHeader(event_header);

            ClientTransaction ct = sipProvider.getNewClientTransaction(request);
            ct.sendRequest();
View Full Code Here

    Request request = requestEvent.getRequest();
    try {
      logger.info("notifier: got an Subscribe sending OK");
      logger.info("notifier:  " + request);
      logger.info("notifier : dialog = " + requestEvent.getDialog());
      EventHeader eventHeader = (EventHeader) request.getHeader(EventHeader.NAME);
      this.gotSubscribeRequest = true;
     
      AbstractSubsnotifyTestCase.assertTrue("Event header is null ", eventHeader != null);
           
      // Always create a ServerTransaction, best as early as possible in the code
View Full Code Here

              + transport + ";lr>"));
      request.addHeader(route);
      // JvB end added

      // Create an event header for the subscription.
      EventHeader eventHeader = headerFactory.createEventHeader("foo");
      eventHeader.setEventId("foo");
      request.addHeader(eventHeader);

      SubscriptionStateHeader ssh = headerFactory
          .createSubscriptionStateHeader(SubscriptionStateHeader.ACTIVE);
      // Create the client transaction.
View Full Code Here

      Request unsub = dialog.createRequest(Request.SUBSCRIBE);
      ExpiresHeader expiresHeader = headerFactory
          .createExpiresHeader(0);
      unsub.addHeader(expiresHeader);

      EventHeader eventHeader = null;
      eventHeader = headerFactory.createEventHeader("reg");
      unsub.addHeader(eventHeader);

      ClientTransaction ct = sipProvider.getNewClientTransaction(unsub);
      ct.sendRequest();
View Full Code Here

      ExpiresHeader expires_header = headerFactory
          .createExpiresHeader(200);
      request.addHeader(expires_header);

      EventHeader event_header = null;
      event_header = headerFactory.createEventHeader("reg");
      request.addHeader(event_header);

      ClientTransaction ct = sipProvider.getNewClientTransaction(request);
      ct.sendRequest();
View Full Code Here

                            + transport + ";lr>"));
            request.addHeader(route);
            // JvB end added

            // Create an event header for the subscription.
            EventHeader eventHeader = headerFactory.createEventHeader("foo");
            eventHeader.setEventId("foo");
            request.addHeader(eventHeader);

            SubscriptionStateHeader ssh = headerFactory
                    .createSubscriptionStateHeader(SubscriptionStateHeader.ACTIVE);
            // Create the client transaction.
View Full Code Here

TOP

Related Classes of javax.sip.header.EventHeader

Copyright © 2018 www.massapicom. 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.