|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object | +--org.apache.catalina.core.StandardPipeline
Standard implementation of a processing Pipeline that will invoke
a series of Valves that have been configured to be called in order. This
implementation can be used for any type of Container.
IMPLEMENTATION WARNING - This implementation assumes that no
calls to addValve()
or removeValve
are allowed
while a request is currently being processed. Otherwise, the mechanism
by which per-thread state is maintained will need to be modified.
フィールドの概要 | |
protected Valve |
basic
The basic Valve (if any) associated with this Pipeline. |
protected Container |
container
The Container with which this Pipeline is associated. |
protected int |
debug
The debugging detail level for this component. |
protected java.lang.String |
info
Descriptive information about this implementation. |
protected LifecycleSupport |
lifecycle
The lifecycle event support for this component. |
protected static StringManager |
sm
The string manager for this package. |
protected boolean |
started
Has this component been started yet? |
protected java.lang.ThreadLocal |
state
The per-thread execution state for processing through this pipeline. |
protected Valve[] |
valves
The set of Valves (not including the Basic one, if any) associated with this Pipeline. |
インタフェース org.apache.catalina.Lifecycle から継承したフィールド |
START_EVENT, STOP_EVENT |
コンストラクタの概要 | |
StandardPipeline()
Construct a new StandardPipeline instance with no associated Container. |
|
StandardPipeline(Container container)
Construct a new StandardPipeline instance that is associated with the specified Container. |
メソッドの概要 | |
void |
addLifecycleListener(LifecycleListener listener)
Add a lifecycle event listener to this component. |
void |
addValve(Valve valve)
Add a new Valve to the end of the pipeline associated with this Container. |
Valve |
getBasic()
Return the Valve instance that has been distinguished as the basic Valve for this Pipeline (if any). |
Container |
getContainer()
Return the Container with which this Pipeline is associated. |
java.lang.String |
getInfo()
Return descriptive information about this implementation class. |
Valve[] |
getValves()
Return the set of Valves in the pipeline associated with this Container, including the basic Valve (if any). |
void |
invoke(Request request,
Response response)
Cause the specified request and response to be processed by the Valves associated with this pipeline, until one of these valves causes the response to be created and returned. |
void |
invokeNext(Request request,
Response response)
Cause the invoke() method of the next Valve that is part of
the Pipeline currently being processed (if any) to be executed, passing
on the specified request and response objects plus this
ValveContext instance. |
protected void |
log(java.lang.String message)
Log a message on the Logger associated with our Container (if any). |
protected void |
log(java.lang.String message,
java.lang.Throwable throwable)
Log a message on the Logger associated with our Container (if any). |
void |
removeLifecycleListener(LifecycleListener listener)
Remove a lifecycle event listener from this component. |
void |
removeValve(Valve valve)
Remove the specified Valve from the pipeline associated with this Container, if it is found; otherwise, do nothing. |
void |
setBasic(Valve valve)
Set the Valve instance that has been distinguished as the basic Valve for this Pipeline (if any). |
void |
setContainer(Container container)
Set the Container with which this Pipeline is associated. |
void |
start()
Prepare for active use of the public methods of this Component. |
void |
stop()
Gracefully shut down active use of the public methods of this Component. |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
protected Valve basic
protected Container container
protected int debug
protected java.lang.String info
protected LifecycleSupport lifecycle
protected static StringManager sm
protected boolean started
protected java.lang.ThreadLocal state
values
array, or a subscript equal to
values.length
if the basic Valve is currently being
processed.protected Valve[] valves
コンストラクタの詳細 |
public StandardPipeline()
public StandardPipeline(Container container)
container
- The container we should be associated withメソッドの詳細 |
public java.lang.String getInfo()
ValveContext
内の getInfo
public Container getContainer()
Contained
内の getContainer
public void setContainer(Container container)
Contained
内の setContainer
container
- The new associated containerpublic void addLifecycleListener(LifecycleListener listener)
Lifecycle
内の addLifecycleListener
listener
- The listener to addpublic void removeLifecycleListener(LifecycleListener listener)
Lifecycle
内の removeLifecycleListener
listener
- The listener to removepublic void start() throws LifecycleException
Lifecycle
内の start
java.lang.IllegalStateException
- if this component has already been
startedLifecycleException
- if this component detects a fatal error
that prevents it from being startedpublic void stop() throws LifecycleException
Lifecycle
内の stop
java.lang.IllegalStateException
- if this component has not been startedLifecycleException
- if this component detects a fatal error
that needs to be reportedpublic Valve getBasic()
Return the Valve instance that has been distinguished as the basic Valve for this Pipeline (if any).
Pipeline
内の getBasic
public void setBasic(Valve valve)
Set the Valve instance that has been distinguished as the basic
Valve for this Pipeline (if any). Prioer to setting the basic Valve,
the Valve's setContainer()
will be called, if it
implements Contained
, with the owning Container as an
argument. The method may throw an IllegalArgumentException
if this Valve chooses not to be associated with this Container, or
IllegalStateException
if it is already associated with
a different Container.
Pipeline
内の setBasic
valve
- Valve to be distinguished as the basic Valvepublic void addValve(Valve valve)
Add a new Valve to the end of the pipeline associated with this
Container. Prior to adding the Valve, the Valve's
setContainer()
method will be called, if it implements
Contained
, with the owning Container as an argument.
The method may throw an
IllegalArgumentException
if this Valve chooses not to
be associated with this Container, or IllegalStateException
if it is already associated with a different Container.
Pipeline
内の addValve
valve
- Valve to be addedjava.lang.IllegalArgumentException
- if this Container refused to
accept the specified Valvejava.lang.IllegalArgumentException
- if the specifie Valve refuses to be
associated with this Containerjava.lang.IllegalStateException
- if the specified Valve is already
associated with a different Containerpublic Valve[] getValves()
Pipeline
内の getValves
public void invoke(Request request, Response response) throws java.io.IOException, javax.servlet.ServletException
Pipeline
内の invoke
request
- The servlet request we are processingresponse
- The servlet response we are creatingjava.io.IOException
- if an input/output error occursjavax.servlet.ServletException
- if a servlet exception is thrownpublic void removeValve(Valve valve)
setContainer(null)
method
will be called if it implements Contained
.Pipeline
内の removeValve
valve
- Valve to be removedpublic void invokeNext(Request request, Response response) throws java.io.IOException, javax.servlet.ServletException
invoke()
method of the next Valve that is part of
the Pipeline currently being processed (if any) to be executed, passing
on the specified request and response objects plus this
ValveContext
instance. Exceptions thrown by a subsequently
executed Valve (or a Filter or Servlet at the application level) will be
passed on to our caller.
If there are no more Valves to be executed, an appropriate
ServletException will be thrown by this ValveContext.ValveContext
内の invokeNext
request
- The request currently being processedresponse
- The response currently being createdjava.io.IOException
- if thrown by a subsequent Valve, Filter, or
Servletjavax.servlet.ServletException
- if thrown by a subsequent Valve, Filter,
or Servletjavax.servlet.ServletException
- if there are no further Valves configured
in the Pipeline currently being processedprotected void log(java.lang.String message)
message
- Message to be loggedprotected void log(java.lang.String message, java.lang.Throwable throwable)
message
- Message to be loggedthrowable
- Associated exception
|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |