本文整理了Java中org.jboss.resteasy.spi.HttpRequest.getFormParameters()
方法的一些代码示例,展示了HttpRequest.getFormParameters()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。HttpRequest.getFormParameters()
方法的具体详情如下:
包路径:org.jboss.resteasy.spi.HttpRequest
类名称:HttpRequest
方法名:getFormParameters
[英]application/x-www-form-urlencoded parameters
This is here because @FormParam needs it and for when there are servlet filters that eat up the input stream
[中]应用程序/x-www-form-urlencoded参数
这是因为@FormParam需要它,并且当存在消耗输入流的servlet过滤器时需要它
代码示例来源:origin: resteasy/Resteasy
@Override
public MultivaluedMap<String, String> getFormParameters()
{
return delegate.getFormParameters();
}
代码示例来源:origin: resteasy/Resteasy
@SuppressWarnings("rawtypes")
@Override
public MultivaluedMap readFrom(Class<MultivaluedMap> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String, String> httpHeaders, InputStream entityStream) throws IOException
{
LogMessages.LOGGER.debugf("Provider : %s, Method : readFrom", getClass().getName());
if (!useContainerParams) return super.readFrom(type, genericType, annotations, mediaType, httpHeaders, entityStream);
boolean encoded = FindAnnotation.findAnnotation(annotations, Encoded.class) != null;
if (encoded) return request.getFormParameters();
else return request.getDecodedFormParameters();
}
}
代码示例来源:origin: org.jboss.resteasy/resteasy-jaxrs-20
@Override
public MultivaluedMap<String, String> getFormParameters()
{
return delegate.getFormParameters();
}
代码示例来源:origin: org.jboss.resteasy/resteasy-core
@Override
public MultivaluedMap<String, String> getFormParameters()
{
return delegate.getFormParameters();
}
代码示例来源:origin: org.ow2.bonita/bonita-server
private void decodeFormParameters(final HttpRequest request) {
try {
decodeMultiValuedMap(request.getFormParameters());
} catch (final Throwable e) {
if (LOG.isLoggable(Level.WARNING)) {
LOG.warning("Impossible to decode some parameters using UTF-8. Keeping encoded values: " + e);
}
}
try {
decodeMultiValuedMap(request.getDecodedFormParameters());
} catch (final Throwable e) {
if (LOG.isLoggable(Level.WARNING)) {
LOG.warning("Impossible to decode some parameters using UTF-8. Keeping encoded values: " + e);
}
}
}
代码示例来源:origin: org.ow2.bonita/bonita-server
private void updateOptionsFormParam(final HttpRequest request, final Map<String, String> optionsMap) {
final String options = getNonEncodedStringRepresentation(optionsMap);
// form parameters
request.getFormParameters().remove(OPTIONS);
request.getFormParameters().add(OPTIONS, encodeIfNecessary(options));
// decoded form parameters
request.getDecodedFormParameters().remove(OPTIONS);
request.getDecodedFormParameters().add(OPTIONS, options);
}
代码示例来源:origin: org.jboss.resteasy/resteasy-jaxrs-20
@Override
public MultivaluedMap readFrom(Class<MultivaluedMap> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String, String> httpHeaders, InputStream entityStream) throws IOException
{
LogMessages.LOGGER.debugf("Provider : %s, Method : readFrom", getClass().getName());
if (!useContainerParams) return super.readFrom(type, genericType, annotations, mediaType, httpHeaders, entityStream);
boolean encoded = FindAnnotation.findAnnotation(annotations, Encoded.class) != null;
if (encoded) return request.getFormParameters();
else return request.getDecodedFormParameters();
}
}
代码示例来源:origin: org.jboss.resteasy/resteasy-core
@SuppressWarnings("rawtypes")
@Override
public MultivaluedMap readFrom(Class<MultivaluedMap> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String, String> httpHeaders, InputStream entityStream) throws IOException
{
LogMessages.LOGGER.debugf("Provider : %s, Method : readFrom", getClass().getName());
if (!useContainerParams) return super.readFrom(type, genericType, annotations, mediaType, httpHeaders, entityStream);
boolean encoded = FindAnnotation.findAnnotation(annotations, Encoded.class) != null;
if (encoded) return request.getFormParameters();
else return request.getDecodedFormParameters();
}
}
代码示例来源:origin: candlepin/candlepin
for (Map.Entry<String, List<String>> entry : request.getFormParameters().entrySet()) {
String name = entry.getKey();
for (String value : entry.getValue()) {
内容来源于网络,如有侵权,请联系作者删除!