rp.core
Class HttpProvider
java.lang.Object
|
+--rp.core.SMSProvider
|
+--rp.core.HttpProvider
- Direct Known Subclasses:
- FreeSMSProvider, SMSDEProvider
- public abstract class HttpProvider
- extends SMSProvider
Connect via snooped HTTP protocol
Method Summary |
protected void |
closeWebServer()
|
protected void |
flush()
|
protected boolean |
getDebug()
|
protected void |
openWebServer(java.lang.String host)
|
protected void |
read()
Read until EOF is reached |
protected java.lang.String |
read(java.lang.String search)
Read lines from input stream until the end of the HTMl file
is indicated (that's should rather be done via Content-Length) |
protected void |
setDebug(boolean d)
|
protected void |
write(java.lang.String s)
|
protected void |
writeln(java.lang.String s)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
setDebug
protected void setDebug(boolean d)
getDebug
protected boolean getDebug()
read
protected java.lang.String read(java.lang.String search)
throws java.io.IOException
- Read lines from input stream until the end of the HTMl file
is indicated (that's should rather be done via Content-Length)
- Parameters:
search
- string to look for in input stream- Returns:
- matching line or null
read
protected void read()
throws java.io.IOException
- Read until EOF is reached
writeln
protected void writeln(java.lang.String s)
throws java.io.IOException
flush
protected void flush()
write
protected void write(java.lang.String s)
throws java.io.IOException
openWebServer
protected void openWebServer(java.lang.String host)
throws java.io.IOException
closeWebServer
protected void closeWebServer()
throws java.io.IOException