public abstract class AbstractContentHandler extends Object implements com.snowbound.snapserv.servlet.FlexSnapSIContentHandlerInterface, com.snowbound.snapserv.servlet.FlexSnapSISaverInterface, FilenameFilter, com.snowbound.snapserv.servlet.CacheValidator
| 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.snapserv.servlet.ContentHandlerResult |
deleteAnnotation(com.snowbound.snapserv.servlet.ContentHandlerInput arg0) |
protected boolean |
documentCanBeRendered(byte[] documentBytes,
OpenDocumentBean bean) |
com.snowbound.snapserv.servlet.ContentHandlerResult |
eventNotification(com.snowbound.snapserv.servlet.ContentHandlerInput input) |
protected com.snowbound.snapserv.servlet.ContentHandlerResult |
getAnnotationContentInternal(com.snowbound.snapserv.servlet.ContentHandlerInput input,
OpenDocumentBean openDocumentBean) |
protected com.snowbound.snapserv.servlet.ContentHandlerResult |
getAnnotationNamesInternal(com.snowbound.snapserv.servlet.ContentHandlerInput input) |
protected Map<String,Object> |
getAnnotationPropertiesInternal(com.snowbound.snapserv.servlet.ContentHandlerInput input) |
com.snowbound.snapserv.servlet.ContentHandlerResult |
getAvailableDocumentIds(com.snowbound.snapserv.servlet.ContentHandlerInput input) |
com.snowbound.snapserv.servlet.ContentHandlerResult |
getBookmarkContent(com.snowbound.snapserv.servlet.ContentHandlerInput input) |
protected com.snowbound.snapserv.servlet.ContentHandlerResult |
getClientPreferencesXmlInternal(com.snowbound.snapserv.servlet.ContentHandlerInput input) |
protected byte[] |
getDocumentBytes(OpenDocumentBean openDocumentBean,
javax.servlet.http.HttpSession session,
String currentFilename) |
protected abstract String |
getHdocFromContentHandlerInput(com.snowbound.snapserv.servlet.ContentHandlerInput input) |
protected String |
getIniAnnotation(com.snowbound.snapserv.servlet.ContentHandlerInput input) |
protected String |
getIXOSAnnotation(com.snowbound.snapserv.servlet.ContentHandlerInput input) |
protected OpenDocumentBean |
getOpenDocumentBean(com.snowbound.snapserv.servlet.ContentHandlerInput input) |
protected int |
getPageFileNumber(String fileName) |
protected javax.servlet.http.HttpSession |
getSession(com.snowbound.snapserv.servlet.ContentHandlerInput input,
boolean allowFallback) |
protected byte[] |
getTemporaryDocumentBytes(TemporaryDocumentId id) |
protected boolean |
handleIXOSFiles(com.snowbound.snapserv.servlet.ContentHandlerInput input,
OpenDocumentBean openDocumentBean,
javax.servlet.http.HttpSession session,
DocumentService docService) |
boolean |
hasAnnotations(com.snowbound.snapserv.servlet.ContentHandlerInput input) |
protected boolean |
isPageFile(String fileName) |
com.snowbound.snapserv.servlet.ContentHandlerResult |
publishDocument(com.snowbound.snapserv.servlet.ContentHandlerInput arg0) |
protected void |
readPrecheckFormats(javax.servlet.ServletConfig config) |
protected void |
readPrerenderFormats(javax.servlet.ServletConfig config) |
protected void |
saveAnnotationContentInternal(com.snowbound.snapserv.servlet.ContentHandlerInput input) |
com.snowbound.snapserv.servlet.ContentHandlerResult |
saveBookmarkContent(com.snowbound.snapserv.servlet.ContentHandlerInput arg0) |
com.snowbound.snapserv.servlet.ContentHandlerResult |
saveClientPreferencesXML(com.snowbound.snapserv.servlet.ContentHandlerInput input) |
com.snowbound.snapserv.servlet.ContentHandlerResult |
saveDocumentComponentsAs(com.snowbound.snapserv.servlet.ContentHandlerInput arg0) |
protected com.snowbound.snapserv.servlet.ContentHandlerResult |
saveDocumentComponentsInternal(com.snowbound.snapserv.servlet.ContentHandlerInput input,
OpenDocumentBean openDocumentBean) |
com.snowbound.snapserv.servlet.ContentHandlerResult |
saveDocumentContent(com.snowbound.snapserv.servlet.ContentHandlerInput arg0) |
protected boolean |
securityCheck(com.snowbound.snapserv.servlet.ContentHandlerInput contentHandlerInput) |
com.snowbound.snapserv.servlet.ContentHandlerResult |
sendDocumentContent(com.snowbound.snapserv.servlet.ContentHandlerInput arg0) |
protected void |
setErrorFlagInBean(OpenDocumentBean bean) |
com.snowbound.snapserv.servlet.ContentHandlerResult |
validateCache(com.snowbound.snapserv.servlet.ContentHandlerInput contentHandlerInput) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprotected 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 FilenameFilterpublic com.snowbound.snapserv.servlet.ContentHandlerResult publishDocument(com.snowbound.snapserv.servlet.ContentHandlerInput arg0)
throws com.snowbound.snapserv.servlet.FlexSnapSIAPIException
publishDocument in interface com.snowbound.snapserv.servlet.FlexSnapSISaverInterfacecom.snowbound.snapserv.servlet.FlexSnapSIAPIExceptionpublic com.snowbound.snapserv.servlet.ContentHandlerResult saveBookmarkContent(com.snowbound.snapserv.servlet.ContentHandlerInput arg0)
throws com.snowbound.snapserv.servlet.FlexSnapSIAPIException
saveBookmarkContent in interface com.snowbound.snapserv.servlet.FlexSnapSISaverInterfacecom.snowbound.snapserv.servlet.FlexSnapSIAPIExceptionpublic com.snowbound.snapserv.servlet.ContentHandlerResult saveDocumentComponentsAs(com.snowbound.snapserv.servlet.ContentHandlerInput arg0)
throws com.snowbound.snapserv.servlet.FlexSnapSIAPIException
saveDocumentComponentsAs in interface com.snowbound.snapserv.servlet.FlexSnapSISaverInterfacecom.snowbound.snapserv.servlet.FlexSnapSIAPIExceptionpublic com.snowbound.snapserv.servlet.ContentHandlerResult saveDocumentContent(com.snowbound.snapserv.servlet.ContentHandlerInput arg0)
throws com.snowbound.snapserv.servlet.FlexSnapSIAPIException
saveDocumentContent in interface com.snowbound.snapserv.servlet.FlexSnapSISaverInterfacecom.snowbound.snapserv.servlet.FlexSnapSIAPIExceptionpublic com.snowbound.snapserv.servlet.ContentHandlerResult deleteAnnotation(com.snowbound.snapserv.servlet.ContentHandlerInput arg0)
throws com.snowbound.snapserv.servlet.FlexSnapSIAPIException
deleteAnnotation in interface com.snowbound.snapserv.servlet.FlexSnapSIContentHandlerInterfacecom.snowbound.snapserv.servlet.FlexSnapSIAPIExceptionpublic com.snowbound.snapserv.servlet.ContentHandlerResult eventNotification(com.snowbound.snapserv.servlet.ContentHandlerInput input)
throws com.snowbound.snapserv.servlet.FlexSnapSIAPIException
eventNotification in interface com.snowbound.snapserv.servlet.FlexSnapSIContentHandlerInterfacecom.snowbound.snapserv.servlet.FlexSnapSIAPIExceptionpublic com.snowbound.snapserv.servlet.ContentHandlerResult getAvailableDocumentIds(com.snowbound.snapserv.servlet.ContentHandlerInput input)
throws com.snowbound.snapserv.servlet.FlexSnapSIAPIException
getAvailableDocumentIds in interface com.snowbound.snapserv.servlet.FlexSnapSIContentHandlerInterfacecom.snowbound.snapserv.servlet.FlexSnapSIAPIExceptionpublic com.snowbound.snapserv.servlet.ContentHandlerResult getBookmarkContent(com.snowbound.snapserv.servlet.ContentHandlerInput input)
throws com.snowbound.snapserv.servlet.FlexSnapSIAPIException
getBookmarkContent in interface com.snowbound.snapserv.servlet.FlexSnapSIContentHandlerInterfacecom.snowbound.snapserv.servlet.FlexSnapSIAPIExceptionpublic com.snowbound.snapserv.servlet.ContentHandlerResult sendDocumentContent(com.snowbound.snapserv.servlet.ContentHandlerInput arg0)
throws com.snowbound.snapserv.servlet.FlexSnapSIAPIException
sendDocumentContent in interface com.snowbound.snapserv.servlet.FlexSnapSIContentHandlerInterfacecom.snowbound.snapserv.servlet.FlexSnapSIAPIExceptionpublic com.snowbound.snapserv.servlet.ContentHandlerResult validateCache(com.snowbound.snapserv.servlet.ContentHandlerInput contentHandlerInput)
validateCache in interface com.snowbound.snapserv.servlet.CacheValidatorpublic boolean hasAnnotations(com.snowbound.snapserv.servlet.ContentHandlerInput input)
throws com.snowbound.snapserv.servlet.FlexSnapSIAPIException
hasAnnotations in interface com.snowbound.snapserv.servlet.FlexSnapSIContentHandlerInterfacecom.snowbound.snapserv.servlet.FlexSnapSIAPIExceptionpublic com.snowbound.snapserv.servlet.ContentHandlerResult saveClientPreferencesXML(com.snowbound.snapserv.servlet.ContentHandlerInput input)
throws com.snowbound.snapserv.servlet.FlexSnapSIAPIException
saveClientPreferencesXML in interface com.snowbound.snapserv.servlet.FlexSnapSIContentHandlerInterfacecom.snowbound.snapserv.servlet.FlexSnapSIAPIExceptionprotected void saveAnnotationContentInternal(com.snowbound.snapserv.servlet.ContentHandlerInput input)
throws AbstractContentHandler.SessionNotFoundException,
AbstractContentHandler.BeanNotFoundException,
com.snowbound.snapserv.servlet.FlexSnapSIAPIException,
JAXBException,
SAXException,
AuthenticationException,
SystemException,
ConvertAnnotationException,
DocumentAccessException
AbstractContentHandler.SessionNotFoundExceptionAbstractContentHandler.BeanNotFoundExceptioncom.snowbound.snapserv.servlet.FlexSnapSIAPIExceptionJAXBExceptionSAXExceptionAuthenticationExceptionSystemExceptionConvertAnnotationExceptionDocumentAccessExceptionprotected boolean handleIXOSFiles(com.snowbound.snapserv.servlet.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.snapserv.servlet.ContentHandlerInput input) throws AuthenticationException, SystemException, AbstractContentHandler.SessionNotFoundException, AbstractContentHandler.BeanNotFoundException
protected String getIXOSAnnotation(com.snowbound.snapserv.servlet.ContentHandlerInput input) throws AuthenticationException, SystemException, AbstractContentHandler.SessionNotFoundException, AbstractContentHandler.BeanNotFoundException
protected com.snowbound.snapserv.servlet.ContentHandlerResult getAnnotationContentInternal(com.snowbound.snapserv.servlet.ContentHandlerInput input,
OpenDocumentBean openDocumentBean)
throws AbstractContentHandler.SessionNotFoundException,
AuthenticationException,
SystemException,
AbstractContentHandler.BeanNotFoundException,
ConvertAnnotationException
protected com.snowbound.snapserv.servlet.ContentHandlerResult getAnnotationNamesInternal(com.snowbound.snapserv.servlet.ContentHandlerInput input)
throws com.snowbound.snapserv.servlet.FlexSnapSIAPIException
com.snowbound.snapserv.servlet.FlexSnapSIAPIExceptionprotected com.snowbound.snapserv.servlet.ContentHandlerResult saveDocumentComponentsInternal(com.snowbound.snapserv.servlet.ContentHandlerInput input,
OpenDocumentBean openDocumentBean)
throws com.snowbound.snapserv.servlet.FlexSnapSIAPIException
com.snowbound.snapserv.servlet.FlexSnapSIAPIExceptionprotected com.snowbound.snapserv.servlet.ContentHandlerResult getClientPreferencesXmlInternal(com.snowbound.snapserv.servlet.ContentHandlerInput input)
protected Map<String,Object> getAnnotationPropertiesInternal(com.snowbound.snapserv.servlet.ContentHandlerInput input) throws com.snowbound.snapserv.servlet.FlexSnapSIAPIException, AbstractContentHandler.BeanNotFoundException, AbstractContentHandler.SessionNotFoundException, AuthenticationException, SystemException
com.snowbound.snapserv.servlet.FlexSnapSIAPIExceptionAbstractContentHandler.BeanNotFoundExceptionAbstractContentHandler.SessionNotFoundExceptionAuthenticationExceptionSystemExceptionprotected byte[] getDocumentBytes(OpenDocumentBean openDocumentBean, javax.servlet.http.HttpSession session, String currentFilename) throws Exception
Exceptionprotected byte[] getTemporaryDocumentBytes(TemporaryDocumentId id) throws Exception
Exceptionprotected 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.snapserv.servlet.ContentHandlerInput input,
boolean allowFallback)
throws AbstractContentHandler.SessionNotFoundException
protected OpenDocumentBean getOpenDocumentBean(com.snowbound.snapserv.servlet.ContentHandlerInput input) throws AbstractContentHandler.SessionNotFoundException, AbstractContentHandler.BeanNotFoundException
protected boolean securityCheck(com.snowbound.snapserv.servlet.ContentHandlerInput contentHandlerInput)
protected abstract String getHdocFromContentHandlerInput(com.snowbound.snapserv.servlet.ContentHandlerInput input)
protected void setErrorFlagInBean(OpenDocumentBean bean)
Copyright © 2016 Lexmark Enterprise Software Deutschland GmbH. All rights reserved.