org.apache.cocoon.acting
Class CopySourceAction
java.lang.Object
org.apache.cocoon.util.AbstractLogEnabled
org.apache.cocoon.acting.AbstractAction
org.apache.cocoon.acting.ServiceableAction
org.apache.cocoon.acting.CopySourceAction
- All Implemented Interfaces:
- org.apache.cocoon.acting.Action, Serviceable, ThreadSafe
- public class CopySourceAction
- extends org.apache.cocoon.acting.ServiceableAction
- implements ThreadSafe
The CopySourceAction copies the content of it's "src" attribute to its "dest" parameter.
The destination must of course resolve to a WriteableSource
Example :
<map:act type="copy-source" src="cocoon://pipeline.xml">
<map:parameter name="dest" value="context://WEB-INF/data/file.xml"/>
.../...
</map:act>
- Version:
- $Id: CopySourceAction.html 1304280 2012-03-23 11:18:01Z ilgrosso $
Fields inherited from class org.apache.cocoon.acting.ServiceableAction |
manager |
Fields inherited from class org.apache.cocoon.acting.AbstractAction |
EMPTY_MAP |
Fields inherited from interface org.apache.cocoon.acting.Action |
ROLE |
Methods inherited from class org.apache.cocoon.util.AbstractLogEnabled |
getLogger, setLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CopySourceAction
public CopySourceAction()
service
public void service(ServiceManager manager)
throws ServiceException
- Specified by:
service
in interface Serviceable
- Throws:
ServiceException
act
public Map act(org.apache.cocoon.environment.Redirector redirector,
org.apache.cocoon.environment.SourceResolver oldResolver,
Map objectModel,
String source,
Parameters par)
throws Exception
- Specified by:
act
in interface org.apache.cocoon.acting.Action
- Throws:
Exception
Copyright © 1999-2008 The Apache Software Foundation. All Rights Reserved.