homegear
Class HomeGearSocket
java.lang.Object
homegear.HomeGearSocket
public class HomeGearSocket
- extends java.lang.Object
This class is responsible for the communication with the homegear server.
It supports
- binary RPC requests with header (ssl with authorization as recommended)
- binary responses
- error responses
A Usage demonstration is given in main(String[])
.
Constructor Summary |
HomeGearSocket(java.lang.String host,
int port,
java.lang.String user_,
java.lang.String pw_,
java.lang.String cert)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HomeGearSocket
public HomeGearSocket(java.lang.String host,
int port,
java.lang.String user_,
java.lang.String pw_,
java.lang.String cert)
throws java.io.IOException
- Throws:
java.io.IOException
request
public void request(java.lang.String method,
java.lang.Object... params)
throws java.lang.IllegalArgumentException,
java.io.IOException
- Throws:
java.lang.IllegalArgumentException
java.io.IOException
response
public HomeGearResponse response()
throws java.io.IOException,
java.lang.IllegalArgumentException
- Throws:
java.io.IOException
java.lang.IllegalArgumentException
main
public static void main(java.lang.String[] args)