org.norther.tammi.spray.media
Class DefaultCGIBinFilter

java.lang.Object
  extended by org.norther.tammi.core.base.Adaptee
      extended by org.norther.tammi.spray.filter.DefaultFilter
          extended by org.norther.tammi.spray.media.DefaultCGIBinFilter
All Implemented Interfaces:
Serializable, NotificationBroadcaster, NotificationEmitter, Filter, Manageable, MBeanDelegate, TerminationFilter, CGIBinFilter

public class DefaultCGIBinFilter
extends DefaultFilter
implements CGIBinFilter

A default implementation of CGIBinFilter.

Note that this implementation removes the application filter key and value from the path info if present.

Version:
$Id: DefaultCGIBinFilter.java,v 1.11 2009/09/28 15:08:26 cvsimp Exp $
Author:
Ilkka Priha
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.norther.tammi.core.base.Adaptee
ADAPTEE_NOTIF_DESCRIPTION, ADAPTEE_NOTIFICATIONS
 
Fields inherited from interface org.norther.tammi.spray.media.CGIBinFilter
DEFAULT_INDEX
 
Constructor Summary
DefaultCGIBinFilter()
          Constructs a new filter.
 
Method Summary
 void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
           
 String getContentKey()
          Gets the path finder key for resolving content paths.
 String getDefaultIndex()
          Gets the default index file of the filter.
 String getProgramKey()
          Gets the path finder key for resolving program paths.
 void setContentKey(String key)
          Sets the path finder key for resolving content paths.
 void setDefaultIndex(String index)
          Sets the default index file of the filter.
 void setProgramKey(String key)
          Sets the path finder key for resolving program paths.
 
Methods inherited from class org.norther.tammi.spray.filter.DefaultFilter
destroy, getFilterConfig, getRequestMap, getSessionMap, init
 
Methods inherited from class org.norther.tammi.core.base.Adaptee
addAdaptee, addNotificationListener, getAttributeSupport, getBroker, getCanonicalName, getDomain, getFactory, getLoader, getLog, getLog, getMBean, getMBeanServer, getNotificationInfo, getObjectName, getRegistrationTime, getSequenceNumber, hasListeners, isRegistered, postmanaged, premanaged, removeNotificationListener, removeNotificationListener, sendNotification, sendNotification, sendNotification, sendNotification, unmanaged, unregister
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.Filter
destroy, init
 

Constructor Detail

DefaultCGIBinFilter

public DefaultCGIBinFilter()
Constructs a new filter.

Method Detail

getDefaultIndex

public String getDefaultIndex()
Description copied from interface: CGIBinFilter
Gets the default index file of the filter.

Specified by:
getDefaultIndex in interface CGIBinFilter
Returns:
the default index file.

setDefaultIndex

public void setDefaultIndex(String index)
Description copied from interface: CGIBinFilter
Sets the default index file of the filter.

Specified by:
setDefaultIndex in interface CGIBinFilter
Parameters:
index - a default index file.

getProgramKey

public String getProgramKey()
Description copied from interface: CGIBinFilter
Gets the path finder key for resolving program paths.

Specified by:
getProgramKey in interface CGIBinFilter
Returns:
the path finder key.

setProgramKey

public void setProgramKey(String key)
Description copied from interface: CGIBinFilter
Sets the path finder key for resolving program paths. The default key is PathFinderMBean.CGI_BIN.

Specified by:
setProgramKey in interface CGIBinFilter
Parameters:
key - the path finder key.

getContentKey

public String getContentKey()
Description copied from interface: CGIBinFilter
Gets the path finder key for resolving content paths.

Specified by:
getContentKey in interface CGIBinFilter
Returns:
the path finder key.

setContentKey

public void setContentKey(String key)
Description copied from interface: CGIBinFilter
Sets the path finder key for resolving content paths.

Specified by:
setContentKey in interface CGIBinFilter
Parameters:
key - the path finder key.

doFilter

public void doFilter(ServletRequest request,
                     ServletResponse response,
                     FilterChain chain)
              throws ServletException,
                     IOException
Specified by:
doFilter in interface Filter
Overrides:
doFilter in class DefaultFilter
Throws:
ServletException
IOException


Copyright © 2004 The Norther Organization. All rights reserved.