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.
Concurrency note: instances of this class or its subclasses can be invoked by
several threads at the same time and therefore must be thread-safe. You
should be especially careful when storing state in member variables.
- Author:
- Jerome Louvel
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(Context context)
- Constructor.
- Parameters:
context
- The parent context.
beforeHandle
public int beforeHandle(Request request,
Response response)
- Overrides:
beforeHandle
in class Filter
getMetadataService
public MetadataService getMetadataService()
- Returns the metadata service of the parent application.
- Returns:
- The metadata service of the parent application.
getTunnelService
public TunnelService getTunnelService()
- Returns the tunnel service of the parent application.
- Returns:
- The tunnel service of the parent application.
Copyright © 2005-2008 Noelios Technologies.