Wombat::Valve::ValveBase - valve base class
Convenience base implementation of Wombat::Valve. Subclasses MUST implement invoke() to provide the required functionality as well as getName().
invoke()
getName()
Construct and return a Wombat::Valve::ValveBase instance, initializing fields appropriately. If subclasses override the constructor, they must be sure to call
$self->SUPER::new();
Return the Container to which this Valve is attached.
Set the Container to which this Valve is attached.
Parameters:
the Wombat::Container to which this Valve is attached.
Perform request processing as required by this Valve.
Parameters
the Wombat::Request to be processed
the Wombat::Response to be created
the Wombat::ValveContext allowing access to the next Valve in the Pipeline being processed
Throws:
if a servlet error occurs or is thrown by a subsequently invoked Valve, Filter or Servlet
if an input or output error occurs
Return a short name for this Valve implementation. Must be overridden by subclasses.
Prepare for active use of this component. This method should be called before any of the public methods of the component are utilized.
if the component has already been started
Gracefully terminate active use of this component. Once this method has been called, no public methods of the component should be utilized.
if the component is not started
Servlet::ServletException, Servlet::Util::Exception, Wombat::Container, Wombat::Exception, Wombat::Valve, Wombat::ValveContext
Brian Moseley, bcm@maz.org
To install Wombat, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Wombat
CPAN shell
perl -MCPAN -e shell install Wombat
For more information on module installation, please visit the detailed CPAN module installation guide.