org.norther.tammi.spray.media
Interface ContentFilter

All Superinterfaces:
Filter
All Known Subinterfaces:
ContentKeyFilter, MediaContentFilter<M>, MediaContentKeyFilter<M>, ServiceFilter<F>, ServletEngine
All Known Implementing Classes:
AbstractMediaContentKeyFilter, DefaultContentFilter, DefaultContentKeyFilter, DefaultMediaContentFilter, DefaultMediaContentKeyFilter, DefaultServiceFilter, DefaultServletEngine

public interface ContentFilter
extends Filter

Extends filter with content path support.

Version:
$Id: ContentFilter.java,v 1.27 2009/09/28 15:08:26 cvsimp Exp $
Author:
Ilkka Priha

Method Summary
 String getContentPath(boolean unparsed, ServletRequest request, ServletResponse response, FilterChain chain)
          Gets the optionally unparsed path info as the content path without any parsed keys and values, if any.
 
Methods inherited from interface javax.servlet.Filter
destroy, doFilter, init
 

Method Detail

getContentPath

String getContentPath(boolean unparsed,
                      ServletRequest request,
                      ServletResponse response,
                      FilterChain chain)
Gets the optionally unparsed path info as the content path without any parsed keys and values, if any. Returns null, if the path is missing or unparsed is true and the path is partially parsed.

Parameters:
unparsed - true for an unparsed path.
request - the request.
response - the response.
chain - the filter chain.
Returns:
the content path or an empty path.


Copyright © 2004 The Norther Organization. All rights reserved.