com.notnoop.mpns.internal
Class MpnsServiceImpl

java.lang.Object
  extended by com.notnoop.mpns.internal.AbstractMpnsService
      extended by com.notnoop.mpns.internal.MpnsServiceImpl
All Implemented Interfaces:
MpnsService

public class MpnsServiceImpl
extends AbstractMpnsService
implements MpnsService


Constructor Summary
MpnsServiceImpl(org.apache.http.client.HttpClient httpClient, MpnsDelegate delegate)
           
 
Method Summary
protected  void push(org.apache.http.client.methods.HttpPost request, MpnsNotification message)
           
 void stop()
          Stops the service and frees any allocated resources it created for this service.
 
Methods inherited from class com.notnoop.mpns.internal.AbstractMpnsService
getSubscriptionUri, postMessage, push, push, start
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.notnoop.mpns.MpnsService
push, push, start
 

Constructor Detail

MpnsServiceImpl

public MpnsServiceImpl(org.apache.http.client.HttpClient httpClient,
                       MpnsDelegate delegate)
Method Detail

push

protected void push(org.apache.http.client.methods.HttpPost request,
                    MpnsNotification message)
Specified by:
push in class AbstractMpnsService

stop

public void stop()
Description copied from interface: MpnsService
Stops the service and frees any allocated resources it created for this service. The underlying implementation should close all connections it created, and possibly stop any threads as well.

Specified by:
stop in interface MpnsService
Overrides:
stop in class AbstractMpnsService


Copyright © 2015. All Rights Reserved.