|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.io.InputStream
|
+--java.io.DataInputStream
|
+--net.rim.device.api.io.http.PushInputStream
|
+--net.rim.device.api.io.http.TCPPushInputStream
A push input stream specifically for use with TCP/IP connections.
| 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_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 java.io.DataInputStream |
available, close, mark, markSupported, read, read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, readUTF, 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 - HttpServerConnection received from the invocation of
HttpServerSocketConnectionBase.acceptAndOpen().in - Input stream associated with the server connection.| Method Detail |
public String getSource()
getSource in class PushInputStreampublic int getConnectionType()
getConnectionType in class PushInputStreamPushInputStream.CONNECTION_IPPP_UID.
public void decline(int reasonCode)
throws IOException
decline in class PushInputStreamreasonCode - Code for the reason why the push was declined.
public void accept()
throws IOException
Indicates the push acceptance to the server if the bearer supports acknowledgement.
accept in class PushInputStreampublic boolean isChannelEncrypted()
isChannelEncrypted in class PushInputStreampublic void setDoWAPResponse(boolean value)
value - Whether or not to send the WAP Push Status response.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2004 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.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.