de.hs_rm.cs.lecturenotes.server.core.logical.mediafile
Class MediaFileLocationUtil

java.lang.Object
  extended by de.hs_rm.cs.lecturenotes.server.core.logical.mediafile.MediaFileLocationUtil

public final class MediaFileLocationUtil
extends java.lang.Object

Utility class to locate a media file in the back-end system.

Version:
$LastChangedRevision: 241 $
Author:
Enrico Homann

Method Summary
static java.lang.String getRealFolderImagesPrint(javax.servlet.ServletContext context)
          Will return the real folder on the backend for images print.
static java.lang.String getRealFolderImagesPrint(javax.servlet.ServletContext context, Lecture lecture)
          Will return the real folder on the backend for images print.
static java.lang.String getRealFolderImagesWeb(javax.servlet.ServletContext context)
          Will return the real folder on the backend for images web.
static java.lang.String getRealFolderImagesWeb(javax.servlet.ServletContext context, Lecture lecture)
          Will return the real folder on the backend for images web.
static java.lang.String getUrlImagesWeb(javax.servlet.ServletContext context, Lecture lecture)
          Will return the Url for the client to access images web on the backend side.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getRealFolderImagesWeb

public static java.lang.String getRealFolderImagesWeb(javax.servlet.ServletContext context)
Will return the real folder on the backend for images web.

Parameters:
context - ServletContext
Returns:
String

getRealFolderImagesPrint

public static java.lang.String getRealFolderImagesPrint(javax.servlet.ServletContext context)
Will return the real folder on the backend for images print.

Parameters:
context - ServletContext
Returns:
String

getRealFolderImagesWeb

public static java.lang.String getRealFolderImagesWeb(javax.servlet.ServletContext context,
                                                      Lecture lecture)
Will return the real folder on the backend for images web.

Parameters:
context - ServletContext
lecture - Lecture
Returns:
String

getRealFolderImagesPrint

public static java.lang.String getRealFolderImagesPrint(javax.servlet.ServletContext context,
                                                        Lecture lecture)
Will return the real folder on the backend for images print.

Parameters:
context - ServletContext
lecture - Lecture
Returns:
String

getUrlImagesWeb

public static java.lang.String getUrlImagesWeb(javax.servlet.ServletContext context,
                                               Lecture lecture)
Will return the Url for the client to access images web on the backend side.

Parameters:
context - ServletContext
lecture - Lecture
Returns:
String