de.hs_rm.cs.lecturenotes.client.core.transport.servlet
Class MediaUploadServletUtil

java.lang.Object
  extended by de.hs_rm.cs.lecturenotes.client.core.transport.servlet.MediaUploadServletUtil

public final class MediaUploadServletUtil
extends java.lang.Object

Utility class for the servlet MediaUploadServlet.

Version:
$LastChangedRevision: 262 $
Author:
Enrico Homann

Field Summary
static java.lang.String TEMPLATE_MEDIAUPLOADSERVLETURL
          Template URI to access the servlet.
 
Method Summary
 java.lang.String getFilledMediaUploadURL(MediaUploadServletOptionEnum option, java.lang.Long entityId, MediaUploadServletTargetFolderEnum targetFolder)
          Fills the URI Template with the given values and returns the string.
static MediaUploadServletUtil getInstance()
          Will return the singleton.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TEMPLATE_MEDIAUPLOADSERVLETURL

public static final java.lang.String TEMPLATE_MEDIAUPLOADSERVLETURL
Template URI to access the servlet.

Method Detail

getInstance

public static MediaUploadServletUtil getInstance()
Will return the singleton.

Returns:
MediaUploadServletUtil

getFilledMediaUploadURL

public java.lang.String getFilledMediaUploadURL(MediaUploadServletOptionEnum option,
                                                java.lang.Long entityId,
                                                MediaUploadServletTargetFolderEnum targetFolder)
Fills the URI Template with the given values and returns the string.

Parameters:
option - MediaUploadServletOptionEnum, value for option
entityId - Long, value for entity_id
targetFolder - MediaUploadServletTargetFolderEnum, value for target_folder
Returns:
String