|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.apache.lenya.cms.publication.DocumentUtil
public final class DocumentUtil
Document utility class.
| Constructor Summary | |
|---|---|
DocumentUtil()
|
|
| Method Summary | |
|---|---|
static DocumentFactory |
createDocumentFactory(org.apache.avalon.framework.service.ServiceManager manager,
Session session)
Creates a document factory. |
protected static DocumentFactoryBuilder |
getBuilder(org.apache.avalon.framework.service.ServiceManager manager)
|
static Document |
getCurrentDocument(org.apache.avalon.framework.service.ServiceManager manager,
org.apache.cocoon.environment.Request request)
Returns the currently requested document or null if no
document is requested. |
static DocumentFactory |
getDocumentFactory(org.apache.avalon.framework.service.ServiceManager manager,
org.apache.cocoon.environment.Request request)
Returns a document factory for the session which is attached to the request. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DocumentUtil()
| Method Detail |
|---|
public static final DocumentFactory createDocumentFactory(org.apache.avalon.framework.service.ServiceManager manager,
Session session)
manager - The service manager.session - The session.
protected static DocumentFactoryBuilder getBuilder(org.apache.avalon.framework.service.ServiceManager manager)
public static DocumentFactory getDocumentFactory(org.apache.avalon.framework.service.ServiceManager manager,
org.apache.cocoon.environment.Request request)
manager - The service manager.request - The request.
public static Document getCurrentDocument(org.apache.avalon.framework.service.ServiceManager manager,
org.apache.cocoon.environment.Request request)
throws RepositoryException,
DocumentBuildException
null if no
document is requested.
manager - The service manager.request - The request.
RepositoryException - if an error occurs.
DocumentBuildException - if an error occurs.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||