Wombat::Core::MapperBase - internal mapper base class
Convenience base implementation of Wombat::Mapper. Classes
extending this base class must implement map()
.
new()
-
Construct and return a Wombat::Core::MapperBase instance,
initializing fields appropriately. If subclasses override the
constructor, they must be sure to call
$self->SUPER::new();
getContainer()
-
Return the Container with which the Mapper is associated.
setContainer($container)
-
Set the Container with which the Mapper is associated.
Parameters:
- $container
-
the Wombat::Container used for processing Requests
Throws:
- Servlet::Util::IllegalArgumentException
-
if the Container is not acceptable to this Mapper
getProtocol()
-
Return the protocol for which this Mapper is responsible.
setProtocol($protocol)
-
Set the protocol for which this Mapper is responsible.
Parameters:
- $protocol
-
the protocol
map($request)
-
Return the child Container that should be used to process the
Request, or
undef
f no such child Container can be identified.
Parameters:
- $request
-
the Wombat::Request being processed
the Servlet::Util::Exception manpage,
the Wombat::Container manpage,
the Wombat::Mapper manpage,
the Wombat::Request manpage
Brian Moseley, bcm@maz.org