Snapper 1.1 API

org.enhydra.snapperPreviewer.presentation
Class ShowPicture

java.lang.Object
  extended by org.enhydra.snapperPreviewer.presentation.BasePO
      extended by org.enhydra.snapperPreviewer.presentation.ShowPicture
All Implemented Interfaces:
com.lutris.appserver.server.httpPresentation.HttpPresentation

public class ShowPicture
extends BasePO

Author:
Milin Radivoj

Field Summary
 
Fields inherited from class org.enhydra.snapperPreviewer.presentation.BasePO
comms, ENCODING, errorText, infoText, pageId, paramDelimiter
 
Constructor Summary
ShowPicture()
           
 
Method Summary
 boolean chackSupportedPictureFormat(java.lang.String typeOfFile)
           
protected  org.enhydra.xml.xmlc.XMLObject getDOM()
          This abstract method should be overriden by presentation class, and it is responsible for generation of http response to user in form of XMLObject instance.
 java.lang.String mapMimiType(java.lang.String typeOfFile)
           
protected  void parseAndShowPictureInPicture(java.lang.String pictureId, java.lang.String fileToShow, java.lang.String type)
           
protected  void showRegularFile(java.lang.String filePath, java.lang.String type)
           
 
Methods inherited from class org.enhydra.snapperPreviewer.presentation.BasePO
addHiddenInputField, addHiddenInputFields, addHiddenInputFields, clearError, createInputField, formParameterList, getAppConfiguration, getBoolParameter, getError, getFromURL, getLevelUp, getParamValue, getReturnURL, getStartSearchURL, isIn, listAllParameters, printFreeMemory, reformParameterList, removeIdAttrFromTree, run, setError, setError, show
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShowPicture

public ShowPicture()
Method Detail

getDOM

protected org.enhydra.xml.xmlc.XMLObject getDOM()
                                         throws java.lang.Exception
Description copied from class: BasePO
This abstract method should be overriden by presentation class, and it is responsible for generation of http response to user in form of XMLObject instance.

Specified by:
getDOM in class BasePO
Returns:
dynamically populated XMLObject generated as response to user http request.
Throws:
java.lang.Exception

showRegularFile

protected void showRegularFile(java.lang.String filePath,
                               java.lang.String type)
                        throws java.lang.Exception
Throws:
java.lang.Exception

parseAndShowPictureInPicture

protected void parseAndShowPictureInPicture(java.lang.String pictureId,
                                            java.lang.String fileToShow,
                                            java.lang.String type)
                                     throws java.lang.Exception
Throws:
java.lang.Exception

mapMimiType

public java.lang.String mapMimiType(java.lang.String typeOfFile)

chackSupportedPictureFormat

public boolean chackSupportedPictureFormat(java.lang.String typeOfFile)

Snapper 1.1 API