英特內軟體股份有限公司


jcx.util
Class gcm

jcx.util.gcm
All Implemented Interfaces:
java.lang.Runnable

public class gcm
implements java.lang.Runnable

此類別 gcm 為一 推播通知訊息 API, 凡是欲發送 iOS , Android 推播訊息 皆可引用此 API 。

 使用方法:

  


Constructor Summary
gcm()
           
 
Method Summary
 void checkClientTrusted(java.security.cert.X509Certificate[] certs, java.lang.String authType)
          reserve .
 void checkServerTrusted(java.security.cert.X509Certificate[] certs, java.lang.String authType)
          reserve .
 java.security.cert.X509Certificate[] getAcceptedIssuers()
          reserve .
static void main(java.lang.String[] args)
           
 void run()
          reserve .
static java.lang.String send(java.lang.String message, java.lang.Object device)
          send message to Android or iPhone.
static java.lang.String send(java.lang.String message, java.lang.Object device, java.lang.String sender)
          send message to Android or iPhone.
static java.lang.String sendWipeMessage(java.lang.Object device)
          send Wipe-message to Android or iPhone,可刪除使用者 iApp內下載資料與畫面.
 

Constructor Detail

gcm

public gcm()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception

sendWipeMessage

public static java.lang.String sendWipeMessage(java.lang.Object device)
                                        throws java.lang.Exception
send Wipe-message to Android or iPhone,可刪除使用者 iApp內下載資料與畫面.
Parameters:
device: - device id.
Returns:
String, reserve here
Throws:
java.io.IOException - if send error

send

public static java.lang.String send(java.lang.String message,
                                    java.lang.Object device)
                             throws java.lang.Exception
send message to Android or iPhone.
Parameters:
message: - message to send.
device: - device id.
Returns:
String, reserve here
Throws:
java.io.IOException - if send error

send

public static java.lang.String send(java.lang.String message,
                                    java.lang.Object device,
                                    java.lang.String sender)
                             throws java.lang.Exception
send message to Android or iPhone.
Parameters:
message: - message to send.
device: - device id.
sender: - sender id.
Returns:
String, reserve here
Throws:
java.io.IOException - if send error

getAcceptedIssuers

public java.security.cert.X509Certificate[] getAcceptedIssuers()
reserve .

checkClientTrusted

public void checkClientTrusted(java.security.cert.X509Certificate[] certs,
                               java.lang.String authType)
                        throws java.security.cert.CertificateException
reserve .

checkServerTrusted

public void checkServerTrusted(java.security.cert.X509Certificate[] certs,
                               java.lang.String authType)
reserve .

run

public void run()
reserve .
Specified by:
run in interface java.lang.Runnable

英特內軟體股份有限公司