public class LogFilter extends Filter
Modifier and Type | Field and Description |
---|---|
protected LogService |
logService
The log service.
|
Constructor and Description |
---|
LogFilter(Context context,
LogService logService)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
afterHandle(Request request,
Response response)
Allows filtering after processing by the next Restlet.
|
protected int |
beforeHandle(Request request,
Response response)
Allows filtering before processing by the next Restlet.
|
doHandle, getNext, handle, hasNext, setNext, setNext, start, stop
createFinder, finalize, getApplication, getAuthor, getContext, getDescription, getFinderClass, getLogger, getName, getOwner, handle, handle, handle, isStarted, isStopped, setAuthor, setContext, setDescription, setFinderClass, setName, setOwner
protected volatile LogService logService
public LogFilter(Context context, LogService logService)
context
- The context.logService
- The log service descriptor.protected void afterHandle(Request request, Response response)
afterHandle
in class Filter
request
- The request to handle.response
- The response to update.protected int beforeHandle(Request request, Response response)
beforeHandle
in class Filter
request
- The request to handle.response
- The response to update.Copyright © 2005-2020 Restlet.