org.apache.cocoon.environment.commandline
Class LinkSamplingEnvironment

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.cocoon.environment.AbstractEnvironment
          extended by org.apache.cocoon.environment.commandline.AbstractCommandLineEnvironment
              extended by 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

Field Summary
 
Fields inherited from class org.apache.cocoon.environment.commandline.AbstractCommandLineEnvironment
CLI_REQUEST_ID, contentLength, contentType, hasRedirected, statusCode
 
Fields inherited from class org.apache.cocoon.environment.AbstractEnvironment
action, avalonToCocoonSourceWrapper, context, initializedComponents, manager, objectModel, outputStream, prefix, rootContext, secureOutputStream, sourceResolver, uris, view
 
Fields inherited from interface org.apache.excalibur.source.SourceResolver
METHOD, ROLE, URI_ENCODING, URI_PARAMETERS
 
Constructor Summary
LinkSamplingEnvironment(String uri, File contextFile, Map attributes, Map parameters, Map headers, CommandLineContext cliContext, Logger log)
           
 
Method Summary
 Collection getLinks()
          Indicates if other links are present.
 void setContentType(String contentType)
          Set the ContentType
 
Methods inherited from class org.apache.cocoon.environment.commandline.AbstractCommandLineEnvironment
getContentType, getOutputStream, getStatus, hasRedirected, isExternal, redirect, sendStatus, setContentLength, setStatus
 
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 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
 
Methods inherited from interface org.apache.cocoon.environment.Redirector
globalRedirect
 

Constructor Detail

LinkSamplingEnvironment

public LinkSamplingEnvironment(String uri,
                               File contextFile,
                               Map attributes,
                               Map parameters,
                               Map headers,
                               CommandLineContext cliContext,
                               Logger log)
                        throws MalformedURLException,
                               IOException
Throws:
MalformedURLException
IOException
Method Detail

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.