com.noelios.restlet.application
Class TunnelFilter
java.lang.Object
org.restlet.Uniform
org.restlet.Restlet
org.restlet.Filter
com.noelios.restlet.application.TunnelFilter
public class TunnelFilter
- extends Filter
Filter tunnelling browser calls into full REST calls. The request method can
be changed (via POST requests only) as well as the accepted media types,
languages, encodings and character sets.
- Author:
- Jerome Louvel (contact@noelios.com)
Methods inherited from class org.restlet.Uniform |
delete, delete, get, get, handle, head, head, options, options, post, post, put, put |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TunnelFilter
public TunnelFilter(Application application)
- Constructor.
- Parameters:
application
- The parent application.
getApplication
public Application getApplication()
- Returns the application.
- Returns:
- The application.
beforeHandle
public void beforeHandle(Request request,
Response response)
- Allows filtering before its handling by the target Restlet. Does nothing
by default.
- Overrides:
beforeHandle
in class Filter
- Parameters:
request
- The request to handle.response
- The response to update.
Copyright © 2005-2007 Noelios Consulting.