public class HttpUtils extends Object
Modifier and Type | Method and Description |
---|---|
static org.apache.chemistry.opencmis.commons.server.CallContext |
createContext(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.ServletContext servletContext,
String binding,
CallContextHandler callContextHandler,
File tempDir,
int memoryThreshold)
Creates a
CallContext object from a servlet request. |
static BigInteger |
getBigIntegerParameter(javax.servlet.http.HttpServletRequest request,
String name)
Extracts an integer parameter.
|
static BigInteger |
getBigIntegerParameter(javax.servlet.http.HttpServletRequest request,
String name,
long def)
Extracts an integer parameter (with default).
|
static Boolean |
getBooleanParameter(javax.servlet.http.HttpServletRequest request,
String name)
Extracts a boolean parameter.
|
static boolean |
getBooleanParameter(javax.servlet.http.HttpServletRequest request,
String name,
boolean def)
Extracts a boolean parameter (with default).
|
static <T> T |
getEnumParameter(javax.servlet.http.HttpServletRequest request,
String name,
Class<T> clazz)
Extracts an enum parameter.
|
static String |
getStringParameter(javax.servlet.http.HttpServletRequest request,
String name)
Extracts a string parameter.
|
static String[] |
splitPath(javax.servlet.http.HttpServletRequest request)
Splits the path into its fragments.
|
public static org.apache.chemistry.opencmis.commons.server.CallContext createContext(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.ServletContext servletContext, String binding, CallContextHandler callContextHandler, File tempDir, int memoryThreshold)
CallContext
object from a servlet request.public static String[] splitPath(javax.servlet.http.HttpServletRequest request)
public static String getStringParameter(javax.servlet.http.HttpServletRequest request, String name)
public static boolean getBooleanParameter(javax.servlet.http.HttpServletRequest request, String name, boolean def)
public static Boolean getBooleanParameter(javax.servlet.http.HttpServletRequest request, String name)
public static BigInteger getBigIntegerParameter(javax.servlet.http.HttpServletRequest request, String name, long def)
public static BigInteger getBigIntegerParameter(javax.servlet.http.HttpServletRequest request, String name)
Copyright © 2018 City of Paris. All rights reserved.