com.noelios.restlet.local
Class FileClientHelper

java.lang.Object
  extended by org.restlet.util.Helper
      extended by com.noelios.restlet.ConnectorHelper
          extended by com.noelios.restlet.ClientHelper
              extended by com.noelios.restlet.local.LocalClientHelper
                  extended by com.noelios.restlet.local.FileClientHelper
Direct Known Subclasses:
WarClientHelper

public class FileClientHelper
extends LocalClientHelper

Connector to the file resources accessible

Author:
Jerome Louvel (contact@noelios.com), Thierry Boileau

Constructor Summary
FileClientHelper(Client client)
          Constructor.
 
Method Summary
 void handle(Request request, Response response)
          Handles a call.
protected  void handleFile(Request request, Response response, String path)
          Handles a call for the FILE protocol.
 
Methods inherited from class com.noelios.restlet.local.LocalClientHelper
getMetadataService, getTimeToLive, updateMetadata
 
Methods inherited from class com.noelios.restlet.ClientHelper
getClient, getContext, getLogger, getParameters
 
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

FileClientHelper

public FileClientHelper(Client client)
Constructor.

Parameters:
client - The client to help.
Method Detail

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.

handleFile

protected void handleFile(Request request,
                          Response response,
                          String path)
Handles a call for the FILE protocol.

Parameters:
request - The request to handle.
response - The response to update.
path - The file or directory path.


Copyright © 2005-2007 Noelios Consulting.