Package org.restlet.engine
Class CompositeHelper<T extends Restlet>
java.lang.Object
org.restlet.engine.Helper
org.restlet.engine.RestletHelper<T>
org.restlet.engine.CompositeHelper<T>
- Direct Known Subclasses:
ApplicationHelper,ComponentHelper
Chain helper serving as base class for Application and Component helpers.
- Author:
- Jerome Louvel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddInboundFilter(Filter filter) Adds a new inbound filter to the chain.protected voidaddOutboundFilter(Filter filter) Adds a new outbound filter to the chain.voidclear()Clears the chain.Returns the first inbound filter.Returns the first outbound filter.protected RestletReturns the next Restlet in the inbound chain.protected FilterReturns the last inbound filter.protected FilterReturns the last outbound filter.Returns the next Restlet in the outbound chain.voidHandles a call.protected voidsetFirstInboundFilter(Filter firstInboundFilter) Sets the first inbound filter.protected voidsetFirstOutboundFilter(Filter firstOutboundFilter) Sets the first outbound filter.protected voidsetInboundNext(Restlet next) Sets the next Restlet after the inbound chain.protected voidsetLastInboundFilter(Filter last) Sets the last inbound filter.protected voidsetLastOutboundFilter(Filter last) Sets the last outbound filter.protected voidsetOutboundNext(Restlet next) Sets the next Restlet after the outbound chain.Methods inherited from class org.restlet.engine.RestletHelper
getAttributes, getContext, getHelped, getHelpedParameters, getLogger, getMetadataService, setHelped, start, stop, update
-
Constructor Details
-
CompositeHelper
Constructor.- Parameters:
helped- The helped Restlet.
-
-
Method Details
-
addInboundFilter
Adds a new inbound filter to the chain.- Parameters:
filter- The inbound filter to add.
-
addOutboundFilter
Adds a new outbound filter to the chain.- Parameters:
filter- The outbound filter to add.
-
clear
public void clear()Clears the chain. Sets the first and last filters to null. -
getFirstInboundFilter
Returns the first inbound filter.- Returns:
- The first inbound filter.
-
getFirstOutboundFilter
Returns the first outbound filter.- Returns:
- The first outbound filter.
-
getInboundNext
Returns the next Restlet in the inbound chain.- Returns:
- The next Restlet in the inbound chain.
-
getLastInboundFilter
Returns the last inbound filter.- Returns:
- the last inbound filter.
-
getLastOutboundFilter
Returns the last outbound filter.- Returns:
- the last outbound filter.
-
getOutboundNext
Returns the next Restlet in the outbound chain.- Returns:
- The next Restlet in the outbound chain.
-
handle
Description copied from class:RestletHelperHandles a call.- Overrides:
handlein classRestletHelper<T extends Restlet>- Parameters:
request- The request to handle.response- The response to update.
-
setFirstInboundFilter
Sets the first inbound filter.- Parameters:
firstInboundFilter- The first inbound filter.
-
setFirstOutboundFilter
Sets the first outbound filter.- Parameters:
firstOutboundFilter- The first outbound filter.
-
setInboundNext
Sets the next Restlet after the inbound chain.- Parameters:
next- The Restlet to process after the inbound chain.
-
setLastInboundFilter
Sets the last inbound filter.- Parameters:
last- The last inbound filter.
-
setLastOutboundFilter
Sets the last outbound filter.- Parameters:
last- The last outbound filter.
-
setOutboundNext
Sets the next Restlet after the outbound chain.- Parameters:
next- The Restlet to process after the outbound chain.
-