Class PreviewEntity

    • Constructor Detail

      • PreviewEntity

        protected PreviewEntity​(javax.servlet.http.HttpServletRequest request,
                                Preview preview)
        Default constructorC
        Parameters:
        request -
        preview -
      • PreviewEntity

        protected PreviewEntity()
    • Method Detail

      • createFrom

        public static PreviewEntity createFrom​(javax.servlet.http.HttpServletRequest request,
                                               Preview preview)
        Creates a new Preview entity from the specified preview.
        Parameters:
        request - the current http request
        preview - the preview to entitify.
        Returns:
        the entity representing the specified preview.
      • getURL

        protected String getURL()
        Returns:
        the url
      • getOriginalFileName

        protected String getOriginalFileName()
        Returns:
        the originalFileName
      • getWidth

        protected String getWidth()
        Returns:
        the width
      • getHeight

        protected String getHeight()
        Returns:
        the height