org.apache.cocoon.producer
Class ProducerFactory
java.lang.Object
|
+--org.apache.cocoon.framework.AbstractActor
|
+--org.apache.cocoon.framework.Router
|
+--org.apache.cocoon.producer.ProducerFactory
- public class ProducerFactory
- extends Router
This class implements the production router by identifying a producer
associated to the requested XML resource.
- Version:
- $Revision: 1.3 $ $Date: 1999/08/14 22:25:58 $
- Author:
- Stefano Mazzocchi
Method Summary |
Producer |
getProducer(javax.servlet.http.HttpServletRequest request)
This methods returns the instance of the producer associated with
the given request. |
java.lang.String |
getStatus()
Returns information about the status of the implementing class.
|
private java.lang.String |
getType(javax.servlet.http.HttpServletRequest request)
This method returns the producer type as indicated in the request
parameter. |
void |
init(Configurations conf)
Initialize the class by passing its configurations. |
Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
toString,
wait,
wait,
wait |
parameter
private java.lang.String parameter
factory
private Factory factory
ProducerFactory
public ProducerFactory()
init
public void init(Configurations conf)
- Description copied from interface: Configurable
- Initialize the class by passing its configurations.
- Overrides:
- init in class Router
getProducer
public Producer getProducer(javax.servlet.http.HttpServletRequest request)
throws java.lang.Exception
- This methods returns the instance of the producer associated with
the given request.
getType
private java.lang.String getType(javax.servlet.http.HttpServletRequest request)
- This method returns the producer type as indicated in the request
parameter.
getStatus
public java.lang.String getStatus()
- Description copied from interface: Status
- Returns information about the status of the implementing class.
Note: this is use instead of the usual
toString()
method because some of these methods are declared final in some
classes in JDK 1.1.
- Overrides:
- getStatus in class Router
Copyright 1999 Java Apache Project. All Rights Reserved.