|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.restlet.util.Helper<T>
com.noelios.restlet.ChainHelper<T>
public abstract class ChainHelper<T extends Restlet>
Chain helper serving as base class for Application and Component helpers.
| Constructor Summary | |
|---|---|
ChainHelper(T helped)
Constructor. |
|
| Method Summary | |
|---|---|
protected void |
addFilter(Filter filter)
Adds a new filter to the chain. |
void |
clear()
Clears the chain. |
protected Filter |
createLogFilter(Context context,
LogService logService)
Creates a new log filter. |
protected Restlet |
getFirst()
Returns the first Restlet. |
protected Filter |
getLast()
Returns the last Filter. |
void |
handle(Request request,
Response response)
|
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. |
| Methods inherited from class org.restlet.util.Helper |
|---|
getAttributes, getContext, getHelped, getHelpedParameters, getLogger, setHelped, start, stop, update |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ChainHelper(T helped)
helped - The helped Restlet.| Method Detail |
|---|
protected void addFilter(Filter filter)
filter - The filter to add.public void clear()
protected Filter createLogFilter(Context context,
LogService logService)
context - The context.logService - The log service descriptor.
protected Restlet getFirst()
protected Filter getLast()
public void handle(Request request,
Response response)
handle in class Helper<T extends Restlet>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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||