javax.servlet.http.HttpServletRequestWrapper.getDateHeader()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(4.6k)|赞(0)|评价(0)|浏览(139)

本文整理了Java中javax.servlet.http.HttpServletRequestWrapper.getDateHeader()方法的一些代码示例,展示了HttpServletRequestWrapper.getDateHeader()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。HttpServletRequestWrapper.getDateHeader()方法的具体详情如下:
包路径:javax.servlet.http.HttpServletRequestWrapper
类名称:HttpServletRequestWrapper
方法名:getDateHeader

HttpServletRequestWrapper.getDateHeader介绍

[英]The default behavior of this method is to return getDateHeader(String name) on the wrapped request object.
[中]此方法的默认行为是在包装的请求对象上返回getDateHeader(字符串名称)。

代码示例

代码示例来源:origin: cloudfoundry/uaa

@Override
public long getDateHeader(String name) {
  return super.getDateHeader(name);
}

代码示例来源:origin: oblac/jodd

/**
 * Returns <code>-1</code> for excluded HTTP headers.
 */
@Override
public long getDateHeader(final String header) {
  if (isExcluded(header)) {
    return -1;
  }
  return super.getDateHeader(header);
}

代码示例来源:origin: com.liferay.portal/com.liferay.portal.kernel

@Override
public long getDateHeader(String name) {
  if (name.equals(HttpHeaders.IF_MODIFIED_SINCE)) {
    return -1;
  }
  return super.getDateHeader(name);
}

代码示例来源:origin: org.eclipse.jetty/jetty-security

@Override
public long getDateHeader(String name)
{
  if (name.toLowerCase(Locale.ENGLISH).startsWith("if-"))
    return -1;
  return super.getDateHeader(name);
}

代码示例来源:origin: com.atlassian.jira/jira-core

@Override
public long getDateHeader(final String name)
{
  long dateHeader = super.getDateHeader(name);
  return dateHeader;
}

代码示例来源:origin: org.keycloak/keycloak-servlet-adapter-spi

@Override
public long getDateHeader(String name) {
  if (!needRequestRestore) return super.getDateHeader(name);
  return -1;
}

代码示例来源:origin: org.opencms/opencms-core

/**
 * @see javax.servlet.http.HttpServletRequest#getDateHeader(java.lang.String)
 */
@Override
public long getDateHeader(String name) {
  // make sue "last modified since" optimization is NOT used for export requests
  if (CmsRequestUtil.HEADER_IF_MODIFIED_SINCE.equals(name)) {
    // return -1, this means "no header has been set" in servlet standard
    return -1;
  }
  return super.getDateHeader(name);
}

代码示例来源:origin: org.opencms/opencms-solr

/**
 * @see javax.servlet.http.HttpServletRequest#getDateHeader(java.lang.String)
 */
@Override
public long getDateHeader(String name) {
  // make sue "last modified since" optimization is NOT used for export requests
  if (CmsRequestUtil.HEADER_IF_MODIFIED_SINCE.equals(name)) {
    // return -1, this means "no header has been set" in servlet standard
    return -1;
  }
  return super.getDateHeader(name);
}

代码示例来源:origin: riotfamily/riot

@Override
public long getDateHeader(String name) {
  if (HEADER_IFMODSINCE.equals(name)) {
    return -1L;
  }
  return super.getDateHeader(name);
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-webapp

@Override
public long getDateHeader(String name)
{
  if (name.toLowerCase(Locale.ENGLISH).startsWith("if-"))
    return -1;
  return super.getDateHeader(name);
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-plus

@Override
public long getDateHeader(String name)
{
  if (name.toLowerCase(Locale.ENGLISH).startsWith("if-"))
    return -1;
  return super.getDateHeader(name);
}

代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.jetty.security

@Override
public long getDateHeader(String name)
{
  if (name.toLowerCase(Locale.ENGLISH).startsWith("if-"))
    return -1;
  return super.getDateHeader(name);
}

代码示例来源:origin: org.eclipse.jetty/security

@Override
public long getDateHeader(String name)
{
  if (name.toLowerCase(Locale.ENGLISH).startsWith("if-"))
    return -1;
  return super.getDateHeader(name);
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server

@Override
public long getDateHeader(String name)
{
  if (name.toLowerCase(Locale.ENGLISH).startsWith("if-"))
    return -1;
  return super.getDateHeader(name);
}

代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9

@Override
public long getDateHeader(String name)
{
  if (name.toLowerCase(Locale.ENGLISH).startsWith("if-"))
    return -1;
  return super.getDateHeader(name);
}

代码示例来源:origin: org.pageseeder.bastille/pso-bastille

@Override
public long getDateHeader(String name) {
 if (EXCLUDE.contains(name.toLowerCase())) return -1;
 else return super.getDateHeader(name);
}

代码示例来源:origin: sitemesh/sitemesh3

@Override
public long getDateHeader(String header) {
  if (isExcluded(header)) {
    return -1;
  }else{
    return super.getDateHeader(header);
  }
}

代码示例来源:origin: org.sitemesh/sitemesh

@Override
public long getDateHeader(String header) {
  if (isExcluded(header)) {
    return -1;
  }else{
    return super.getDateHeader(header);
  }
}

代码示例来源:origin: org.jodd/jodd-wot

/**
 * Returns <code>-1</code> for excluded HTTP headers.
 */
@Override
public long getDateHeader(String header) {
  if (isExcluded(header)) {
    return -1;
  }
  return super.getDateHeader(header);
}

代码示例来源:origin: Jasig/uPortal

@Override
public long getDateHeader(String name) {
  this.checkState();
  return super.getDateHeader(name);
}

相关文章

HttpServletRequestWrapper类方法