org.restlet.util
Class Helper

java.lang.Object
  extended by org.restlet.util.Helper

public abstract class Helper
extends Object

Delegate used by API classes to get support from the implementation classes. Note that this is an SPI class that is not intended for public usage.

Author:
Jerome Louvel (contact@noelios.com)

Constructor Summary
Helper()
           
 
Method Summary
abstract  Context createContext(String loggerName)
          Creates a new context.
abstract  void handle(Request request, Response response)
          Handles a call.
abstract  void start()
          Start callback.
abstract  void stop()
          Stop callback.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Helper

public Helper()
Method Detail

createContext

public abstract Context createContext(String loggerName)
Creates a new context.

Parameters:
loggerName - The JDK's logger name to use for contextual logging.
Returns:
The new context.

handle

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

Parameters:
request - The request to handle.
response - The response to update.

start

public abstract void start()
                    throws Exception
Start callback.

Throws:
Exception

stop

public abstract void stop()
                   throws Exception
Stop callback.

Throws:
Exception


Copyright © 2005-2007 Noelios Technologies.