com.noelios.restlet.ext.simple
Class SimpleProtocolHandler

java.lang.Object
  extended by com.noelios.restlet.ext.simple.SimpleProtocolHandler
All Implemented Interfaces:
ProtocolHandler

public class SimpleProtocolHandler
extends Object
implements ProtocolHandler

Simple protocol handler delegating the calls to the Restlet server helper.

Author:
Jerome Louvel (contact@noelios.com) Noelios Consulting

Constructor Summary
SimpleProtocolHandler(SimpleServerHelper helper)
          Constructor.
 
Method Summary
 SimpleServerHelper getHelper()
          Returns the delegate Restlet server helper.
 void handle(Request request, Response response)
          Handles a Simple request/response transaction.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleProtocolHandler

public SimpleProtocolHandler(SimpleServerHelper helper)
Constructor.

Parameters:
helper - The delegate Restlet server helper.
Method Detail

getHelper

public SimpleServerHelper getHelper()
Returns the delegate Restlet server helper.

Returns:
The delegate Restlet server helper.

handle

public void handle(Request request,
                   Response response)
Handles a Simple request/response transaction.

Specified by:
handle in interface ProtocolHandler
Parameters:
request - The Simple request.
response - The Simple response.


Copyright © 2005-2007 Noelios Consulting.