org.eclipse.jetty.server.Response.isIncluding()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(4.1k)|赞(0)|评价(0)|浏览(124)

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

Response.isIncluding介绍

暂无

代码示例

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

@Override
public void setStatus(int sc)
{
  if (sc <= 0)
    throw new IllegalArgumentException();
  if (!isIncluding())
    _status = sc;
}

代码示例来源:origin: Nextdoor/bender

public void setStatusWithReason(int sc, String sm)
{
  if (sc <= 0)
    throw new IllegalArgumentException();
  if (!isIncluding())
  {
    _status = sc;
    _reason = sm;
  }
}

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

@Override
public void setStatus(int sc)
{
  if (sc <= 0)
    throw new IllegalArgumentException();
  if (!isIncluding())
    _status = sc;
}

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

public void setStatusWithReason(int sc, String sm)
{
  if (sc <= 0)
    throw new IllegalArgumentException();
  if (!isIncluding())
  {
    _status = sc;
    _reason = sm;
  }
}

代码示例来源:origin: Nextdoor/bender

@Override
public void setStatus(int sc)
{
  if (sc <= 0)
    throw new IllegalArgumentException();
  if (!isIncluding())
  {
    _status = sc;
    _reason = null;
  }
}

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

@Override
public void addDateHeader(String name, long date)
{
  if (!isIncluding())
    _fields.addDateField(name, date);
}

代码示例来源:origin: theonedev/onedev

@Override
public void addDateHeader(String name, long date)
{
  if (!isIncluding())
    _fields.addDateField(name, date);
}

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

@Override
public void setDateHeader(String name, long date)
{
  if (!isIncluding())
    _fields.putDateField(name, date);
}

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

@Override
public void setDateHeader(String name, long date)
{
  if (!isIncluding())
    _fields.putDateField(name, date);
}

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

@Override
public void addDateHeader(String name, long date)
{
  if (!isIncluding())
    _fields.addDateField(name, date);
}

代码示例来源:origin: theonedev/onedev

@Override
public void setDateHeader(String name, long date)
{
  if (!isIncluding())
    _fields.putDateField(name, date);
}

代码示例来源:origin: Nextdoor/bender

@Override
public void addDateHeader(String name, long date)
{
  if (!isIncluding())
    _fields.addDateField(name, date);
}

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

@Override
public void addIntHeader(String name, int value)
{
  if (!isIncluding())
  {
    _fields.add(name, Integer.toString(value));
    if (HttpHeader.CONTENT_LENGTH.is(name))
      _contentLength = value;
  }
}

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

@Override
public void addIntHeader(String name, int value)
{
  if (!isIncluding())
  {
    _fields.add(name, Integer.toString(value));
    if (HttpHeader.CONTENT_LENGTH.is(name))
      _contentLength = value;
  }
}

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

@Override
public void addIntHeader(String name, int value)
{
  if (!isIncluding())
  {
    _fields.add(name, Integer.toString(value));
    if (HttpHeader.CONTENT_LENGTH.is(name))
      _contentLength = value;
  }
}

代码示例来源:origin: Nextdoor/bender

@Override
public void addIntHeader(String name, int value)
{
  if (!isIncluding())
  {
    _fields.add(name, Integer.toString(value));
    if (HttpHeader.CONTENT_LENGTH.is(name))
      _contentLength = value;
  }
}

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

@Override
public void setIntHeader(String name, int value)
{
  if (!isIncluding())
  {
    _fields.putLongField(name, value);
    if (HttpHeader.CONTENT_LENGTH.is(name))
      _contentLength = value;
  }
}

代码示例来源:origin: theonedev/onedev

@Override
public void setIntHeader(String name, int value)
{
  if (!isIncluding())
  {
    _fields.putLongField(name, value);
    if (HttpHeader.CONTENT_LENGTH.is(name))
      _contentLength = value;
  }
}

代码示例来源:origin: Nextdoor/bender

@Override
public void setIntHeader(String name, int value)
{
  if (!isIncluding())
  {
    _fields.putLongField(name, value);
    if (HttpHeader.CONTENT_LENGTH.is(name))
      _contentLength = value;
  }
}

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

public void setLongContentLength(long len)
{
  // Protect from setting after committed as default handling
  // of a servlet HEAD request ALWAYS sets _content length, even
  // if the getHandling committed the response!
  if (isCommitted() || isIncluding())
    return;
  _contentLength = len;
  _fields.putLongField(HttpHeader.CONTENT_LENGTH.toString(), len);
}

相关文章