本文整理了Java中javax.servlet.http.HttpServletRequestWrapper.getHeaderNames()
方法的一些代码示例,展示了HttpServletRequestWrapper.getHeaderNames()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。HttpServletRequestWrapper.getHeaderNames()
方法的具体详情如下:
包路径:javax.servlet.http.HttpServletRequestWrapper
类名称:HttpServletRequestWrapper
方法名:getHeaderNames
[英]The default behavior of this method is to return getHeaderNames() on the wrapped request object.
[中]此方法的默认行为是在包装的请求对象上返回getHeaderNames()。
代码示例来源:origin: cloudfoundry/uaa
@Override
public Enumeration<String> getHeaderNames() {
return super.getHeaderNames();
}
代码示例来源:origin: Netflix/eureka
@Override
public Enumeration<String> getHeaderNames() {
return new EnumWrapper<String>(super.getHeaderNames(), HttpHeaders.ACCEPT_ENCODING);
}
代码示例来源:origin: cloudfoundry/uaa
@Override
public Enumeration<String> getHeaderNames() {
List<String> headerNames = Collections.list(super.getHeaderNames());
headerNames.removeIf(header -> shouldFilter(header));
return Collections.enumeration(headerNames);
}
}
代码示例来源:origin: org.eclipse.jetty/jetty-security
@Override
public Enumeration<String> getHeaderNames()
{
return Collections.enumeration(Collections.list(super.getHeaderNames()));
}
代码示例来源:origin: com.github.wuic/wuic-servlet
/**
* {@inheritDoc}
*/
@Override
public Enumeration<String> getHeaderNames() {
// Synchronized access
synchronized (mutex) {
return super.getHeaderNames();
}
}
代码示例来源:origin: com.atlassian.jira/jira-core
@Override
public Enumeration getHeaderNames()
{
Enumeration headerNames = super.getHeaderNames();
return headerNames;
}
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server
@Override
public Enumeration getHeaderNames()
{
return Collections.enumeration(Collections.list(super.getHeaderNames()));
}
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-plus
@Override
public Enumeration getHeaderNames()
{
return Collections.enumeration(Collections.list(super.getHeaderNames()));
}
代码示例来源:origin: org.eclipse.jetty/security
@Override
public Enumeration getHeaderNames()
{
return Collections.enumeration(Collections.list(super.getHeaderNames()));
}
代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9
@Override
public Enumeration<String> getHeaderNames()
{
return Collections.enumeration(Collections.list(super.getHeaderNames()));
}
代码示例来源:origin: org.eclipse.scout.rt/org.eclipse.scout.rt.server.commons
@Override
public Enumeration<String> getHeaderNames() {
Enumeration<String> names = super.getHeaderNames();
if (names != null) {
List<String> list = Collections.list(names);
list.remove(GzipServletFilter.CONTENT_ENCODING);
return Collections.enumeration(list);
}
return names;
}
}
代码示例来源:origin: rancher/cattle
@SuppressWarnings({ "rawtypes", "unchecked" })
@Override
public Enumeration getHeaderNames() {
Set names = new HashSet(Collections.list(super.getHeaderNames()));
names.add(PROJECT_HEADER);
return Collections.enumeration(names);
}
代码示例来源:origin: de.adorsys.oauth2-pkce/spring-oauth2-pkce
/**
* get the Header names
*/
@Override
public Enumeration<String> getHeaderNames() {
List<String> names = Collections.list(super.getHeaderNames());
names.addAll(headerMap.keySet());
return Collections.enumeration(names);
}
代码示例来源:origin: org.pageseeder.bastille/pso-bastille
@Override
@SuppressWarnings("unchecked")
public Enumeration<String> getHeaderNames() {
List<String> headers = Collections.list(super.getHeaderNames());
for (Iterator<String> i = headers.iterator(); i.hasNext();) {
if (EXCLUDE.contains(i.next().toLowerCase())) {
i.remove();
}
}
return Collections.enumeration(headers);
}
代码示例来源:origin: org.icefaces/icefaces-ace
public java.util.Enumeration<String> getHeaderNames() {
java.util.Vector<String> list = new java.util.Vector<String>();
java.util.Enumeration<String> names = super.getHeaderNames();
while (names != null && names.hasMoreElements()) {
list.add(names.nextElement());
}
if (!list.contains(FACES_REQUEST))
list.add(FACES_REQUEST);
if (!list.contains(CONTENT_TYPE))
list.add(CONTENT_TYPE);
return list.elements();
}
代码示例来源:origin: org.jasig.portal/uPortal-spring
@Override
public Enumeration<String> getHeaderNames() {
final LinkedHashSet<String> headers = new LinkedHashSet<String>();
for (final Enumeration<String> headersEnum = super.getHeaderNames();
headersEnum.hasMoreElements(); ) {
headers.add(headersEnum.nextElement());
}
headers.add("REMOTE_USER");
return Iterators.asEnumeration(headers.iterator());
}
代码示例来源:origin: org.keycloak/keycloak-servlet-adapter-spi
@Override
public Enumeration<String> getHeaderNames() {
if (needRequestRestore && headers != null) {
return Collections.enumeration(headers.keySet());
}
return super.getHeaderNames();
}
代码示例来源:origin: getheimdall/heimdall
public Enumeration<String> getHeaderNames() {
List<String> names = Collections.list(super.getHeaderNames());
if (Objeto.notBlank(name) && names.stream().anyMatch(s -> s.equalsIgnoreCase(name))) {
names.remove(name);
}
return Collections.enumeration(names);
}
};
代码示例来源:origin: com.yahoo.vespa/jdisc_http_service
@Override
public Enumeration<String> getHeaderNames() {
Set<String> names = new HashSet<>(Collections.list(super.getHeaderNames()));
names.addAll(headerFields.keySet());
names.removeAll(headerBlacklist);
return Collections.enumeration(names);
}
代码示例来源:origin: org.jvnet.hudson.winstone/winstone
public Enumeration getHeaderNames() {
if (hasBeenForwarded()) {
return super.getHeaderNames();
} else {
return Collections.enumeration(this.oldRequest.getHeaders().keySet());
}
}
内容来源于网络,如有侵权,请联系作者删除!