public abstract class AbstractContentHandler extends Object implements com.snowbound.contenthandler.interfaces.VirtualViewerContentHandlerInterface, com.snowbound.contenthandler.interfaces.AvailableDocumentsInterface, com.snowbound.contenthandler.interfaces.AnnotationsInterface, com.snowbound.contenthandler.interfaces.EventSubscriberInterface, com.snowbound.contenthandler.interfaces.CacheValidator, FilenameFilter
Modifier and Type | Class and Description |
---|---|
protected static class |
AbstractContentHandler.BeanNotFoundException |
protected static class |
AbstractContentHandler.SessionNotFoundException |
Modifier and Type | Field and Description |
---|---|
protected static String |
DEFAULT_ANNOTATION_KEY |
protected javax.servlet.ServletContext |
servletContext |
protected boolean |
useRenderEngine |
protected boolean |
useViewerSessionMap |
protected boolean |
vectorPDF |
Constructor and Description |
---|
AbstractContentHandler() |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(File dir,
String name) |
protected byte[] |
convertTxtToPdfIfRequired(byte[] original,
String filename) |
com.snowbound.contenthandler.ContentHandlerResult |
deleteAnnotation(com.snowbound.contenthandler.ContentHandlerInput arg0) |
protected boolean |
documentCanBeRendered(byte[] documentBytes,
OpenDocumentBean bean) |
com.snowbound.contenthandler.ContentHandlerResult |
eventNotification(com.snowbound.contenthandler.ContentHandlerInput input) |
protected com.snowbound.contenthandler.ContentHandlerResult |
getAnnotationContentInternal(com.snowbound.contenthandler.ContentHandlerInput input,
OpenDocumentBean openDocumentBean) |
protected com.snowbound.contenthandler.ContentHandlerResult |
getAnnotationNamesInternal(com.snowbound.contenthandler.ContentHandlerInput input) |
protected Hashtable |
getAnnotationPropertiesInternal(com.snowbound.contenthandler.ContentHandlerInput input) |
com.snowbound.contenthandler.ContentHandlerResult |
getAvailableDocumentIds(com.snowbound.contenthandler.ContentHandlerInput input) |
protected com.snowbound.contenthandler.ContentHandlerResult |
getClientPreferencesXmlInternal(com.snowbound.contenthandler.ContentHandlerInput input) |
protected byte[] |
getDocumentBytes(OpenDocumentBean openDocumentBean,
javax.servlet.http.HttpSession session,
String currentFilename) |
protected abstract String |
getHdocFromContentHandlerInput(com.snowbound.contenthandler.ContentHandlerInput input) |
protected String |
getIniAnnotation(com.snowbound.contenthandler.ContentHandlerInput input) |
protected String |
getIXOSAnnotation(com.snowbound.contenthandler.ContentHandlerInput input) |
protected OpenDocumentBean |
getOpenDocumentBean(com.snowbound.contenthandler.ContentHandlerInput input) |
protected int |
getPageFileNumber(String fileName) |
protected javax.servlet.http.HttpSession |
getSession(com.snowbound.contenthandler.ContentHandlerInput input,
boolean allowFallback) |
protected byte[] |
getTemporaryDocumentBytes(TemporaryDocumentId id) |
protected boolean |
handleIXOSFiles(com.snowbound.contenthandler.ContentHandlerInput input,
OpenDocumentBean openDocumentBean,
javax.servlet.http.HttpSession session,
DocumentService docService) |
boolean |
hasAnnotations(com.snowbound.contenthandler.ContentHandlerInput contentHandlerInput) |
protected boolean |
isPageFile(String fileName) |
protected void |
readPrecheckFormats(javax.servlet.ServletConfig config) |
protected void |
readPrerenderFormats(javax.servlet.ServletConfig config) |
protected void |
saveAnnotationContentInternal(com.snowbound.contenthandler.ContentHandlerInput input) |
com.snowbound.contenthandler.ContentHandlerResult |
saveClientPreferencesXML(com.snowbound.contenthandler.ContentHandlerInput input)
Deprecated.
|
com.snowbound.contenthandler.ContentHandlerResult |
saveDocumentComponentsAs(com.snowbound.contenthandler.ContentHandlerInput arg0) |
protected com.snowbound.contenthandler.ContentHandlerResult |
saveDocumentComponentsInternal(com.snowbound.contenthandler.ContentHandlerInput input,
OpenDocumentBean openDocumentBean) |
com.snowbound.contenthandler.ContentHandlerResult |
saveDocumentContent(com.snowbound.contenthandler.ContentHandlerInput arg0) |
protected boolean |
securityCheck(com.snowbound.contenthandler.ContentHandlerInput contentHandlerInput) |
protected void |
setErrorFlagInBean(OpenDocumentBean bean) |
com.snowbound.contenthandler.ContentHandlerResult |
validateCache(com.snowbound.contenthandler.ContentHandlerInput contentHandlerInput) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
protected static final String DEFAULT_ANNOTATION_KEY
protected javax.servlet.ServletContext servletContext
protected boolean useRenderEngine
protected boolean useViewerSessionMap
protected boolean vectorPDF
public boolean accept(File dir, String name)
accept
in interface FilenameFilter
public com.snowbound.contenthandler.ContentHandlerResult saveDocumentComponentsAs(com.snowbound.contenthandler.ContentHandlerInput arg0) throws com.snowbound.contenthandler.VirtualViewerAPIException
saveDocumentComponentsAs
in interface com.snowbound.contenthandler.interfaces.VirtualViewerContentHandlerInterface
com.snowbound.contenthandler.VirtualViewerAPIException
public com.snowbound.contenthandler.ContentHandlerResult saveDocumentContent(com.snowbound.contenthandler.ContentHandlerInput arg0) throws com.snowbound.contenthandler.VirtualViewerAPIException
saveDocumentContent
in interface com.snowbound.contenthandler.interfaces.VirtualViewerContentHandlerInterface
com.snowbound.contenthandler.VirtualViewerAPIException
public com.snowbound.contenthandler.ContentHandlerResult deleteAnnotation(com.snowbound.contenthandler.ContentHandlerInput arg0) throws com.snowbound.contenthandler.VirtualViewerAPIException
deleteAnnotation
in interface com.snowbound.contenthandler.interfaces.AnnotationsInterface
com.snowbound.contenthandler.VirtualViewerAPIException
public com.snowbound.contenthandler.ContentHandlerResult eventNotification(com.snowbound.contenthandler.ContentHandlerInput input) throws com.snowbound.contenthandler.VirtualViewerAPIException
eventNotification
in interface com.snowbound.contenthandler.interfaces.EventSubscriberInterface
com.snowbound.contenthandler.VirtualViewerAPIException
public com.snowbound.contenthandler.ContentHandlerResult getAvailableDocumentIds(com.snowbound.contenthandler.ContentHandlerInput input) throws com.snowbound.contenthandler.VirtualViewerAPIException
getAvailableDocumentIds
in interface com.snowbound.contenthandler.interfaces.AvailableDocumentsInterface
com.snowbound.contenthandler.VirtualViewerAPIException
public com.snowbound.contenthandler.ContentHandlerResult validateCache(com.snowbound.contenthandler.ContentHandlerInput contentHandlerInput)
validateCache
in interface com.snowbound.contenthandler.interfaces.CacheValidator
public boolean hasAnnotations(com.snowbound.contenthandler.ContentHandlerInput contentHandlerInput) throws com.snowbound.contenthandler.VirtualViewerAPIException
com.snowbound.contenthandler.VirtualViewerAPIException
@Deprecated public com.snowbound.contenthandler.ContentHandlerResult saveClientPreferencesXML(com.snowbound.contenthandler.ContentHandlerInput input) throws com.snowbound.contenthandler.VirtualViewerAPIException
com.snowbound.contenthandler.VirtualViewerAPIException
protected void saveAnnotationContentInternal(com.snowbound.contenthandler.ContentHandlerInput input) throws AbstractContentHandler.SessionNotFoundException, AbstractContentHandler.BeanNotFoundException, com.snowbound.contenthandler.VirtualViewerAPIException, JAXBException, SAXException, AuthenticationException, SystemException, ConvertAnnotationException, DocumentAccessException
AbstractContentHandler.SessionNotFoundException
AbstractContentHandler.BeanNotFoundException
com.snowbound.contenthandler.VirtualViewerAPIException
JAXBException
SAXException
AuthenticationException
SystemException
ConvertAnnotationException
DocumentAccessException
protected boolean handleIXOSFiles(com.snowbound.contenthandler.ContentHandlerInput input, OpenDocumentBean openDocumentBean, javax.servlet.http.HttpSession session, DocumentService docService) throws AuthenticationException, SystemException, AbstractContentHandler.SessionNotFoundException, AbstractContentHandler.BeanNotFoundException, ConvertAnnotationException, JAXBException, SAXException
protected boolean isPageFile(String fileName)
protected int getPageFileNumber(String fileName)
protected String getIniAnnotation(com.snowbound.contenthandler.ContentHandlerInput input) throws AuthenticationException, SystemException, AbstractContentHandler.SessionNotFoundException, AbstractContentHandler.BeanNotFoundException
protected String getIXOSAnnotation(com.snowbound.contenthandler.ContentHandlerInput input) throws AuthenticationException, SystemException, AbstractContentHandler.SessionNotFoundException, AbstractContentHandler.BeanNotFoundException
protected com.snowbound.contenthandler.ContentHandlerResult getAnnotationContentInternal(com.snowbound.contenthandler.ContentHandlerInput input, OpenDocumentBean openDocumentBean) throws AbstractContentHandler.SessionNotFoundException, AuthenticationException, SystemException, AbstractContentHandler.BeanNotFoundException, ConvertAnnotationException
protected com.snowbound.contenthandler.ContentHandlerResult getAnnotationNamesInternal(com.snowbound.contenthandler.ContentHandlerInput input) throws com.snowbound.contenthandler.VirtualViewerAPIException
com.snowbound.contenthandler.VirtualViewerAPIException
protected com.snowbound.contenthandler.ContentHandlerResult saveDocumentComponentsInternal(com.snowbound.contenthandler.ContentHandlerInput input, OpenDocumentBean openDocumentBean) throws com.snowbound.contenthandler.VirtualViewerAPIException
com.snowbound.contenthandler.VirtualViewerAPIException
protected com.snowbound.contenthandler.ContentHandlerResult getClientPreferencesXmlInternal(com.snowbound.contenthandler.ContentHandlerInput input)
protected Hashtable getAnnotationPropertiesInternal(com.snowbound.contenthandler.ContentHandlerInput input) throws com.snowbound.contenthandler.VirtualViewerAPIException, AbstractContentHandler.BeanNotFoundException, AbstractContentHandler.SessionNotFoundException, AuthenticationException, SystemException
com.snowbound.contenthandler.VirtualViewerAPIException
AbstractContentHandler.BeanNotFoundException
AbstractContentHandler.SessionNotFoundException
AuthenticationException
SystemException
protected byte[] getDocumentBytes(OpenDocumentBean openDocumentBean, javax.servlet.http.HttpSession session, String currentFilename) throws Exception
Exception
protected byte[] getTemporaryDocumentBytes(TemporaryDocumentId id) throws Exception
Exception
protected byte[] convertTxtToPdfIfRequired(byte[] original, String filename)
protected boolean documentCanBeRendered(byte[] documentBytes, OpenDocumentBean bean)
protected void readPrecheckFormats(javax.servlet.ServletConfig config)
protected void readPrerenderFormats(javax.servlet.ServletConfig config)
protected javax.servlet.http.HttpSession getSession(com.snowbound.contenthandler.ContentHandlerInput input, boolean allowFallback) throws AbstractContentHandler.SessionNotFoundException
protected OpenDocumentBean getOpenDocumentBean(com.snowbound.contenthandler.ContentHandlerInput input) throws AbstractContentHandler.SessionNotFoundException, AbstractContentHandler.BeanNotFoundException
protected boolean securityCheck(com.snowbound.contenthandler.ContentHandlerInput contentHandlerInput)
protected abstract String getHdocFromContentHandlerInput(com.snowbound.contenthandler.ContentHandlerInput input)
protected void setErrorFlagInBean(OpenDocumentBean bean)
Copyright © 2021 Hyland Software Germany GmbH. All rights reserved.