public class VirtualViewerContentHandler extends Object implements com.snowbound.snapserv.servlet.FlexSnapSIContentHandlerInterface, com.snowbound.snapserv.servlet.FlexSnapSISaverInterface, FilenameFilter, com.snowbound.snapserv.servlet.CacheValidator
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_ANNOTATION_KEY |
protected static com.saperion.common.logging.Logger |
LOGGER |
| Constructor and Description |
|---|
VirtualViewerContentHandler() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(File dir,
String name) |
com.snowbound.snapserv.servlet.ContentHandlerResult |
deleteAnnotation(com.snowbound.snapserv.servlet.ContentHandlerInput arg0) |
com.snowbound.snapserv.servlet.ContentHandlerResult |
eventNotification(com.snowbound.snapserv.servlet.ContentHandlerInput arg0) |
com.snowbound.snapserv.servlet.ContentHandlerResult |
getAnnotationContent(com.snowbound.snapserv.servlet.ContentHandlerInput input)
Called to request the content for the specified annotation key in the form of a byte array.
|
com.snowbound.snapserv.servlet.ContentHandlerResult |
getAnnotationNames(com.snowbound.snapserv.servlet.ContentHandlerInput input)
Called to request an array of annotation object names for the specified clientInstance and
documentKey array.
|
com.snowbound.snapserv.servlet.ContentHandlerResult |
getAnnotationProperties(com.snowbound.snapserv.servlet.ContentHandlerInput input)
Called to request the properties for a specified annotation layer in the form of a hashtable.
|
com.snowbound.snapserv.servlet.ContentHandlerResult |
getAvailableDocumentIds(com.snowbound.snapserv.servlet.ContentHandlerInput input) |
com.snowbound.snapserv.servlet.ContentHandlerResult |
getBookmarkContent(com.snowbound.snapserv.servlet.ContentHandlerInput input) |
com.snowbound.snapserv.servlet.ContentHandlerResult |
getClientPreferencesXML(com.snowbound.snapserv.servlet.ContentHandlerInput input) |
com.snowbound.snapserv.servlet.ContentHandlerResult |
getDocumentContent(com.snowbound.snapserv.servlet.ContentHandlerInput input)
Called to request the content for the specified content key in the form of a byte array.
|
boolean |
hasAnnotations(com.snowbound.snapserv.servlet.ContentHandlerInput input)
Returns true if there is annotation content associated with the specified document.
|
void |
init(javax.servlet.ServletConfig config)
Performs any necessary configuration tasks.
|
com.snowbound.snapserv.servlet.ContentHandlerResult |
publishDocument(com.snowbound.snapserv.servlet.ContentHandlerInput arg0) |
protected void |
readPrerenderFormats(javax.servlet.ServletConfig config) |
com.snowbound.snapserv.servlet.ContentHandlerResult |
saveAnnotationContent(com.snowbound.snapserv.servlet.ContentHandlerInput input)
Called to save an annotation layer.
|
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 |
saveDocumentComponents(com.snowbound.snapserv.servlet.ContentHandlerInput input)
Called to save all components of a document including the document, annotations, and
bookmarks.
|
com.snowbound.snapserv.servlet.ContentHandlerResult |
saveDocumentComponentsAs(com.snowbound.snapserv.servlet.ContentHandlerInput arg0) |
com.snowbound.snapserv.servlet.ContentHandlerResult |
saveDocumentContent(com.snowbound.snapserv.servlet.ContentHandlerInput arg0) |
com.snowbound.snapserv.servlet.ContentHandlerResult |
sendDocumentContent(com.snowbound.snapserv.servlet.ContentHandlerInput arg0) |
com.snowbound.snapserv.servlet.ContentHandlerResult |
validateCache(com.snowbound.snapserv.servlet.ContentHandlerInput contentHandlerInput) |
public static final String DEFAULT_ANNOTATION_KEY
protected static final com.saperion.common.logging.Logger LOGGER
public boolean accept(File dir, String name)
accept in interface FilenameFilterFilenameFilter.accept(java.io.File, java.lang.String)public 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.FlexSnapSIAPIException(com.snowbound.snapserv.servlet.ContentHandlerInput)public com.snowbound.snapserv.servlet.ContentHandlerResult saveAnnotationContent(com.snowbound.snapserv.servlet.ContentHandlerInput input)
throws com.snowbound.snapserv.servlet.FlexSnapSIAPIException
saveAnnotationContent in interface com.snowbound.snapserv.servlet.FlexSnapSISaverInterfaceinput - A ContentHandlerInput object containing the following data:
com.snowbound.snapserv.servlet.FlexSnapSIAPIException - 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.FlexSnapSIAPIException(com.snowbound.snapserv.servlet.ContentHandlerInput)public com.snowbound.snapserv.servlet.ContentHandlerResult saveDocumentComponents(com.snowbound.snapserv.servlet.ContentHandlerInput input)
throws com.snowbound.snapserv.servlet.FlexSnapSIAPIException
saveDocumentComponents in interface com.snowbound.snapserv.servlet.FlexSnapSISaverInterfaceinput - A ContentHandlerInput object containing the following data:
com.snowbound.snapserv.servlet.FlexSnapSIAPIException - 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.FlexSnapSIAPIException(com.snowbound.snapserv.servlet.ContentHandlerInput)public 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.FlexSnapSIAPIException(com.snowbound.snapserv.servlet.ContentHandlerInput)public 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.FlexSnapSIAPIException(com.snowbound.snapserv.servlet.ContentHandlerInput)public com.snowbound.snapserv.servlet.ContentHandlerResult eventNotification(com.snowbound.snapserv.servlet.ContentHandlerInput arg0)
throws com.snowbound.snapserv.servlet.FlexSnapSIAPIException
eventNotification in interface com.snowbound.snapserv.servlet.FlexSnapSIContentHandlerInterfacecom.snowbound.snapserv.servlet.FlexSnapSIAPIException(com.snowbound.snapserv.servlet.ContentHandlerInput)public com.snowbound.snapserv.servlet.ContentHandlerResult getAnnotationContent(com.snowbound.snapserv.servlet.ContentHandlerInput input)
throws com.snowbound.snapserv.servlet.FlexSnapSIAPIException
getAnnotationContent in interface com.snowbound.snapserv.servlet.FlexSnapSIContentHandlerInterfaceinput - A ContentHandlerInput object containing the following data:
com.snowbound.snapserv.servlet.FlexSnapSIAPIException - FlexSnapSIAPIExceptionpublic com.snowbound.snapserv.servlet.ContentHandlerResult getAnnotationNames(com.snowbound.snapserv.servlet.ContentHandlerInput input)
getAnnotationNames in interface com.snowbound.snapserv.servlet.FlexSnapSIContentHandlerInterfaceinput - A ContentHandlerInput object containing the following data:
public com.snowbound.snapserv.servlet.ContentHandlerResult getAnnotationProperties(com.snowbound.snapserv.servlet.ContentHandlerInput input)
throws com.snowbound.snapserv.servlet.FlexSnapSIAPIException
getAnnotationProperties in interface com.snowbound.snapserv.servlet.FlexSnapSIContentHandlerInterfaceinput - A ContentHandlerInput object containing the following data:
com.snowbound.snapserv.servlet.FlexSnapSIAPIException - 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.FlexSnapSIAPIException(com.snowbound.snapserv.servlet.ContentHandlerInput)public 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.FlexSnapSIAPIException(com.snowbound.snapserv.servlet.ContentHandlerInput)public com.snowbound.snapserv.servlet.ContentHandlerResult getClientPreferencesXML(com.snowbound.snapserv.servlet.ContentHandlerInput input)
throws com.snowbound.snapserv.servlet.FlexSnapSIAPIException
getClientPreferencesXML in interface com.snowbound.snapserv.servlet.FlexSnapSIContentHandlerInterfacecom.snowbound.snapserv.servlet.FlexSnapSIAPIException(com.snowbound.snapserv.servlet.ContentHandlerInput)public com.snowbound.snapserv.servlet.ContentHandlerResult getDocumentContent(com.snowbound.snapserv.servlet.ContentHandlerInput input)
throws com.snowbound.snapserv.servlet.FlexSnapSIAPIException
getDocumentContent in interface com.snowbound.snapserv.servlet.FlexSnapSIContentHandlerInterfaceinput - A ContentHandlerInput object containing the following data:
com.snowbound.snapserv.servlet.FlexSnapSIAPIException - FlexSnapSIAPIExceptionpublic boolean hasAnnotations(com.snowbound.snapserv.servlet.ContentHandlerInput input)
throws com.snowbound.snapserv.servlet.FlexSnapSIAPIException
hasAnnotations in interface com.snowbound.snapserv.servlet.FlexSnapSIContentHandlerInterfaceinput - A ContentHandlerInput object containing the following data:
com.snowbound.snapserv.servlet.FlexSnapSIAPIException - FlexSnapSIAPIExceptionpublic void init(javax.servlet.ServletConfig config)
throws com.snowbound.snapserv.servlet.FlexSnapSIAPIException
init in interface com.snowbound.snapserv.servlet.FlexSnapSIContentHandlerInterfaceconfig - The ServletConfig object for the FlexSnap: SI Servlet.com.snowbound.snapserv.servlet.FlexSnapSIAPIException - FlexSnapSIAPIExceptionprotected void readPrerenderFormats(javax.servlet.ServletConfig config)
public 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.FlexSnapSIAPIException(com.snowbound.snapserv.servlet.ContentHandlerInput)public 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.FlexSnapSIAPIException(com.snowbound.snapserv.servlet.ContentHandlerInput)public com.snowbound.snapserv.servlet.ContentHandlerResult validateCache(com.snowbound.snapserv.servlet.ContentHandlerInput contentHandlerInput)
validateCache in interface com.snowbound.snapserv.servlet.CacheValidatorCopyright © 2016 SAPERION AG. All rights reserved.