org.glassfish.grizzly.http.server.Request.getRequest()方法的使用及代码示例

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

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

Request.getRequest介绍

暂无

代码示例

代码示例来源:origin: opentripplanner/OpenTripPlanner

if (!response.getRequest().getRequest().getConnection().isOpen()) {
  LOG.debug("Consumer connection was closed. It will be removed.");
  return false;

代码示例来源:origin: opentripplanner/OpenTripPlanner

request.getRequest().getConnection()
    .addCloseListener((closeable, iCloseType) -> {
      broker.removeSuspendedResponse(graphAffinity, response);
  request.getRequest().getConnection()
      .addCloseListener((closeable, iCloseType) -> {
        broker.deletePriorityTask(task.taskId);
request.getRequest().getConnection().addCloseListener((c, i) -> {
  broker.removeSinglePointChannel(graphAffinity, wr);
});

代码示例来源:origin: javaee/grizzly

public void initialize(final Request serverRequest,
    final FilterChainContext ctx) {
  this.serverRequest = serverRequest;
  super.initialize(serverRequest.getRequest(), ctx);
}

代码示例来源:origin: javaee/grizzly

public void initialize(final Request serverRequest,
    final FilterChainContext ctx) {
  this.serverRequest = serverRequest;
  super.initialize(serverRequest.getRequest(), ctx);
}

代码示例来源:origin: org.glassfish.main.web/web-core

/**
 * Set the content length associated with this Request.
 *
 * @param length The new content length
 */
@Override
public void setContentLength(int length) {
  coyoteRequest.getRequest().setContentLength(length);
}

代码示例来源:origin: javaee/grizzly

private PushEvent init(final PushBuilder builder) {
  method = builder.method;
  headers.copyFrom(builder.headers);
  path = builder.path;
  httpRequest = builder.request.getRequest();
  return this;
}

代码示例来源:origin: javaee/grizzly

private PushEvent init(final PushBuilder builder) {
  method = builder.method;
  headers.copyFrom(builder.headers);
  path = builder.path;
  httpRequest = builder.request.getRequest();
  return this;
}

代码示例来源:origin: org.mule.glassfish.grizzly/grizzly-http-server

private PushEvent init(final PushBuilder builder) {
  method = builder.method;
  headers.copyFrom(builder.headers);
  path = builder.path;
  httpRequest = builder.request.getRequest();
  return this;
}

代码示例来源:origin: org.glassfish.grizzly/grizzly-http-server

private PushEvent init(final PushBuilder builder) {
  method = builder.method;
  headers.copyFrom(builder.headers);
  path = builder.path;
  httpRequest = builder.request.getRequest();
  return this;
}

代码示例来源:origin: javaee/grizzly

@Override
  StringBuilder format(StringBuilder builder, Request request, Response response, Date timeStamp, long responseNanos) {
    return this.format(builder, request.getRequest().getHeaders());
  }
}

代码示例来源:origin: javaee/grizzly

@Override
  StringBuilder format(StringBuilder builder, Request request, Response response, Date timeStamp, long responseNanos) {
    return this.format(builder, request.getRequest().getHeaders());
  }
}

代码示例来源:origin: org.glassfish.grizzly/grizzly-http-server

@Override
  StringBuilder format(StringBuilder builder, Request request, Response response, Date timeStamp, long responseNanos) {
    return this.format(builder, request.getRequest().getHeaders());
  }
}

代码示例来源:origin: org.glassfish.main.web/web-core

/**
 * Clear the collection of Headers associated with this Request.
 */
@Override
public void clearHeaders() {
  coyoteRequest.getRequest().getHeaders().recycle();
}

代码示例来源:origin: org.mule.glassfish.grizzly/grizzly-http-server

private boolean checkChunkedMaxPostSize() {
    if (serverRequest.getRequest().isChunked()) {
      final long maxPostSize = serverRequest.getHttpFilter().getConfiguration().getMaxPostSize();
      return maxPostSize < 0 || maxPostSize > totalReadContentInBytes;
    }
    
    return true;
  }
}

代码示例来源:origin: org.glassfish.grizzly/grizzly-websockets-server

private boolean checkChunkedMaxPostSize() {
    if (serverRequest.getRequest().isChunked()) {
      final long maxPostSize = serverRequest.getHttpFilter().getConfiguration().getMaxPostSize();
      return maxPostSize < 0 || maxPostSize > totalReadContentInBytes;
    }
    
    return true;
  }
}

代码示例来源:origin: javaee/grizzly

private boolean checkChunkedMaxPostSize() {
    if (serverRequest.getRequest().isChunked()) {
      final long maxPostSize = serverRequest.getHttpFilter().getConfiguration().getMaxPostSize();
      return maxPostSize < 0 || maxPostSize > totalReadContentInBytes;
    }
    
    return true;
  }
}

代码示例来源:origin: javaee/grizzly

private boolean checkChunkedMaxPostSize() {
    if (serverRequest.getRequest().isChunked()) {
      final long maxPostSize = serverRequest.getHttpFilter().getConfiguration().getMaxPostSize();
      return maxPostSize < 0 || maxPostSize > totalReadContentInBytes;
    }
    
    return true;
  }
}

代码示例来源:origin: org.mule.glassfish.grizzly/grizzly-websockets

public void updateUserPrincipal(Request grizzlyRequest) {
  final GlassfishSession gfSession = doGetSession(false);
  if (gfSession != null) {
    grizzlyRequest.setUserPrincipal(gfSession.getPrincipal());
    grizzlyRequest.getRequest().authType().setString(gfSession.getAuthType());
  }
}

代码示例来源:origin: javaee/grizzly

public void updateUserPrincipal(Request grizzlyRequest) {
  final GlassfishSession gfSession = doGetSession(false);
  if (gfSession != null) {
    grizzlyRequest.setUserPrincipal(gfSession.getPrincipal());
    grizzlyRequest.getRequest().authType().setString(gfSession.getAuthType());
  }
}

代码示例来源:origin: javaee/grizzly

public void updateUserPrincipal(Request grizzlyRequest) {
  final GlassfishSession gfSession = doGetSession(false);
  if (gfSession != null) {
    grizzlyRequest.setUserPrincipal(gfSession.getPrincipal());
    grizzlyRequest.getRequest().authType().setString(gfSession.getAuthType());
  }
}

相关文章

Request类方法