|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.gwt.Uniform
org.restlet.gwt.Restlet
org.restlet.gwt.Connector
org.restlet.gwt.Client
public class Client
Connector acting as a generic client. It internally uses one of the available connectors registered with the current Restlet implementation.
Constructor Summary | |
---|---|
Client(Context context,
java.util.List<Protocol> protocols)
Constructor. |
|
Client(Context context,
Protocol protocol)
Constructor. |
|
Client(java.util.List<Protocol> protocols)
Constructor. |
|
Client(Protocol protocol)
Constructor. |
|
Client(java.lang.String protocolName)
Constructor. |
Method Summary | |
---|---|
int |
getConnectTimeout()
Returns the connection timeout. |
void |
handle(Request request,
Response response,
Callback callback)
Handles a call. |
void |
setConnectTimeout(int connectTimeout)
Sets the connection timeout. |
void |
start()
Starts the Restlet. |
void |
stop()
Stops the Restlet. |
Methods inherited from class org.restlet.gwt.Connector |
---|
getProtocols, setProtocols |
Methods inherited from class org.restlet.gwt.Restlet |
---|
getContext, isStarted, isStopped, setContext |
Methods inherited from class org.restlet.gwt.Uniform |
---|
delete, delete, get, get, handle, head, head, options, options, post, post, post, put, put, put |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Client(Context context, java.util.List<Protocol> protocols)
context
- The context.protocols
- The connector protocols.public Client(Context context, Protocol protocol)
context
- The context.protocol
- The connector protocol.public Client(java.util.List<Protocol> protocols)
protocols
- The connector protocols.public Client(Protocol protocol)
protocol
- The connector protocol.public Client(java.lang.String protocolName)
protocolName
- The connector protocol.Method Detail |
---|
public int getConnectTimeout()
public void handle(Request request, Response response, Callback callback)
Restlet
handle
in class Restlet
request
- The request to handle.response
- The response to update.callback
- The callback invoked upon request completion.public void setConnectTimeout(int connectTimeout)
connectTimeout
- The connection timeout.public void start() throws java.lang.Exception
Restlet
start
in class Restlet
java.lang.Exception
public void stop() throws java.lang.Exception
Restlet
stop
in class Restlet
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |