de.hs_rm.cs.lecturenotes.server.core.logical.extractcode
Class ExtractCodeLocationUtil

java.lang.Object
  extended by de.hs_rm.cs.lecturenotes.server.core.logical.extractcode.ExtractCodeLocationUtil

public final class ExtractCodeLocationUtil
extends java.lang.Object

Utility class to locate the extracted lecture's programming source code in the back-end system.

Version:
$LastChangedRevision: 293 $
Author:
Enrico Homann

Method Summary
static java.lang.String getRealFolderExtractCode(javax.servlet.ServletContext context)
          Will return the real folder on the backend for extract code.
static java.lang.String getRealFolderExtractCode(javax.servlet.ServletContext context, Lecture lecture)
          Will return the real folder on the backend for extractcode.
static java.lang.String getUrlExtractCode(javax.servlet.ServletContext context, Lecture lecture)
          Will return the Url for the client to access extracted code on the backend side.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getRealFolderExtractCode

public static java.lang.String getRealFolderExtractCode(javax.servlet.ServletContext context)
Will return the real folder on the backend for extract code.

Parameters:
context - ServletContext
Returns:
String

getRealFolderExtractCode

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

Parameters:
context - ServletContext
lecture - Lecture
Returns:
String

getUrlExtractCode

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

Parameters:
context - ServletContext
lecture - Lecture
Returns:
String