com.noelios.restlet
Class ConnectorHelper

java.lang.Object
  extended by org.restlet.util.Helper
      extended by com.noelios.restlet.ConnectorHelper
Direct Known Subclasses:
ClientHelper, ServerHelper

public class ConnectorHelper
extends Helper

Base connector helper.

Author:
Jerome Louvel (contact@noelios.com)

Constructor Summary
ConnectorHelper()
          Constructor.
 
Method Summary
 Context createContext(String loggerName)
          Creates a new context.
 List<Protocol> getProtocols()
          Returns the protocols simultaneously supported.
 void handle(Request request, Response response)
          Handles a call.
 void start()
          Start hook.
 void stop()
          Stop callback.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectorHelper

public ConnectorHelper()
Constructor.

Method Detail

getProtocols

public List<Protocol> getProtocols()
Returns the protocols simultaneously supported.

Returns:
The protocols simultaneously supported.

createContext

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

Specified by:
createContext in class Helper
Parameters:
loggerName - The JDK's logger name to use for contextual logging.
Returns:
The new context.

handle

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

Specified by:
handle in class Helper
Parameters:
request - The request to handle.
response - The response to update.

start

public void start()
           throws Exception
Start hook.

Specified by:
start in class Helper
Throws:
Exception

stop

public void stop()
          throws Exception
Stop callback.

Specified by:
stop in class Helper
Throws:
Exception


Copyright © 2005-2007 Noelios Consulting.