org.restlet
Class Client

java.lang.Object
  extended by org.restlet.Uniform
      extended by org.restlet.Restlet
          extended by org.restlet.Connector
              extended by org.restlet.Client

public class Client
extends Connector

Connector acting as a generic client. It internally uses one of the available connectors registered with the current Restlet implementation.

Author:
Jerome Louvel (contact@noelios.com)

Constructor Summary
Client(Context context, List<Protocol> protocols)
          Constructor.
Client(Context context, Protocol protocol)
          Constructor.
Client(List<Protocol> protocols)
          Constructor.
Client(Protocol protocol)
          Constructor.
 
Method Summary
 void handle(Request request, Response response)
          Handles a call.
 void start()
          Starts the Restlet.
 void stop()
          Stops the Restlet.
 
Methods inherited from class org.restlet.Connector
getProtocols
 
Methods inherited from class org.restlet.Restlet
getContext, getLogger, init, isStarted, isStopped, setContext
 
Methods inherited from class org.restlet.Uniform
delete, delete, get, get, handle, head, head, options, options, post, post, put, put
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Client

public Client(Context context,
              List<Protocol> protocols)
Constructor.

Parameters:
context - The context.
protocols - The connector protocols.

Client

public Client(Context context,
              Protocol protocol)
Constructor.

Parameters:
context - The context.
protocol - The connector protocol.

Client

public Client(List<Protocol> protocols)
Constructor.

Parameters:
protocols - The connector protocols.

Client

public Client(Protocol protocol)
Constructor.

Parameters:
protocol - The connector protocol.
Method Detail

handle

public void handle(Request request,
                   Response response)
Handles a call.

Overrides:
handle in class Restlet
Parameters:
request - The request to handle.
response - The response to update.

start

public void start()
           throws Exception
Description copied from class: Restlet
Starts the Restlet.

Overrides:
start in class Restlet
Throws:
Exception

stop

public void stop()
          throws Exception
Description copied from class: Restlet
Stops the Restlet.

Overrides:
stop in class Restlet
Throws:
Exception


Copyright © 2005-2007 Noelios Technologies.