|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.InputStream
java.io.DataInputStream
net.rim.device.api.io.http.PushInputStream
net.rim.device.api.io.http.TCPPushInputStream
public final class TCPPushInputStream
A push input stream specifically for use with TCP/IP connections.
Field Summary |
---|
Fields inherited from class net.rim.device.api.io.http.PushInputStream |
---|
CONNECTION_IPPP_UID, CONNECTION_IPV4, CONNECTION_SMSC, DECLINE_REASON_USERDCR, DECLINE_REASON_USERDCU, DECLINE_REASON_USERPND, DECLINE_REASON_USERREQ, DECLINE_REASON_USERRFS |
Fields inherited from class java.io.DataInputStream |
---|
in |
Constructor Summary | ||
---|---|---|
|
TCPPushInputStream(HttpServerConnection connection,
InputStream in)
Creates a new TCPPushInputStream instance from a connection. |
Method Summary | ||
---|---|---|
|
void |
accept()
Accepts this push. |
|
void |
decline(int reasonCode)
Declines this push because of the reason provided. |
|
int |
getConnectionType()
Retrieves the connection type for this push. |
|
String |
getSource()
Retrieves the source for this push stream. |
|
boolean |
isChannelEncrypted()
Returns if the channel is encrypted. |
|
void |
setDoWAPResponse(boolean value)
Sets whether or not to do WAP Push Status response. |
Methods inherited from class net.rim.device.api.io.http.PushInputStream |
---|
getSender |
Methods inherited from class java.io.DataInputStream |
---|
available, close, mark, markSupported, read, read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLong, readShort, readUTF, readUTF, readUnsignedByte, readUnsignedShort, reset, skip, skipBytes |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TCPPushInputStream(HttpServerConnection connection, InputStream in)
connection
- An object representing an HTTP connection that
implements the HttpServerConnection
interface.in
- Input stream associated with the server connection.Method Detail |
---|
public String getSource()
getSource
in class PushInputStream
public int getConnectionType()
getConnectionType
in class PushInputStream
PushInputStream.CONNECTION_IPPP_UID
.public void decline(int reasonCode) throws IOException
decline
in class PushInputStream
reasonCode
- Code for the reason why the push was declined.
IOException
public void accept() throws IOException
Indicates the push acceptance to the server if the bearer supports acknowledgement.
accept
in class PushInputStream
IOException
public boolean isChannelEncrypted()
isChannelEncrypted
in class PushInputStream
public void setDoWAPResponse(boolean value)
value
- Whether or not to send the WAP Push Status response.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 1999-2010 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark of Sun Microsystems, Inc.