public interface DocumentHandlerFactory
DocumentHandlerFactory
Factory for generating DocumentHandlers for specific document types
| Modifier and Type | Method and Description |
|---|---|
boolean |
getConstraintsEnabled()
getConstraintsEnabled
|
DocumentHandler |
getDocumentHandler(String documentType)
getDocumentHandler
|
DocumentHandler |
getDocumentHandlerForPath(String documentPath)
getDocumentHandlerForPath
|
boolean |
getPermissionsEnabled()
getPermissionsEnabled
|
void |
registerDocumentHandler(DocumentHandler documentHandler)
addDocumentHandler
|
void |
setConstraintsEnabled(boolean enabled)
setConstraintsEnabled
|
void |
setPermissionsEnabled(boolean enabled)
setPermissionsEnabled
|
void |
shutdown()
shutdown - gracefully shutdown handlers and disconnect
from other singleton components, (e.g.
|
DocumentHandler getDocumentHandler(String documentType) throws UnsupportedDocumentTypeException
getDocumentHandler
documentType - document type to retreive a handler for. Examples: .psml, .linkdocumentType indicated. Never returns null.UnsupportedDocumentTypeException - If no handler has been registered for the
documentType argument.DocumentHandler getDocumentHandlerForPath(String documentPath) throws UnsupportedDocumentTypeException
getDocumentHandlerForPath
documentPath - UnsupportedDocumentTypeExceptionvoid registerDocumentHandler(DocumentHandler documentHandler) throws DocumentTypeAlreadyRegisteredException
addDocumentHandler
documentHandler - DocumentTypeAlreadyRegisteredExceptionboolean getConstraintsEnabled()
getConstraintsEnabled
void setConstraintsEnabled(boolean enabled)
setConstraintsEnabled
enabled - indicatorboolean getPermissionsEnabled()
getPermissionsEnabled
void setPermissionsEnabled(boolean enabled)
setPermissionsEnabled
enabled - indicatorvoid shutdown()
Copyright © 1999–2016 The Apache Software Foundation. All rights reserved.