Deprecated API

Deprecated Classes
org.apache.cocoon.selection.BrowserSelectorFactory
          replaced by BrowserSelector - code factories should no longer be used 
org.apache.cocoon.sitemap.ErrorNotifier
          Now using NotifyingGenerator in sitemap 
org.apache.cocoon.selection.HeaderSelectorFactory
          replaced by HeaderSelector - code factories should no longer be used 
org.apache.cocoon.selection.HostSelectorFactory
          replaced by HostSelector - code factories should no longer be used 
org.apache.cocoon.components.parser.JaxpParser
          The Avalon XML Parser is now used inside Cocoon. This role will be removed in future releases. 
org.apache.cocoon.acting.LangSelect
          Use LocaleAction instead. 
org.apache.cocoon.components.saxconnector.LoggingSAXConnector
          This feature will be removed in the next release. 
org.apache.cocoon.Notification
          Now another interface is used 
org.apache.cocoon.Notifier
          Now another class is used 
org.apache.cocoon.selection.ParameterSelectorFactory
          replaced by ParameterSelector - code factories should no longer be used 
org.apache.cocoon.components.parser.PooledJaxpParser
          PooledJaxpParser is now the default parser for Cocoon and has thus been moved to JaxpParser - this class will be removed in a future release. The Avalon XML Parser is now used inside Cocoon. This role will be removed in future releases. 
org.apache.cocoon.matching.RegexpTargetHostMatcher
          Renamed to RegexpHostMatcher 
org.apache.cocoon.matching.RegexpTargetHostMatcherFactory
          replaced by RegexpHostMatcher - code factories should no longer be used 
org.apache.cocoon.matching.RegexpURIMatcherFactory
          replaced by RegexpURIMatcher - code factories should no longer be used 
org.apache.cocoon.matching.RequestParamMatcher
          Renamed to RequestParameterMatcher 
org.apache.cocoon.selection.RequestSelector
          Renamed to RequestParameterSelector 
org.apache.cocoon.selection.RequestSelectorFactory
          Replaced by RequestParameterSelector - code factories should no longer be used 
org.apache.cocoon.selection.SessionAttributeSelectorFactory
          replaced by SessionAttributeSelector - code factories should no longer be used 
org.apache.cocoon.selection.SessionStateSelector
          use SessionAttributeSelector instead 
org.apache.cocoon.matching.WildcardHeaderMatcherFactory
          replaced by WildcardHeaderMatcher - code factories should no longer be used 
org.apache.cocoon.matching.WildcardParameterValueMatcher
          Renamed to WildcardRequestParameterMatcher 
org.apache.cocoon.matching.WildcardParameterValueMatcherFactory
          replaced by WildcardRequestParameterMatcher - code factories should no longer be used 
org.apache.cocoon.matching.WildcardSessionAttributeMatcherFactory
          replaced by WildcardSessionAttributeMatcher - code factories should no longer be used 
org.apache.cocoon.matching.helpers.WildcardURIMatcher
          renamed to WildcardHelper 
org.apache.cocoon.matching.WildcardURIMatcherFactory
          replaced by WildcardURIMatcher - code factories should no longer be used 
org.apache.cocoon.components.parser.XercesParser
          The Avalon XML Parser is now used inside Cocoon. This role will be removed in future releases. 
org.apache.cocoon.generation.XMLDBCollectionGenerator
          Use the XML:DB pseudo protocol instead. 
org.apache.cocoon.generation.XMLDBGenerator
          Use the XML:DB pseudo protocol instead. 
org.apache.cocoon.components.xpath.XPathProcessorImpl
          Use the org.apache.avalon.excalibur.xml.xpath.XPathProcessorImpl instead. 
 

Deprecated Interfaces
org.apache.cocoon.Notificable
          Now another interface is used 
org.apache.cocoon.components.parser.Parser
          The Avalon XML Parser is now used inside Cocoon. This role will be removed in future releases. 
