|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.norther.tammi.core.base.Adaptee
org.norther.tammi.spray.filter.DefaultFilter
org.norther.tammi.spray.protocol.DefaultHttpRelayFilter
public class DefaultHttpRelayFilter
A default implementation of HttpRelayFilter.
| Field Summary |
|---|
| Fields inherited from class org.norther.tammi.core.base.Adaptee |
|---|
ADAPTEE_NOTIF_DESCRIPTION, ADAPTEE_NOTIFICATIONS |
| Fields inherited from interface org.norther.tammi.core.base.MBeanDelegate |
|---|
ARRAY_TYPE, OBJECT_TYPE, PRIMITIVE_TYPE, STRING_TYPE |
| Constructor Summary | |
|---|---|
DefaultHttpRelayFilter()
Constructs a new filter. |
|
| Method Summary | |
|---|---|
void |
addProperty(int index,
String key,
String value)
Inserts a multivalued property at the specified index. |
void |
addProperty(String key,
String value)
Adds a multivalued property. |
void |
clearProperties()
Clears all properties. |
boolean |
containsProperty(String key)
Checks whether a property is defined. |
void |
doFilter(ServletRequest request,
ServletResponse response,
FilterChain chain)
|
String |
getConfigKey()
Gets the path finder key for resolving configuration paths. |
String[] |
getProperties(String key)
Gets a multivalued property. |
String |
getProperty(String key)
Gets a property. |
String |
getPropertyFilePath()
Gets the property file path. |
int |
indexOfProperty(String key,
String value)
Returns the index of a multivalued property value. |
protected String |
normalize(String uri)
Normalizes the specified URI. |
OrderedMap |
propertyMap()
Returns a map of properties. |
OrderedMap |
propertyMap(String prefix)
Returns a map of prefixed properties. |
Object |
removeProperty(String key)
Removes a property. |
boolean |
removeProperty(String key,
String value)
Removes a multivalued property. |
void |
setConfigKey(String key)
Sets the path finder key for resolving configuration paths. |
Object |
setProperties(String key,
String[] values)
Sets a multivalued property. |
Object |
setProperty(String key,
String value)
Sets a property. |
void |
setPropertyFilePath(String path)
Sets the property file path. |
void |
setPropertyFilePath(String path,
String encoding)
Sets the property file path with encoding. |
void |
storeProperties()
Stores properties to the property file. |
| 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 |
|---|
public DefaultHttpRelayFilter()
| Method Detail |
|---|
public String getConfigKey()
Configurable
getConfigKey in interface Configurablepublic void setConfigKey(String key)
Configurable
setConfigKey in interface Configurablekey - the path finder key.public String getPropertyFilePath()
Configurable
getPropertyFilePath in interface Configurablepublic void setPropertyFilePath(String path)
Configurable
setPropertyFilePath in interface Configurablepath - a property file path.
public void setPropertyFilePath(String path,
String encoding)
Configurable
setPropertyFilePath in interface Configurablepath - a property file path.encoding - the encoding to use.public boolean containsProperty(String key)
Configurable
containsProperty in interface Configurablekey - the key.
public String getProperty(String key)
Configurable
getProperty in interface Configurablekey - the key.
public Object setProperty(String key,
String value)
Configurable
setProperty in interface Configurablekey - the key.value - the value.
public String[] getProperties(String key)
Configurable
getProperties in interface Configurablekey - the key.
public Object setProperties(String key,
String[] values)
Configurable
setProperties in interface Configurablekey - the key.values - the values.
public Object removeProperty(String key)
Configurable
removeProperty in interface Configurablekey - the key.
public int indexOfProperty(String key,
String value)
Configurable
indexOfProperty in interface Configurablekey - the key.value - the value.
public void addProperty(String key,
String value)
Configurable
addProperty in interface Configurablekey - the key.value - the property.
public void addProperty(int index,
String key,
String value)
Configurable
addProperty in interface Configurableindex - the index.key - the key.value - the value.
public boolean removeProperty(String key,
String value)
Configurable
removeProperty in interface Configurablekey - the key.value - the value.
public void clearProperties()
Configurable
clearProperties in interface Configurablepublic OrderedMap propertyMap()
Configurable
propertyMap in interface Configurablepublic OrderedMap propertyMap(String prefix)
Configurable
propertyMap in interface Configurableprefix - the prefix.
public void storeProperties()
throws IOException
Configurable
storeProperties in interface ConfigurableIOException - on I/O errors.
public void doFilter(ServletRequest request,
ServletResponse response,
FilterChain chain)
throws ServletException,
IOException
doFilter in interface FilterdoFilter in class DefaultFilterServletException
IOExceptionprotected String normalize(String uri)
uri - the URI.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||