org.apache.cocoon.environment.commandline
Class LinkSamplingEnvironment
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.environment.AbstractEnvironment
org.apache.cocoon.environment.commandline.AbstractCommandLineEnvironment
org.apache.cocoon.environment.commandline.LinkSamplingEnvironment
- All Implemented Interfaces:
- LogEnabled, Environment, Redirector, SourceResolver
public class LinkSamplingEnvironment
- extends AbstractCommandLineEnvironment
This environment is sample the links of the resource.
- Version:
- $Id: LinkSamplingEnvironment.html 1304258 2012-03-23 10:09:27Z ilgrosso $
- Author:
- Stefano Mazzocchi
Fields inherited from class org.apache.cocoon.environment.AbstractEnvironment |
action, avalonToCocoonSourceWrapper, context, initializedComponents, manager, objectModel, outputStream, prefix, rootContext, secureOutputStream, sourceResolver, uris, view |
Methods inherited from class org.apache.cocoon.environment.AbstractEnvironment |
changeContext, commitResponse, extractAction, extractView, finishingProcessing, getAction, getAttribute, getAttributeNames, getContext, getObjectModel, getOutputStream, getRootContext, getURI, getURIPrefix, getView, globalRedirect, hasAttribute, initComponents, isInternalRedirect, isResponseModified, release, removeAttribute, resolve, resolveURI, resolveURI, setAction, setAttribute, setContext, setContext, setResponseIsNotModified, setURIPrefix, setView, startingProcessing, tryResetResponse |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LinkSamplingEnvironment
public LinkSamplingEnvironment(String uri,
File contextFile,
Map attributes,
Map parameters,
Map headers,
CommandLineContext cliContext,
Logger log)
throws MalformedURLException,
IOException
- Throws:
MalformedURLException
IOException
setContentType
public void setContentType(String contentType)
- Set the ContentType
- Specified by:
setContentType
in interface Environment
- Overrides:
setContentType
in class AbstractCommandLineEnvironment
getLinks
public Collection getLinks()
throws IOException
- Indicates if other links are present.
- Throws:
IOException
Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.