public interface HttpCliChan extends ChanCode
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
IF_VERSION
Interface version
|
MAX_MODE, MODE_CHANNEL, MODE_GET, MODE_HEAD, MODE_NONE, MODE_POST, STS_CLOSED, STS_CLOSING, STS_DISCONN, STS_ERROR, STS_INIT, STS_LISTENING, STS_OPEN, STS_OPENING, STS_WARNING
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.
|
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()