|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.tuckey.web.filters.urlrewrite.Conf
public class Conf
Configuration object for urlrewrite filter.
Field Summary | |
---|---|
protected java.lang.String |
decodeUsing
|
protected java.lang.String |
defaultMatchType
|
protected boolean |
useContext
|
protected boolean |
useQueryString
|
Constructor Summary | |
---|---|
Conf()
Empty const for testing etc. |
|
Conf(java.io.InputStream inputStream,
java.lang.String conffile)
Constructor when run elements don't need to be initialised correctly, for docuementation etc. |
|
Conf(javax.servlet.ServletContext context,
java.io.InputStream inputStream,
java.lang.String fileName,
java.lang.String systemId)
Constructor for use only when loading XML style configuration. |
|
Conf(javax.servlet.ServletContext context,
java.io.InputStream inputStream,
java.lang.String fileName,
java.lang.String systemId,
boolean modRewriteStyleConf)
Normal constructor. |
|
Conf(java.net.URL confUrl)
Constructor when run elements don't need to be initialised correctly, for docuementation etc. |
Method Summary | |
---|---|
void |
addOutboundRule(OutboundRule outboundRule)
Will add the rule to the rules list. |
void |
addRule(Rule rule)
Will add the rule to the rules list. |
void |
destroy()
Destory the conf gracefully. |
java.util.List |
getCatchElems()
|
java.lang.String |
getDecodeUsing()
|
java.lang.String |
getDefaultMatchType()
|
java.util.List |
getErrors()
Will get the List of errors. |
java.lang.String |
getFileName()
|
java.util.Date |
getLoadedDate()
|
java.util.List |
getOutboundRules()
Will get the List of outbound rules. |
java.util.List |
getRules()
Will get the List of rules. |
void |
initialise()
Initialise the conf file. |
boolean |
isDecodeUsingCustomCharsetRequired()
|
boolean |
isDecodeUsingEncodingHeader()
|
boolean |
isEngineEnabled()
|
boolean |
isLoadedFromFile()
|
boolean |
isOk()
true if the conf has been loaded ok. |
boolean |
isUseContext()
|
boolean |
isUseQueryString()
|
protected void |
loadDom(java.io.InputStream inputStream)
Load the dom document from the inputstream Note, protected so that is can be extended. |
protected void |
loadModRewriteStyle(java.io.InputStream inputStream)
|
protected void |
processConfDoc(org.w3c.dom.Document doc)
Process dom document and populate Conf object. |
void |
setDecodeUsing(java.lang.String decodeUsing)
|
void |
setDefaultMatchType(java.lang.String defaultMatchType)
|
void |
setEngineEnabled(boolean engineEnabled)
|
void |
setUseContext(boolean useContext)
|
void |
setUseQueryString(boolean useQueryString)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected boolean useQueryString
protected boolean useContext
protected java.lang.String decodeUsing
protected java.lang.String defaultMatchType
Constructor Detail |
---|
public Conf()
public Conf(javax.servlet.ServletContext context, java.io.InputStream inputStream, java.lang.String fileName, java.lang.String systemId)
fileName
- to display on status screenpublic Conf(javax.servlet.ServletContext context, java.io.InputStream inputStream, java.lang.String fileName, java.lang.String systemId, boolean modRewriteStyleConf)
fileName
- to display on status screenmodRewriteStyleConf
- true if loading mod_rewrite style confpublic Conf(java.net.URL confUrl)
public Conf(java.io.InputStream inputStream, java.lang.String conffile)
Method Detail |
---|
protected void loadModRewriteStyle(java.io.InputStream inputStream)
protected void loadDom(java.io.InputStream inputStream)
inputStream
- stream of the conf file to loadprotected void processConfDoc(org.w3c.dom.Document doc)
public void initialise()
public void destroy()
public void addRule(Rule rule)
rule
- The Rule to addpublic void addOutboundRule(OutboundRule outboundRule)
outboundRule
- The outbound rule to addpublic java.util.List getErrors()
public java.util.List getRules()
public java.util.List getOutboundRules()
public boolean isOk()
public java.util.Date getLoadedDate()
public java.lang.String getFileName()
public boolean isUseQueryString()
public void setUseQueryString(boolean useQueryString)
public boolean isUseContext()
public void setUseContext(boolean useContext)
public java.lang.String getDecodeUsing()
public void setDecodeUsing(java.lang.String decodeUsing)
public void setDefaultMatchType(java.lang.String defaultMatchType)
public java.lang.String getDefaultMatchType()
public java.util.List getCatchElems()
public boolean isDecodeUsingCustomCharsetRequired()
public boolean isEngineEnabled()
public void setEngineEnabled(boolean engineEnabled)
public boolean isLoadedFromFile()
public boolean isDecodeUsingEncodingHeader()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |