本文整理了Java中org.vertx.java.core.MultiMap.getAll()
方法的一些代码示例,展示了MultiMap.getAll()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。MultiMap.getAll()
方法的具体详情如下:
包路径:org.vertx.java.core.MultiMap
类名称:MultiMap
方法名:getAll
暂无
代码示例来源:origin: org.commonjava.vertx/vabr-api
public List<String> getAll( final String name )
{
return map.getAll( name );
}
代码示例来源:origin: boonproject/boon
public static Map<String, String> toMap(MultiMap multiMap) {
Map<String, String> map = new HashMap<String, String>();
for (String name : multiMap.names()) {
List<String> all = multiMap.getAll(name);
if (all.size() > 0) {
map.put(name, all.get(0));
}
}
return map;
}
}
代码示例来源:origin: io.fabric8/gateway-core
@Override
public void handle(HttpClientResponse clientResponse) {
delegate.handle(clientResponse);
MultiMap headers = clientResponse.headers();
for (String headerName : rewriteHeaders) {
List<String> headerValues = headers.getAll(headerName);
int size = headerValues.size();
if (size > 0) {
List<String> newHeaders = new ArrayList<String>(size);
for (String headerValue : headerValues) {
String newValue = headerValue;
if (headerValue != null && headerValue.length() > 0) {
newValue = proxyMappingDetails.rewriteBackendUrl(headerValue);
}
}
LOG.info("Rewriting header " + headerName + " from: " + headerValues + " to: " + newHeaders);
headers.set(headerName, newHeaders);
}
}
}
}
代码示例来源:origin: jboss-fuse/fabric8
@Override
public void handle(HttpClientResponse clientResponse) {
delegate.handle(clientResponse);
MultiMap headers = clientResponse.headers();
for (String headerName : rewriteHeaders) {
List<String> headerValues = headers.getAll(headerName);
int size = headerValues.size();
if (size > 0) {
List<String> newHeaders = new ArrayList<String>(size);
for (String headerValue : headerValues) {
String newValue = headerValue;
if (headerValue != null && headerValue.length() > 0) {
newValue = proxyMappingDetails.rewriteBackendUrl(headerValue);
}
}
LOG.info("Rewriting header " + headerName + " from: " + headerValues + " to: " + newHeaders);
headers.set(headerName, newHeaders);
}
}
}
}
代码示例来源:origin: org.commonjava.vertx/vabr-api
.getAll( RouteHeader.accept.header() );
代码示例来源:origin: org.commonjava.vertx/vabr-api
logger.debug( "Writing headers: {} = {}", key, headers.getAll( key ) );
response.putHeader( key, headers.getAll( key ) );
内容来源于网络,如有侵权,请联系作者删除!