public abstract class AbstractPushClient
extends java.lang.Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected java.lang.String |
host |
protected java.lang.String |
postPath |
protected java.lang.String |
uploadPath |
| 构造器和说明 |
|---|
AbstractPushClient(PushProperties properties) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected abstract Result |
postForEntity(java.lang.String url,
java.lang.String request)
请求服务器API
|
void |
send(AndroidNotification notification)
推送安卓消息
|
void |
send(IOSNotification notification)
推送安卓消息
|
java.lang.String |
uploadAndroidContents(java.lang.String contents)
Upload file with Android device_tokens to Umeng
|
java.lang.String |
uploadIOSContents(java.lang.String contents)
Upload file with IOS device_tokens to Umeng
|
protected final java.lang.String host
protected final java.lang.String uploadPath
protected final java.lang.String postPath
public AbstractPushClient(PushProperties properties)
protected abstract Result postForEntity(java.lang.String url, java.lang.String request)
url - 请求URLrequest - 请求内容public void send(AndroidNotification notification)
notification - 信息public void send(IOSNotification notification)
notification - 信息public java.lang.String uploadIOSContents(java.lang.String contents)
contents - contents device tokens use '\n' to split them if there are multiple tokenspublic java.lang.String uploadAndroidContents(java.lang.String contents)
contents - contents device tokens use '\n' to split them if there are multiple tokens