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

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

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

Request.getHttpFilter介绍

暂无

代码示例

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

/**
 * Returns the {@link ErrorPageGenerator}, that might be used
 * (if an error occurs) during {@link Request} processing.
 * 
 * @param request {@link Request}
 * 
 * @return the {@link ErrorPageGenerator}, that might be used
 * (if an error occurs) during {@link Request} processing
 */
protected ErrorPageGenerator getErrorPageGenerator(final Request request) {
  return request.getHttpFilter().getConfiguration().getDefaultErrorPageGenerator();
}

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

/**
 * @return Servlet-aware {@link SessionManager}
 */
@Override
protected SessionManager getSessionManager(Request request) {
  final SessionManager sm = request.getHttpFilter()
      .getConfiguration().getSessionManager();
  return sm != null ? sm : this.sessionManager;
}

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

/**
 * @param request {@link Request}
 * 
 * @return the {@link SessionManager} to be used. <tt>null</tt> value implies {@link DefaultSessionManager}
 */
protected SessionManager getSessionManager(final Request request) {
  return request.getHttpFilter().getConfiguration().getSessionManager();
}

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

/**
 * Returns the {@link ErrorPageGenerator}, that might be used
 * (if an error occurs) during {@link Request} processing.
 * 
 * @param request {@link Request}
 * 
 * @return the {@link ErrorPageGenerator}, that might be used
 * (if an error occurs) during {@link Request} processing
 */
protected ErrorPageGenerator getErrorPageGenerator(final Request request) {
  return request.getHttpFilter().getConfiguration().getDefaultErrorPageGenerator();
}

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

/**
 * @return Servlet-aware {@link SessionManager}
 */
@Override
protected SessionManager getSessionManager(Request request) {
  final SessionManager sm = request.getHttpFilter()
      .getConfiguration().getSessionManager();
  return sm != null ? sm : this.sessionManager;
}

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

/**
 * Returns the {@link ErrorPageGenerator}, that might be used
 * (if an error occurs) during {@link Request} processing.
 * 
 * @param request {@link Request}
 * 
 * @return the {@link ErrorPageGenerator}, that might be used
 * (if an error occurs) during {@link Request} processing
 */
protected ErrorPageGenerator getErrorPageGenerator(final Request request) {
  return request.getHttpFilter().getConfiguration().getDefaultErrorPageGenerator();
}

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

/**
 * @return Servlet-aware {@link SessionManager}
 */
@Override
protected SessionManager getSessionManager(Request request) {
  final SessionManager sm = request.getHttpFilter()
      .getConfiguration().getSessionManager();
  return sm != null ? sm : this.sessionManager;
}

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

/**
 * @param request {@link Request}
 * 
 * @return the {@link SessionManager} to be used. <tt>null</tt> value implies {@link DefaultSessionManager}
 */
protected SessionManager getSessionManager(final Request request) {
  return request.getHttpFilter().getConfiguration().getSessionManager();
}

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

/**
 * Returns the {@link ErrorPageGenerator}, that might be used
 * (if an error occurs) during {@link Request} processing.
 * 
 * @param request {@link Request}
 * 
 * @return the {@link ErrorPageGenerator}, that might be used
 * (if an error occurs) during {@link Request} processing
 */
protected ErrorPageGenerator getErrorPageGenerator(final Request request) {
  return request.getHttpFilter().getConfiguration().getDefaultErrorPageGenerator();
}

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

/**
 * @param request {@link Request}
 * 
 * @return the {@link SessionManager} to be used. <tt>null</tt> value implies {@link DefaultSessionManager}
 */
protected SessionManager getSessionManager(final Request request) {
  return request.getHttpFilter().getConfiguration().getSessionManager();
}

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

/**
 * @param request {@link Request}
 * 
 * @return the {@link SessionManager} to be used. <tt>null</tt> value implies {@link DefaultSessionManager}
 */
protected SessionManager getSessionManager(final Request request) {
  return request.getHttpFilter().getConfiguration().getSessionManager();
}

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

/**
 * @param request {@link Request}
 * 
 * @return the {@link SessionManager} to be used. <tt>null</tt> value implies {@link DefaultSessionManager}
 */
protected SessionManager getSessionManager(final Request request) {
  return request.getHttpFilter().getConfiguration().getSessionManager();
}

代码示例来源: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.glassfish.grizzly/grizzly-http-server-core

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.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: 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;
  }
}

相关文章

Request类方法