本文整理了Java中org.glassfish.grizzly.http.server.Request.getHttpFilter
方法的一些代码示例,展示了Request.getHttpFilter
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Request.getHttpFilter
方法的具体详情如下:
包路径:org.glassfish.grizzly.http.server.Request
类名称: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;
}
}
内容来源于网络,如有侵权,请联系作者删除!