com.noelios.restlet.component
Class ComponentHelper

java.lang.Object
  extended by org.restlet.util.Helper<T>
      extended by com.noelios.restlet.ChainHelper<Component>
          extended by com.noelios.restlet.component.ComponentHelper

public class ComponentHelper
extends ChainHelper<Component>

Component helper.

Author:
Jerome Louvel

Constructor Summary
ComponentHelper(Component component)
          Constructor.
 
Method Summary
protected  StatusFilter createStatusFilter(Component component)
          Creates a new status filter.
 ClientRouter getClientRouter()
          Returns the internal client router.
 ServerRouter getServerRouter()
          Returns the internal host router.
 void setServerRouter(ServerRouter serverRouter)
          Sets the internal server router.
 void start()
           
 void stop()
           
 void update()
          Set the new server router that will compute the new routes when the first request will be received (automatic start).
 
Methods inherited from class com.noelios.restlet.ChainHelper
addFilter, clear, createLogFilter, getFirst, getLast, handle, setFirst, setLast, setNext
 
Methods inherited from class org.restlet.util.Helper
getAttributes, getContext, getHelped, getHelpedParameters, getLogger, setHelped
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentHelper

public ComponentHelper(Component component)
Constructor.

Parameters:
component - The helper component.
Method Detail

createStatusFilter

protected StatusFilter createStatusFilter(Component component)
Creates a new status filter. Allows overriding.

Parameters:
component - The parent component.
Returns:
The new status filter.

getClientRouter

public ClientRouter getClientRouter()
Returns the internal client router.

Returns:
the internal client router.

getServerRouter

public ServerRouter getServerRouter()
Returns the internal host router.

Returns:
the internal host router.

setServerRouter

public void setServerRouter(ServerRouter serverRouter)
Sets the internal server router.

Parameters:
serverRouter - The internal host router.

start

public void start()
           throws java.lang.Exception
Specified by:
start in class Helper<Component>
Throws:
java.lang.Exception

stop

public void stop()
          throws java.lang.Exception
Specified by:
stop in class Helper<Component>
Throws:
java.lang.Exception

update

public void update()
            throws java.lang.Exception
Set the new server router that will compute the new routes when the first request will be received (automatic start).

Specified by:
update in class Helper<Component>
Throws:
java.lang.Exception


Copyright © 2005-2008 Noelios Technologies.