public class Conf
extends java.lang.Object
构造器和说明 |
---|
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.
|
限定符和类型 | 方法和说明 |
---|---|
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() |
void |
setDecodeUsing(java.lang.String decodeUsing) |
void |
setDefaultMatchType(java.lang.String defaultMatchType) |
void |
setEngineEnabled(boolean engineEnabled) |
void |
setUseContext(boolean useContext) |
void |
setUseQueryString(boolean useQueryString) |
public Conf()
public Conf(javax.servlet.ServletContext context, java.io.InputStream inputStream, java.lang.String fileName, java.lang.String systemId)
context
- ServletContextinputStream
- InputStreamfileName
- to display on status screensystemId
- Stringpublic Conf(javax.servlet.ServletContext context, java.io.InputStream inputStream, java.lang.String fileName, java.lang.String systemId, boolean modRewriteStyleConf)
context
- ServletContextinputStream
- InputStreamfileName
- to display on status screensystemId
- StringmodRewriteStyleConf
- true if loading mod_rewrite style confpublic Conf(java.net.URL confUrl)
confUrl
- URLpublic Conf(java.io.InputStream inputStream, java.lang.String conffile)
inputStream
- InputStreamconffile
- Stringpublic 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()