|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object | +--org.apache.catalina.valves.ValveBase | +--org.apache.catalina.valves.RequestFilterValve
Implementation of a Valve that performs filtering based on comparing the appropriate request property (selected based on which subclass you choose to configure into your Container's pipeline) against a set of regular expressions configured for this Valve.
This valve is configured by setting the allow
and/or
deny
properties to a comma-delimited list of regular
expressions (in the syntax supported by the jakarta-regexp library) to
which the appropriate request property will be compared. Evaluation
proceeds as follows:
process()
method.
This Valve may be attached to any Container, depending on the granularity of the filtering you wish to perform.
フィールドの概要 | |
protected java.lang.String |
allow
The comma-delimited set of allow expressions. |
protected org.apache.regexp.RE[] |
allows
The set of allow regular expressions we will evaluate. |
protected org.apache.regexp.RE[] |
denies
The set of deny regular expressions we will evaluate. |
protected java.lang.String |
deny
The comma-delimited set of deny expressions. |
protected static StringManager |
sm
The StringManager for this package. |
クラス org.apache.catalina.valves.ValveBase から継承したフィールド |
container, info |
コンストラクタの概要 | |
RequestFilterValve()
|
メソッドの概要 | |
java.lang.String |
getAllow()
Return a comma-delimited set of the allow expressions
configured for this Valve, if any; otherwise, return null . |
java.lang.String |
getDeny()
Return a comma-delimited set of the deny expressions
configured for this Valve, if any; otherwise, return null . |
java.lang.String |
getInfo()
Return descriptive information about this Valve implementation. |
abstract void |
invoke(Request request,
Response response,
ValveContext context)
Extract the desired request property, and pass it (along with the specified request and response objects) to the protected process() method to perform the actual filtering.
|
protected org.apache.regexp.RE[] |
precalculate(java.lang.String list)
Return an array of regular expression objects initialized from the specified argument, which must be null or a comma-delimited
list of regular expression patterns. |
protected void |
process(java.lang.String property,
Request request,
Response response,
ValveContext context)
Perform the filtering that has been configured for this Valve, matching against the specified request property. |
void |
setAllow(java.lang.String allow)
Set the comma-delimited set of the allow expressions
configured for this Valve, if any. |
void |
setDeny(java.lang.String deny)
Set the comma-delimited set of the deny expressions
configured for this Valve, if any. |
クラス org.apache.catalina.valves.ValveBase から継承したメソッド |
getContainer, setContainer |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
protected java.lang.String allow
allow
expressions.protected org.apache.regexp.RE[] allows
allow
regular expressions we will evaluate.protected org.apache.regexp.RE[] denies
deny
regular expressions we will evaluate.protected java.lang.String deny
deny
expressions.protected static StringManager sm
コンストラクタの詳細 |
public RequestFilterValve()
メソッドの詳細 |
public java.lang.String getAllow()
allow
expressions
configured for this Valve, if any; otherwise, return null
.public void setAllow(java.lang.String allow)
allow
expressions
configured for this Valve, if any.allow
- The new set of allow expressionspublic java.lang.String getDeny()
deny
expressions
configured for this Valve, if any; otherwise, return null
.public void setDeny(java.lang.String deny)
deny
expressions
configured for this Valve, if any.deny
- The new set of deny expressionspublic java.lang.String getInfo()
ValveBase
内の getInfo
public abstract void invoke(Request request, Response response, ValveContext context) throws java.io.IOException, javax.servlet.ServletException
process()
method to perform the actual filtering.
This method must be implemented by a concrete subclass.ValveBase
内の invoke
request
- The servlet request to be processedresponse
- The servlet response to be createdcontext
- The valve context used to invoke the next valve
in the current processing pipelinejava.io.IOException
- if an input/output error occursjavax.servlet.ServletException
- if a servlet error occursprotected org.apache.regexp.RE[] precalculate(java.lang.String list)
null
or a comma-delimited
list of regular expression patterns.list
- The comma-separated list of patternsjava.lang.IllegalArgumentException
- if one of the patterns has
invalid syntaxprotected void process(java.lang.String property, Request request, Response response, ValveContext context) throws java.io.IOException, javax.servlet.ServletException
property
- The request property on which to filterrequest
- The servlet request to be processedresponse
- The servlet response to be processedcontext
- The valve context used to invoke the next valve
in the current processing pipelinejava.io.IOException
- if an input/output error occursjavax.servlet.ServletException
- if a servlet error occurs
|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |