Package org.ametys.web.workspace
Class FrontMinimizeTransformer
-
- All Implemented Interfaces:
Poolable
,Recyclable
,Disposable
,Component
,Configurable
,Contextualizable
,LogEnabled
,Serviceable
,SitemapModelComponent
,Transformer
,XMLConsumer
,XMLPipe
,XMLProducer
,XMLConsumer
,ContentHandler
,LexicalHandler
public class FrontMinimizeTransformer extends MinimizeTransformer
The front office minimizer use a different url to avoid front application url conflict
-
-
Field Summary
Fields Modifier and Type Field Description private URIPrefixHandler
_prefixHandler
-
Fields inherited from class org.ametys.plugins.core.ui.minimize.MinimizeTransformer
_context, _currentContextPath, _inlineCssMedias, _isSuperDevMode, _locale, _patterns
-
Fields inherited from class org.apache.cocoon.transformation.ServiceableTransformer
manager, objectModel, parameters, resolver, source
-
Fields inherited from class org.apache.cocoon.xml.AbstractXMLProducer
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer
-
Fields inherited from interface org.apache.cocoon.transformation.Transformer
ROLE
-
-
Constructor Summary
Constructors Constructor Description FrontMinimizeTransformer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
_getMinimizeUrl()
Get the url of the minimizerprivate String
_getSiteName()
protected String
_removeContextPath(String uri)
Remove the context path from the uri to be able to analyse correctly the patternsprotected String
getHashSalt()
Return the salt used by the hash cacheprivate String
getURIPrefix()
void
service(ServiceManager smanager)
-
Methods inherited from class org.ametys.plugins.core.ui.minimize.MinimizeTransformer
configure, contextualize, endElement, setup, startDocument, startElement
-
Methods inherited from class org.apache.cocoon.transformation.ServiceableTransformer
dispose, recycle
-
Methods inherited from class org.apache.cocoon.xml.AbstractXMLPipe
characters, comment, endCDATA, endDocument, endDTD, endEntity, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startCDATA, startDTD, startEntity, startPrefixMapping
-
Methods inherited from class org.apache.cocoon.xml.AbstractXMLProducer
setConsumer, setContentHandler, setLexicalHandler
-
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.xml.sax.ContentHandler
characters, endDocument, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startPrefixMapping
-
Methods inherited from interface org.xml.sax.ext.LexicalHandler
comment, endCDATA, endDTD, endEntity, startCDATA, startDTD, startEntity
-
Methods inherited from interface org.apache.cocoon.xml.XMLProducer
setConsumer
-
-
-
-
Field Detail
-
_prefixHandler
private URIPrefixHandler _prefixHandler
-
-
Constructor Detail
-
FrontMinimizeTransformer
public FrontMinimizeTransformer()
-
-
Method Detail
-
service
public void service(ServiceManager smanager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classMinimizeTransformer
- Throws:
ServiceException
-
getURIPrefix
private String getURIPrefix()
-
_removeContextPath
protected String _removeContextPath(String uri)
Description copied from class:MinimizeTransformer
Remove the context path from the uri to be able to analyse correctly the patterns- Overrides:
_removeContextPath
in classMinimizeTransformer
- Parameters:
uri
- The incomming uri- Returns:
- The uri with no context path
-
_getMinimizeUrl
protected String _getMinimizeUrl()
Description copied from class:MinimizeTransformer
Get the url of the minimizer- Overrides:
_getMinimizeUrl
in classMinimizeTransformer
- Returns:
- The minimizer url
-
getHashSalt
protected String getHashSalt()
Description copied from class:MinimizeTransformer
Return the salt used by the hash cache- Overrides:
getHashSalt
in classMinimizeTransformer
- Returns:
- The salt string
-
_getSiteName
private String _getSiteName()
-
-