HandlerWrapper acts as a Handler but delegates the handle method and
life cycle events to a delegate. This is primarily used to implement the Decorator pattern.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| protected void | |
| protected void | |
| protected Object | expandChildren(Object list, Class<T> byClass)
Overrides org. |
| public Handler | |
| public void | handle(String
The target of the request - either a URI or a name. target, HttpServletRequest The request either as the request, HttpServletResponse Request
object or a wrapper of that request. The HttpConnection#getCurrentConnection()
method can be used access the Request object if required.The response as the response, int dispatch)Response
object or a wrapper of that request. The HttpConnection#getCurrentConnection()
method can be used access the Response object if required.Implements org. |
| public void | |
| public void | |
| public void | setServer(Server server)
Overrides org. Implements org. |
| _handler | back to summary |
|---|---|
| private Handler _handler | |
| HandlerWrapper | back to summary |
|---|---|
| public HandlerWrapper() | |
| addHandler | back to summary |
|---|---|
| public void addHandler(Handler handler) Implements org. Add a handler. This implementation of addHandler calls setHandler with the passed handler. If this HandlerWrapper had a previous wrapped handler, then it is passed to a call to addHandler on the passed handler. Thus this call can add a handler in a chain of wrapped handlers. | |
| doStart | back to summary |
|---|---|
| protected void doStart() throws Exception Overrides org. | |
| doStop | back to summary |
|---|---|
| protected void doStop() throws Exception | |
| expandChildren | back to summary |
|---|---|
| protected Object expandChildren(Object list, Class<T> byClass) Overrides org. | |
| getHandler | back to summary |
|---|---|
public Handler getHandler()
| |
| handle | back to summary |
|---|---|
| public void handle(String target, HttpServletRequest request, HttpServletResponse response, int dispatch) throws IOException, ServletException Implements org. Doc from org. Handle a request.
| |
| removeHandler | back to summary |
|---|---|
| public void removeHandler(Handler handler) Implements org. | |
| setHandler | back to summary |
|---|---|
| public void setHandler(Handler handler) | |
| setServer | back to summary |
|---|---|
| public void setServer(Server server) Overrides org. Implements org. | |