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

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

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

Request.getHttpInput介绍

暂无

代码示例

代码示例来源:origin: line/armeria

private static void fillRequest(
    ServiceRequestContext ctx, AggregatedHttpMessage aReq, Request jReq) {
  jReq.setDispatcherType(DispatcherType.REQUEST);
  jReq.setAsyncSupported(false, "armeria");
  jReq.setSecure(ctx.sessionProtocol().isTls());
  jReq.setMetaData(toRequestMetadata(ctx, aReq));
  final HttpData content = aReq.content();
  if (!content.isEmpty()) {
    jReq.getHttpInput().addContent(new Content(ByteBuffer.wrap(
        content.array(), content.offset(), content.length())));
  }
  jReq.getHttpInput().eof();
}

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

@Override
public boolean messageComplete()
{
  _request.getHttpInput().shutdown();
  return true;
}

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

@Override
public boolean messageComplete()
{
  _request.getHttpInput().shutdown();
  return true;
}

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

@Override
public boolean earlyEOF()
{
  _request.getHttpInput().earlyEOF();
  return false;
}

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

@Override
public boolean earlyEOF()
{
  _request.getHttpInput().earlyEOF();
  return false;
}

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

@Override
public void earlyEOF()
{
  _request.getHttpInput().earlyEOF();
}

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

public boolean onEarlyEOF()
{
  return _request.getHttpInput().earlyEOF();
}

代码示例来源:origin: jenkinsci/winstone

public boolean onEarlyEOF()
{
  return _request.getHttpInput().earlyEOF();
}

代码示例来源:origin: jenkinsci/winstone

protected void consumeInput()
{
  getRequest().getHttpInput().consumeAll();
}

代码示例来源:origin: jenkinsci/winstone

public void onBlockWaitForContentFailure(Throwable failure)
{
  getRequest().getHttpInput().failed(failure);
}

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

@Override
public boolean content(T item)
{
  if (LOG.isDebugEnabled())
    LOG.debug("{} content {}", this, item);
  @SuppressWarnings("unchecked")
  HttpInput<T> input = (HttpInput<T>)_request.getHttpInput();
  input.content(item);
  return true;
}

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

public boolean onContent(HttpInput.Content content)
{
  if (LOG.isDebugEnabled())
    LOG.debug("{} content {}", this, content);
  return _request.getHttpInput().addContent(content);
}

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

public boolean onRequestComplete()
{
  if (LOG.isDebugEnabled())
    LOG.debug("{} onRequestComplete", this);
  return _request.getHttpInput().eof();
}

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

@Override
public boolean content(T item)
{
  if (LOG.isDebugEnabled())
    LOG.debug("{} content {}", this, item);
  @SuppressWarnings("unchecked")
  HttpInput<T> input = (HttpInput<T>)_request.getHttpInput();
  input.content(item);
  return true;
}

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

@Override
public boolean content(T item)
{
  if (LOG.isDebugEnabled())
    LOG.debug("{} content {}", this, item);
  @SuppressWarnings("unchecked")
  HttpInput<T> input = (HttpInput<T>)_request.getHttpInput();
  input.content(item);
  return false;
}

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

@Override
public boolean messageComplete()
{
  if (LOG.isDebugEnabled())
    LOG.debug("{} messageComplete", this);
  _request.getHttpInput().messageComplete();
  return true;
}

代码示例来源:origin: jenkinsci/winstone

boolean onIdleTimeout(Throwable timeout)
{
  if (_delayedForContent)
  {
    _delayedForContent = false;
    getRequest().getHttpInput().onIdleTimeout(timeout);
    execute(this);
    return false;
  }
  return true;
}

代码示例来源:origin: jenkinsci/winstone

public boolean onRequestComplete()
{
  if (LOG.isDebugEnabled())
    LOG.debug("{} onRequestComplete", this);
  boolean result = _request.getHttpInput().eof();
  notifyRequestEnd(_request);
  return result;
}

代码示例来源:origin: jenkinsci/winstone

public boolean onContent(HttpInput.Content content)
{
  if (LOG.isDebugEnabled())
    LOG.debug("{} onContent {}", this, content);
  notifyRequestContent(_request, content.getByteBuffer());
  return _request.getHttpInput().addContent(content);
}

代码示例来源:origin: jenkinsci/winstone

public Runnable onFailure(Throwable failure, Callback callback)
{
  getHttpTransport().onStreamFailure(failure);
  boolean handle = getRequest().getHttpInput().failed(failure);
  consumeInput();
  return new FailureTask(failure, callback, handle);
}

相关文章

Request类方法