|
Oracle Application Server Wireless Java API Reference B14043-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
oracle.panama.messaging.push.PushClientBase
Base class of all Push clients.
| Constructor Summary | |
PushClientBase(java.lang.String messagingGatewayURL, java.lang.String username, java.lang.String password) |
|
| Method Summary | |
java.lang.String |
getServerVersion()Get the version of PushServer |
java.lang.String[] |
getSupportedTransports()Get names of available transport types from Push server. |
java.lang.String |
getVersion()Get version of Push API. |
void |
removeStatusListener()Unregister the status listener registered by setStatusListener() |
void |
setProxy(java.lang.String host, int port)If Push client machine is inside firewall and Push Server is outside firewall, user may need to tell Push client his/her HTTP proxy settings. |
void |
setProxy(java.lang.String host, int port, java.lang.String username, java.lang.String password)If Push client machine is inside firewall and Push Server is outside firewall, user may need to tell Push client his/her HTTP proxy settings. |
void |
setStatusListener(StatusListener listener)Registering StatusListener to get realtime message status updates for local Push. |
void |
setStatusListener(StatusListener listener, java.lang.String callbackHost, int port)Registering StatusListener to get realtime message status updates for remote Push clients. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PushClientBase(java.lang.String messagingGatewayURL,
java.lang.String username,
java.lang.String password)
| Method Detail |
public java.lang.String getServerVersion()
throws PushException
PushException
public java.lang.String[] getSupportedTransports()
throws PushException
PushExceptionpublic java.lang.String getVersion()
public void removeStatusListener()
throws PushException
PushException
public void setProxy(java.lang.String host,
int port)
host - host name of proxy For example: proxy.company.comport - port number of the proxy. For example: 80
public void setProxy(java.lang.String host,
int port,
java.lang.String username,
java.lang.String password)
host - host name of proxy For example: proxy.company.comport - port number of the proxy. For example: 80username - username of the proxy serverpassword - password of the username on proxy server.
public void setStatusListener(StatusListener listener)
throws PushException
listener - the status listener.PushException
public void setStatusListener(StatusListener listener,
java.lang.String callbackHost,
int port)
throws PushException
listener - the status listener.callbackHost - is the machine name of Push client which will be used by Push Server for callback. For example: client.foo.comport - TCP port number which Push client will be listening to.PushException
|
Oracle Application Server Wireless Java API Reference B14043-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||