|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IConnection
Manages connections & requests with a server.
Method Summary | |
---|---|
void |
connect()
Connects to the host with the already-defined host & port. |
void |
connect(java.lang.String host)
Connects to the given host with the default port. |
void |
connect(java.lang.String host,
int port)
Connects to the given host at the given port. |
base.connection.Response |
request(java.lang.String method,
java.lang.String path,
java.util.Map<java.lang.String,java.lang.String> headers,
java.util.Map<java.lang.String,java.lang.String> params,
java.lang.Object data)
Makes a request to this connection. |
Method Detail |
---|
void connect()
void connect(java.lang.String host)
host
- is the host to connect tovoid connect(java.lang.String host, int port)
host
- is the host to connect toport
- is the host's port to connect tobase.connection.Response request(java.lang.String method, java.lang.String path, java.util.Map<java.lang.String,java.lang.String> headers, java.util.Map<java.lang.String,java.lang.String> params, java.lang.Object data)
method
- defines the operation to perform (i.e. GET, DELETE, PUT, POST)path
- is the path to the resource (e.g. /john.doe/images/1)headers
- are the headers to include with the requestparams
- are the parameters to include with the requestdata
- is the body data to include with the request
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |