com.noelios.restlet.ext.simple
Class SimpleProtocolHandler

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

public class SimpleProtocolHandler
extends java.lang.Object
implements simple.http.ProtocolHandler

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

Author:
Jerome Louvel

Constructor Summary
SimpleProtocolHandler(SimpleServerHelper helper)
          Constructor.
 
Method Summary
 SimpleServerHelper getHelper()
          Returns the delegate Restlet server helper.
 void handle(simple.http.Request request, simple.http.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(simple.http.Request request,
                   simple.http.Response response)
Handles a Simple request/response transaction.

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


Copyright © 2005-2008 Noelios Technologies.