public abstract class Util extends Object
Constructor and Description |
---|
Util() |
Modifier and Type | Method and Description |
---|---|
static String |
getCurrentUrl(javax.servlet.http.HttpServletRequest request)
reconstructs the current request url.
|
static String |
getFeedbackUrl(javax.servlet.http.HttpServletRequest request)
Returns the feedbackUrl if set, otherwise null
substitutes the first parameter with the url encoded request uri, if request != null.
|
static double |
getParam(javax.servlet.ServletContext context,
String key,
double defaultValue)
Returns the context init parameter key or defaultValue.
|
static long |
getParam(javax.servlet.ServletContext context,
String key,
long defaultValue)
Returns the context init parameter key or defaultValue.
|
static String |
getParam(javax.servlet.ServletContext context,
String key,
String defaultValue)
Returns the context init parameter key or defaultValue.
|
public static String getFeedbackUrl(javax.servlet.http.HttpServletRequest request)
request
- the requestpublic static String getCurrentUrl(javax.servlet.http.HttpServletRequest request)
request
- the requestpublic static String getParam(javax.servlet.ServletContext context, String key, String defaultValue)
context
- the contextkey
- the keydefaultValue
- the default valuepublic static long getParam(javax.servlet.ServletContext context, String key, long defaultValue)
context
- the contextkey
- the keydefaultValue
- the default valuepublic static double getParam(javax.servlet.ServletContext context, String key, double defaultValue)
context
- the contextkey
- the keydefaultValue
- the default valueCopyright © 2019 SEMS project @ University of Rostock. All rights reserved.