|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jmage.filterchain.XmlFilterChainFactory
public class XmlFilterChainFactory
Creates a filter filterchain from serialized xml format
| Field Summary | |
|---|---|
protected ApplicationContext |
applicationContext
|
protected static org.apache.log4j.Logger |
log
|
protected javax.servlet.ServletContext |
servletContext
|
protected XmlFilterChainDeserializer |
xmlFilterChainDeserializer
|
| Constructor Summary | |
|---|---|
XmlFilterChainFactory()
|
|
| Method Summary | |
|---|---|
void |
configure(ApplicationContext context)
|
FilterChain |
createFrom(java.net.URI filterChainUri)
Creates a FilterChain for a given filterChainUri by deserializing it from xml. |
FilterChain |
createFrom(java.net.URI name,
java.util.Properties filterProperties)
Creates a FilterChain for a given name by deserializing it from xml and then applying additional filter properties on top. |
protected java.io.InputStream |
getClassPathResource(java.io.File file)
Get the file from the classpath as a system resource |
protected java.io.InputStream |
getCurrentDirFile(java.io.File file)
Get the file from the current application directory. |
protected java.io.InputStream |
getFromFile(java.io.File file)
Get the image resource from a file. |
protected java.io.InputStream |
getJMAGEResourceDirFile(java.io.File file)
Get the file from the dir specified trough the resourcedir property |
protected java.io.InputStream |
getServletContainerResource(java.io.File file)
Get the xml file as inputstream from the ServletContainer. |
protected boolean |
hasInternalChain(java.net.URI filterChainUri)
|
protected java.io.File |
mapURItoFile(java.net.URI uri)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected XmlFilterChainDeserializer xmlFilterChainDeserializer
protected ApplicationContext applicationContext
protected javax.servlet.ServletContext servletContext
protected static org.apache.log4j.Logger log
| Constructor Detail |
|---|
public XmlFilterChainFactory()
| Method Detail |
|---|
public void configure(ApplicationContext context)
configure in interface Configurable
public FilterChain createFrom(java.net.URI filterChainUri)
throws FilterChainException
createFrom in interface FilterChainFactoryfilterChainUri - the unique filterChainUri
FilterChainException
public FilterChain createFrom(java.net.URI name,
java.util.Properties filterProperties)
throws FilterChainException
createFrom in interface FilterChainFactoryname - the unique namefilterProperties - the additional filter properties
FilterChainExceptionprotected java.io.File mapURItoFile(java.net.URI uri)
protected boolean hasInternalChain(java.net.URI filterChainUri)
protected java.io.InputStream getFromFile(java.io.File file)
throws ResourceException
file - the file
ResourceExceptionprotected java.io.InputStream getServletContainerResource(java.io.File file)
file - the file
protected java.io.InputStream getClassPathResource(java.io.File file)
throws ResourceException
file -
ResourceExceptionprotected java.io.InputStream getCurrentDirFile(java.io.File file)
file - the file
protected java.io.InputStream getJMAGEResourceDirFile(java.io.File file)
file - the file
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||