org.apache.cocoon.components.resolver.Resolver
          Use the Avalon Excalibur EntityResolver instead 
org.apache.cocoon.components.saxconnector.SAXConnector
          This feature will be removed in the next release. 
org.apache.cocoon.components.xpath.XPathProcessor
          Use the org.apache.avalon.excalibur.xml.xpath.XPathProcessor instead. 
 

Deprecated Fields
org.apache.cocoon.Constants.CONTEXT_OBJECT
          Use the ObjectModelHelper.getContext(Map) instead. 
org.apache.cocoon.Constants.DEPRECATED_PARSER_PROPERTY
          This will be removed in future release 
org.apache.cocoon.Constants.REQUEST_OBJECT
          Use the ObjectModelHelper.getRequest(Map) instead. 
org.apache.cocoon.Constants.RESPONSE_OBJECT
          Use the ObjectModelHelper.getResponse(Map) instead. 
org.apache.cocoon.Constants.SESSION_STATE_ATTRIBUTE
          used only by deprecated SessionStateSelector 
 

Deprecated Methods
org.apache.cocoon.environment.http.HttpResponse.encodeRedirectUrl(String)
          As of version 2.1, use encodeRedirectURL(String url) instead 
org.apache.cocoon.environment.http.HttpResponse.encodeUrl(String)
          As of version 2.1, use encodeURL(String url) instead 
org.apache.cocoon.acting.AbstractComplementaryConfigurableAction.getConfiguration(String, boolean)
          please use the getConfiguration(String, SourceResolver, boolean) version of this method instead. 
org.apache.cocoon.environment.http.HttpRequest.getRealPath(String)
          As of Version 2.1 of the Java Servlet API, use ServletContext.getRealPath(java.lang.String) instead. 
org.apache.cocoon.environment.http.HttpRequest.isRequestedSessionIdFromUrl()
          As of Version 2.1 of the Java Servlet API, use HttpRequest.isRequestedSessionIdFromURL() instead. 
org.apache.cocoon.components.language.generator.ProgramGenerator.load(ComponentManager, String, String, String, SourceResolver)
          Pass Source object instead of file name. 
org.apache.cocoon.components.notification.Notifier.notify(Notifying, ContentHandler)
          Using a ContentHandler doesn't mean that a mimetype cannot be specified; it could be svg or 
org.apache.cocoon.components.notification.Notifier.notify(Notifying, OutputStream)
          There is no way in which this method could understand what mime/type to use. Instead use void notify(Notifying n, OutputStream outputStream, String mimetype), where the mime/type is requested. 
org.apache.cocoon.components.pipeline.AbstractEventPipeline.setGenerator(String, String, Parameters, Exception)
          The NotifyingGenerator gets the Notificable from the objectModel 
org.apache.cocoon.environment.http.HttpResponse.setStatus(int, String)
          As of version 2.1, due to ambiguous meaning of the message parameter. To set a status code use setStatus(int), to send an error with a description use sendError(int, String). 
org.apache.cocoon.sitemap.ErrorNotifier.setThrowable(Throwable)
          Now it gets the Exception from the ObjectModel 
org.apache.cocoon.sitemap.AbstractSitemap.tryResetResponse(Map)
          Use the tryResetResponse on the Environment instead. 
 

Deprecated Constructors
org.apache.cocoon.xml.dom.DOMBuilder(DOMFactory)
          Use DOMBuilder() instead. 
org.apache.cocoon.xml.dom.DOMBuilder(DOMFactory, DOMBuilder.Listener)
          Use DOMBuilder(listener) instead. 
org.apache.cocoon.xml.dom.DOMBuilder(DOMFactory, DOMBuilder.Listener, Node)
          Use DOMBuilder(listener, parentNode) instead. 
 



Copyright © 1999-2002 Apache Software Foundation. All Rights Reserved.