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

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

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

Request.getServletPath介绍

暂无

代码示例

代码示例来源:origin: org.keycloak/spring-boot-container-bundle

@Override
public String getRelativePath() {
  return request.getServletPath() + (request.getPathInfo() != null ? request.getPathInfo() : "");
}

代码示例来源:origin: org.keycloak/keycloak-jetty-adapter-spi

@Override
public String getRelativePath() {
  return request.getServletPath() + (request.getPathInfo() != null ? request.getPathInfo() : "");
}

代码示例来源: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: 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;
}

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

final String old_servlet_path=baseRequest.getServletPath();
final String old_path_info=baseRequest.getPathInfo();
  LOG.debug("servlet {}|{}|{} -> {}",baseRequest.getContextPath(),baseRequest.getServletPath(),baseRequest.getPathInfo(),servlet_holder);

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

final String old_servlet_path=baseRequest.getServletPath();
final String old_path_info=baseRequest.getPathInfo();
  LOG.debug("servlet {}|{}|{} -> {}",baseRequest.getContextPath(),baseRequest.getServletPath(),baseRequest.getPathInfo(),servlet_holder);

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

final String old_servlet_path=baseRequest.getServletPath();
final String old_path_info=baseRequest.getPathInfo();
  LOG.debug("servlet {}|{}|{} -> {}",baseRequest.getContextPath(),baseRequest.getServletPath(),baseRequest.getPathInfo(),servlet_holder);

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

final String old_servlet_path=baseRequest.getServletPath();
final String old_path_info=baseRequest.getPathInfo();
  LOG.debug("servlet {}|{}|{} -> {}",baseRequest.getContextPath(),baseRequest.getServletPath(),baseRequest.getPathInfo(),servlet_holder);

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

final String old_servlet_path=baseRequest.getServletPath();
final String old_path_info=baseRequest.getPathInfo();
  LOG.debug("servlet {}|{}|{} -> {}",baseRequest.getContextPath(),baseRequest.getServletPath(),baseRequest.getPathInfo(),servlet_holder);

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

baseRequest.setAttribute(AsyncContext.ASYNC_SERVLET_PATH,baseRequest.getServletPath());
baseRequest.setAttribute(AsyncContext.ASYNC_PATH_INFO,baseRequest.getPathInfo());
baseRequest.setAttribute(AsyncContext.ASYNC_QUERY_STRING,baseRequest.getQueryString());

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

baseRequest.setAttribute(AsyncContext.ASYNC_SERVLET_PATH,baseRequest.getServletPath());
baseRequest.setAttribute(AsyncContext.ASYNC_PATH_INFO,baseRequest.getPathInfo());
baseRequest.setAttribute(AsyncContext.ASYNC_QUERY_STRING,baseRequest.getQueryString());

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

baseRequest.setAttribute(AsyncContext.ASYNC_SERVLET_PATH,baseRequest.getServletPath());
baseRequest.setAttribute(AsyncContext.ASYNC_PATH_INFO,baseRequest.getPathInfo());
baseRequest.setAttribute(AsyncContext.ASYNC_QUERY_STRING,baseRequest.getQueryString());

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

r.setAttribute(AsyncContext.ASYNC_SERVLET_PATH,r.getServletPath());
r.setAttribute(AsyncContext.ASYNC_PATH_INFO,r.getPathInfo());
r.setAttribute(AsyncContext.ASYNC_QUERY_STRING,r.getQueryString());

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

r.setAttribute(AsyncContext.ASYNC_SERVLET_PATH,r.getServletPath());
r.setAttribute(AsyncContext.ASYNC_PATH_INFO,r.getPathInfo());
r.setAttribute(AsyncContext.ASYNC_QUERY_STRING,r.getQueryString());

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

r.setAttribute(AsyncContext.ASYNC_SERVLET_PATH,r.getServletPath());
r.setAttribute(AsyncContext.ASYNC_PATH_INFO,r.getPathInfo());
r.setAttribute(AsyncContext.ASYNC_QUERY_STRING,r.getQueryString());

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

r.setAttribute(AsyncContext.ASYNC_SERVLET_PATH,r.getServletPath());
r.setAttribute(AsyncContext.ASYNC_PATH_INFO,r.getPathInfo());
r.setAttribute(AsyncContext.ASYNC_QUERY_STRING,r.getQueryString());

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

r.setAttribute(AsyncContext.ASYNC_SERVLET_PATH,r.getServletPath());
r.setAttribute(AsyncContext.ASYNC_PATH_INFO,r.getPathInfo());
r.setAttribute(AsyncContext.ASYNC_QUERY_STRING,r.getQueryString());

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

r.setAttribute(AsyncContext.ASYNC_SERVLET_PATH,r.getServletPath());
r.setAttribute(AsyncContext.ASYNC_PATH_INFO,r.getPathInfo());
r.setAttribute(AsyncContext.ASYNC_QUERY_STRING,r.getQueryString());

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

r.setAttribute(AsyncContext.ASYNC_SERVLET_PATH,r.getServletPath());
r.setAttribute(AsyncContext.ASYNC_PATH_INFO,r.getPathInfo());
r.setAttribute(AsyncContext.ASYNC_QUERY_STRING,r.getQueryString());

相关文章

微信公众号

最新文章

更多

Request类方法