public interface TvIo
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
IF_VERSION
Interface version
|
static int |
MAX_MODE
Max valid mode
|
static int |
MODE_CHANNEL
EventWeb Backchannel
|
static int |
MODE_GET
HTTP Get
|
static int |
MODE_HEAD
HTTP Head
|
static int |
MODE_NONE
No mode specified.
|
static int |
MODE_POST
HTTP Post
|
static int |
STS_CLOSED
Closed by client
|
static int |
STS_CLOSING
(Client) Closing connection
|
static int |
STS_DISCONN
Disconnected by server
|
static int |
STS_ERROR
Error condition
|
static int |
STS_INIT
Initializing
|
static int |
STS_LISTENING
Listening for messages
|
static int |
STS_OPEN
Open to send and receive
|
static int |
STS_OPENING
Opening connection
|
static int |
STS_WARNING
Warning condition
|
Modifier and Type | Method and Description |
---|---|
boolean |
closeUrl()
Disconnect from URL.
|
boolean |
dataIsAvailable()
Determine if data is available.
|
int |
getStatus()
Get connection status.
|
java.lang.String[] |
getTvPair()
Get the next tag-value pair.
|
int |
openUrl(java.lang.String srcUrlName)
Connect to URL using the default communication mode.
|
int |
openUrl(java.lang.String srcUrlName,
int mode)
Connect to URL.
|
int |
openUrl(java.net.URL srcUrl)
Connect to URL using the default communication mode.
|
int |
openUrl(java.net.URL srcUrl,
int mode)
Connect to URL.
|
boolean |
sendMsg(java.lang.String msg)
Send message.
|
static final java.lang.String IF_VERSION
static final int MODE_NONE
static final int MODE_HEAD
static final int MODE_GET
static final int MODE_POST
static final int MODE_CHANNEL
static final int MAX_MODE
static final int STS_ERROR
static final int STS_WARNING
static final int STS_INIT
static final int STS_DISCONN
static final int STS_CLOSED
static final int STS_CLOSING
static final int STS_OPENING
static final int STS_OPEN
static final int STS_LISTENING
int openUrl(java.lang.String srcUrlName)
srcUrlName
- The URL to connect toint openUrl(java.lang.String srcUrlName, int mode)
srcUrlName
- The URL to connect tomode
- The communication mode for the channel.
(One of the MODE_ values.)int openUrl(java.net.URL srcUrl)
srcUrl
- The URL to connect toint openUrl(java.net.URL srcUrl, int mode)
srcUrl
- The URL to connect tomode
- The communication mode for the channel.
(One of the MODE_ values.)boolean closeUrl()
java.lang.String[] getTvPair()
boolean sendMsg(java.lang.String msg)
msg
- The message to send.
This should be formatted as one or more urlencoded
tag-value pairs.boolean dataIsAvailable()
int getStatus()