org.norther.tammi.spray.media
Interface TemporaryContentKeyFilter

All Superinterfaces:
Container, ContainerFilter, Filter, KeyFilter, MediaContentFilter, TerminationFilter
All Known Implementing Classes:
DefaultTemporaryContentKeyFilter

public interface TemporaryContentKeyFilter
extends MediaContentFilter, KeyFilter

An interface to filters processing requests where a specific parameter key value refers to temporary content deleted after response.

This interface can't extend the MediaContentKeyFilter to allow inclusion of both of them into the same pipe.

Author:
Ilkka Priha

Method Summary
 int getTemporaryExpirationTime()
          Gets the temporary expiration time in seconds.
 void setTemporaryContent(String path, byte[] content)
          Sets temporary content to this filter.
 void setTemporaryExpirationTime(int t)
          Sets the temporary expiration time in seconds.
 
Methods inherited from interface org.norther.tammi.spray.media.MediaContentFilter
clearFixedPaths, fixedKeySet, getFixedPath, removeFixedPath, setFixedPath
 
Methods inherited from interface org.norther.tammi.core.base.Container
clear, containsKey, get, getContainerKey, getContainerKey, getContainerKey, getMBean, getMBeanInterface, getMBeanInterface, getObjectName, getObjectNames, getQueryPattern, registryKeySet, registryKeySet, registryKeySet, registryKeySet, registryMap, registrySize, remove, setMBeanInterface, setQueryPattern, setQueryPattern
 
Methods inherited from interface javax.servlet.Filter
destroy, doFilter, init
 
Methods inherited from interface javax.servlet.Filter
destroy, doFilter, init
 
Methods inherited from interface org.norther.tammi.spray.filter.KeyFilter
getKey, getKeyValue, getKeyValues, isLinkedKey, setKey, setLinkedKey
 

Method Detail

getTemporaryExpirationTime

int getTemporaryExpirationTime()
Gets the temporary expiration time in seconds.

Returns:
the secs.

setTemporaryExpirationTime

void setTemporaryExpirationTime(int t)
Sets the temporary expiration time in seconds.

Parameters:
t - the secs.

setTemporaryContent

void setTemporaryContent(String path,
                         byte[] content)
Sets temporary content to this filter.

Parameters:
path - the content path.
content - the content.


Copyright © 2004 The Norther Organization. All rights reserved.