Oracle Application Server Wireless Java API Reference
B14043-01


oracle.panama.messaging.push
Class DeliveryChannel

java.lang.Object
  extended byoracle.panama.messaging.push.DeliveryChannel

All Implemented Interfaces:
java.io.Serializable

public class DeliveryChannel
extends java.lang.Object
implements java.io.Serializable
See Also:
Serialized Form

Constructor Summary
DeliveryChannel()
DeliveryChannel(java.lang.String transport)
construct a delivery channel object which has only transport type.
DeliveryChannel(java.lang.String transportType, int timeout, int successStatusCode)
construct a delivery channel object which has a transport type, a time out parameter and a success status code.

Method Summary
boolean equals(java.lang.Object other)
int getSuccessStatusCode()
int getTimeout()
java.lang.String getTransportType()
int hashCode()
void setSuccessStatusCode(int successStatusCode)
set expected status code of this delivery channel
void setTimeout(int timeout)
set timeout parameter of this delivery channel
void setTransportType(java.lang.String transportType)
set the transport type of this delivery channel.
java.lang.String toString()

Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait

Constructor Detail

DeliveryChannel

public DeliveryChannel()

DeliveryChannel

public DeliveryChannel(java.lang.String transport)
construct a delivery channel object which has only transport type.

DeliveryChannel

public DeliveryChannel(java.lang.String transportType,
                       int timeout,
                       int successStatusCode)
construct a delivery channel object which has a transport type, a time out parameter and a success status code. PushServer will monitor the delivery channel after sending out a message to the delivery channel and notify Push client if the expected status code is not received before timeout.
Parameters:
transportType - Transport type name defined in oracle.panama.messaging.common.TransportType class
timeout - Timeout parameter is in second. It must be larger than 0.
successStatusCode - Expected status code. Status code must be defined in oracle.panama.messaging.push.Status.

Method Detail

equals

public boolean equals(java.lang.Object other)

getSuccessStatusCode

public int getSuccessStatusCode()

getTimeout

public int getTimeout()

getTransportType

public java.lang.String getTransportType()

hashCode

public int hashCode()

setSuccessStatusCode

public void setSuccessStatusCode(int successStatusCode)
set expected status code of this delivery channel
Parameters:
successStatusCode - Expected status code. Status code must be defined in oracle.panama.messaging.push.Status.

setTimeout

public void setTimeout(int timeout)
set timeout parameter of this delivery channel
Parameters:
timeout - Timeout parameter is in second. It must be larger than 0.

setTransportType

public void setTransportType(java.lang.String transportType)
set the transport type of this delivery channel.
Parameters:
transportType - Transport type name defined in oracle.panama.messaging.common.TransportType class

toString

public java.lang.String toString()

Oracle Application Server Wireless Java API Reference
B14043-01


Copyright © 2004 Oracle Corporation. All Rights Reserved.