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

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

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

Request.getServletContext介绍

暂无

代码示例

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server

/**
 * @see Continuation#suspend()
 */
public void suspend(ServletResponse response)
{
  _continuation=true;
  _responseWrapped=!(response instanceof Response);
  doSuspend(_connection.getRequest().getServletContext(),_connection.getRequest(),response); 
}

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

/**
 * @see Continuation#suspend()
 */
public void suspend(ServletResponse response)
{
  _continuation=true;
  _responseWrapped=!(response instanceof Response);
  doSuspend(_connection.getRequest().getServletContext(),_connection.getRequest(),response); 
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-webapp

/**
 * @see Continuation#suspend()
 */
public void suspend(ServletResponse response)
{
  _continuation=true;
  _responseWrapped=!(response instanceof Response);
  doSuspend(_connection.getRequest().getServletContext(),_connection.getRequest(),response); 
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-server

/**
 * @see Continuation#suspend()
 */
public void suspend(ServletResponse response)
{
  _continuation=true;
  _responseWrapped=!(response instanceof Response);
  doSuspend(_connection.getRequest().getServletContext(),_connection.getRequest(),response); 
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-plus

/**
 * @see Continuation#suspend()
 */
public void suspend(ServletResponse response)
{
  _continuation=true;
  _responseWrapped=!(response instanceof Response);
  doSuspend(_connection.getRequest().getServletContext(),_connection.getRequest(),response); 
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-webapp

protected void startAsync()
{
  _responseWrapped=false;
  _continuation=false;
  doSuspend(_connection.getRequest().getServletContext(),_connection.getRequest(),_connection.getResponse());  
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-server

/**
 * @see Continuation#suspend()
 */
public void suspend()
{
  _responseWrapped=false;
  _continuation=true;
  doSuspend(_connection.getRequest().getServletContext(),_connection.getRequest(),_connection.getResponse());       
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server

protected void startAsync()
{
  _responseWrapped=false;
  _continuation=false;
  doSuspend(_connection.getRequest().getServletContext(),_connection.getRequest(),_connection.getResponse());  
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server

/**
 * @see Continuation#suspend()
 */
public void suspend()
{
  _responseWrapped=false;
  _continuation=true;
  doSuspend(_connection.getRequest().getServletContext(),_connection.getRequest(),_connection.getResponse());       
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-plus

/**
 * @see Continuation#suspend()
 */
public void suspend()
{
  _responseWrapped=false;
  _continuation=true;
  doSuspend(_connection.getRequest().getServletContext(),_connection.getRequest(),_connection.getResponse());       
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-server

protected void startAsync()
{
  _responseWrapped=false;
  _continuation=false;
  doSuspend(_connection.getRequest().getServletContext(),_connection.getRequest(),_connection.getResponse());  
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-plus

protected void startAsync()
{
  _responseWrapped=false;
  _continuation=false;
  doSuspend(_connection.getRequest().getServletContext(),_connection.getRequest(),_connection.getResponse());  
}

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

protected void startAsync()
{
  _responseWrapped=false;
  _continuation=false;
  doSuspend(_connection.getRequest().getServletContext(),_connection.getRequest(),_connection.getResponse());  
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-webapp

/**
 * @see Continuation#suspend()
 */
public void suspend()
{
  _responseWrapped=false;
  _continuation=true;
  doSuspend(_connection.getRequest().getServletContext(),_connection.getRequest(),_connection.getResponse());       
}

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

/**
 * @see Continuation#suspend()
 */
public void suspend()
{
  _responseWrapped=false;
  _continuation=true;
  doSuspend(_connection.getRequest().getServletContext(),_connection.getRequest(),_connection.getResponse());       
}

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

@Override
public AsyncContext startAsync(ServletRequest servletRequest, ServletResponse servletResponse) throws IllegalStateException
{
  if (_asyncNotSupportedSource!=null)
    throw new IllegalStateException("!asyncSupported: "+_asyncNotSupportedSource);
  HttpChannelState state = getHttpChannelState();
  if (_async==null)
    _async=new AsyncContextState(state);
  AsyncContextEvent event = new AsyncContextEvent(_context,_async,state,this,servletRequest,servletResponse);
  event.setDispatchContext(getServletContext());
  
  String uri = ((HttpServletRequest)servletRequest).getRequestURI();
  if (_contextPath!=null && uri.startsWith(_contextPath))
    uri = uri.substring(_contextPath.length());
  else
    // TODO probably need to strip encoded context from requestURI, but will do this for now:
    uri = URIUtil.encodePath(URIUtil.addPaths(getServletPath(),getPathInfo()));  
  
  event.setDispatchPath(uri);
  state.startAsync(event);
  return _async;
}

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

@Override
public AsyncContext startAsync(ServletRequest servletRequest, ServletResponse servletResponse) throws IllegalStateException
{
  if (!_asyncSupported)
    throw new IllegalStateException("!asyncSupported");
  HttpChannelState state = getHttpChannelState();
  if (_async==null)
    _async=new AsyncContextState(state);
  AsyncContextEvent event = new AsyncContextEvent(_context,_async,state,this,servletRequest,servletResponse);
  event.setDispatchContext(getServletContext());
  event.setDispatchPath(URIUtil.addPaths(getServletPath(),getPathInfo()));
  state.startAsync(event);
  return _async;
}

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

_expired=false;
_responseWrapped=false;
_event=new AsyncEventState(_channel.getRequest().getServletContext(),_channel.getRequest(),_channel.getResponse());
_state=State.ASYNCSTARTED;
List<AsyncListener> listeners=_lastAsyncListeners;

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

_expired=false;
_responseWrapped=false;
_event=new AsyncEventState(_channel.getRequest().getServletContext(),_channel.getRequest(),_channel.getResponse());
_state=State.ASYNCSTARTED;
List<AsyncListener> listeners=_lastAsyncListeners;

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

@Override
public AsyncContext startAsync(ServletRequest servletRequest, ServletResponse servletResponse) throws IllegalStateException
{
  if (_asyncNotSupportedSource!=null)
    throw new IllegalStateException("!asyncSupported: "+_asyncNotSupportedSource);
  HttpChannelState state = getHttpChannelState();
  if (_async==null)
    _async=new AsyncContextState(state);
  AsyncContextEvent event = new AsyncContextEvent(_context,_async,state,this,servletRequest,servletResponse);
  event.setDispatchContext(getServletContext());
  event.setDispatchPath(URIUtil.addPaths(getServletPath(),getPathInfo()));
  state.startAsync(event);
  return _async;
}

相关文章

Request类方法