com.noelios.restlet
Class ServerHelper

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

public class ServerHelper
extends ConnectorHelper

Server connector helper.

Author:
Jerome Louvel (contact@noelios.com)

Constructor Summary
ServerHelper(Server server)
          Constructor.
 
Method Summary
 Context getContext()
          Returns the server context.
 Logger getLogger()
          Returns the server logger.
 Series<Parameter> getParameters()
          Returns the server parameters.
 Server getServer()
          Returns the server to help.
 void handle(Request request, Response response)
          Handles a call.
 void setServer(Server server)
          Sets the server to help.
 
Methods inherited from class com.noelios.restlet.ConnectorHelper
createContext, getProtocols, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerHelper

public ServerHelper(Server server)
Constructor.

Parameters:
server - The client to help.
Method Detail

getServer

public Server getServer()
Returns the server to help.

Returns:
The server to help.

getParameters

public Series<Parameter> getParameters()
Returns the server parameters.

Returns:
The server parameters.

getLogger

public Logger getLogger()
Returns the server logger.

Returns:
The server logger.

getContext

public Context getContext()
Returns the server context.

Returns:
The server context.

handle

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

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

setServer

public void setServer(Server server)
Sets the server to help.

Parameters:
server - The server to help.


Copyright © 2005-2007 Noelios Technologies.