org.apache.cocoon.components.webdav.impl
Class DefaultWebDAVEventFactory

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.cocoon.components.webdav.impl.DefaultWebDAVEventFactory
All Implemented Interfaces:
Configurable, LogEnabled, EventFactory, WebDAVEventFactory

public class DefaultWebDAVEventFactory
extends AbstractLogEnabled
implements WebDAVEventFactory, Configurable

Default implementation


Field Summary
protected static String HOST_CONFIG_ELEM
           
protected static String PORT_CONFIG_ELEM
           
 
Fields inherited from interface org.apache.cocoon.components.webdav.WebDAVEventFactory
ROLE
 
Constructor Summary
DefaultWebDAVEventFactory()
           
 
Method Summary
 void configure(Configuration config)
           
 Event createEvent(org.apache.commons.httpclient.HttpURL url)
           
 Event createEvent(Parameters params)
          Create an event based on parameter values.
 Event createEvent(String url)
           
protected  Event createEvent(String host, int port, String path)
           
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HOST_CONFIG_ELEM

protected static final String HOST_CONFIG_ELEM
See Also:
Constant Field Values

PORT_CONFIG_ELEM

protected static final String PORT_CONFIG_ELEM
See Also:
Constant Field Values
Constructor Detail

DefaultWebDAVEventFactory

public DefaultWebDAVEventFactory()
Method Detail

configure

public void configure(Configuration config)
               throws ConfigurationException
Specified by:
configure in interface Configurable
Throws:
ConfigurationException

createEvent

public Event createEvent(String url)
Specified by:
createEvent in interface WebDAVEventFactory

createEvent

public Event createEvent(org.apache.commons.httpclient.HttpURL url)
Specified by:
createEvent in interface WebDAVEventFactory

createEvent

public Event createEvent(Parameters params)
                  throws ParameterException
Description copied from interface: EventFactory
Create an event based on parameter values.

Specified by:
createEvent in interface EventFactory
Parameters:
params - arguments to the newly created event.
Returns:
newly created Event
Throws:
ParameterException - if required parameters are missing.

createEvent

protected Event createEvent(String host,
                            int port,
                            String path)


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.