public abstract class ChainHelper<T extends Restlet> extends RestletHelper<T>
Constructor and Description |
---|
ChainHelper(T helped)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addFilter(Filter filter)
Adds a new filter to the chain.
|
void |
clear()
Clears the chain.
|
protected Restlet |
getFirst()
Returns the first Restlet.
|
protected Filter |
getLast()
Returns the last Filter.
|
void |
handle(Request request,
Response response)
Handles a call.
|
protected void |
setFirst(Restlet first)
Sets the first Restlet.
|
protected void |
setLast(Filter last)
Sets the last Filter.
|
protected void |
setNext(Restlet next)
Sets the next Restlet after the chain.
|
getAttributes, getContext, getHelped, getHelpedParameters, getLogger, getMetadataService, setHelped, start, stop, update
public ChainHelper(T helped)
helped
- The helped Restlet.protected void addFilter(Filter filter)
filter
- The filter to add.public void clear()
protected Restlet getFirst()
protected Filter getLast()
public void handle(Request request, Response response)
RestletHelper
handle
in class RestletHelper<T extends Restlet>
request
- The request to handle.response
- The response to update.protected void setFirst(Restlet first)
first
- The first Restlet.protected void setLast(Filter last)
last
- The last Filter.protected void setNext(Restlet next)
next
- The Restlet to process after the chain.Copyright © 2005-2012. All Rights Reserved.