public final class FormUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
FORM_PARAM_MAP |
static String |
FORM_PARAM_MAP_DECODED |
static String |
FORM_PARAMS_FROM_HTTP_PARAMS |
Modifier and Type | Method and Description |
---|---|
static void |
addPropertyToForm(javax.ws.rs.core.MultivaluedMap<String,String> map,
String name,
Object value) |
static String |
formToString(javax.ws.rs.core.Form form) |
static boolean |
isFormPostRequest(Message m) |
static void |
logRequestParametersIfNeeded(Map<String,List<String>> params,
String enc) |
static void |
populateMapFromMultipart(javax.ws.rs.core.MultivaluedMap<String,String> params,
MultipartBody body,
Message m,
boolean decode) |
static void |
populateMapFromString(javax.ws.rs.core.MultivaluedMap<String,String> params,
Message m,
String postBody,
String enc,
boolean decode) |
static void |
populateMapFromString(javax.ws.rs.core.MultivaluedMap<String,String> params,
Message m,
String postBody,
String enc,
boolean decode,
javax.servlet.http.HttpServletRequest request) |
static void |
populateMapFromStringOrHttpRequest(javax.ws.rs.core.MultivaluedMap<String,String> params,
Message m,
String postBody,
String enc,
boolean decode) |
static String |
readBody(InputStream is,
String encoding) |
static javax.ws.rs.core.Form |
readForm(FormEncodingProvider<javax.ws.rs.core.Form> provider,
Message message) |
static void |
restoreForm(FormEncodingProvider<javax.ws.rs.core.Form> provider,
javax.ws.rs.core.Form form,
Message message) |
static void |
writeForm(FormEncodingProvider<javax.ws.rs.core.Form> provider,
javax.ws.rs.core.Form form,
OutputStream os) |
static void |
writeMapToOutputStream(Map<String,List<String>> map,
OutputStream os,
String enc,
boolean encoded) |
public static final String FORM_PARAMS_FROM_HTTP_PARAMS
public static final String FORM_PARAM_MAP
public static final String FORM_PARAM_MAP_DECODED
public static String formToString(javax.ws.rs.core.Form form)
public static void restoreForm(FormEncodingProvider<javax.ws.rs.core.Form> provider, javax.ws.rs.core.Form form, Message message) throws Exception
Exception
public static void writeForm(FormEncodingProvider<javax.ws.rs.core.Form> provider, javax.ws.rs.core.Form form, OutputStream os) throws Exception
Exception
public static javax.ws.rs.core.Form readForm(FormEncodingProvider<javax.ws.rs.core.Form> provider, Message message) throws Exception
Exception
public static void addPropertyToForm(javax.ws.rs.core.MultivaluedMap<String,String> map, String name, Object value)
public static String readBody(InputStream is, String encoding)
public static void populateMapFromString(javax.ws.rs.core.MultivaluedMap<String,String> params, Message m, String postBody, String enc, boolean decode)
public static void populateMapFromStringOrHttpRequest(javax.ws.rs.core.MultivaluedMap<String,String> params, Message m, String postBody, String enc, boolean decode)
public static void populateMapFromString(javax.ws.rs.core.MultivaluedMap<String,String> params, Message m, String postBody, String enc, boolean decode, javax.servlet.http.HttpServletRequest request)
public static void logRequestParametersIfNeeded(Map<String,List<String>> params, String enc)
public static void writeMapToOutputStream(Map<String,List<String>> map, OutputStream os, String enc, boolean encoded) throws IOException
IOException
public static void populateMapFromMultipart(javax.ws.rs.core.MultivaluedMap<String,String> params, MultipartBody body, Message m, boolean decode)
public static boolean isFormPostRequest(Message m)
Apache CXF