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

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

本文整理了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

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

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

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

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

  1. @Override
  2. public AsyncContext startAsync(ServletRequest servletRequest, ServletResponse servletResponse) throws IllegalStateException
  3. {
  4. if (_asyncNotSupportedSource!=null)
  5. throw new IllegalStateException("!asyncSupported: "+_asyncNotSupportedSource);
  6. HttpChannelState state = getHttpChannelState();
  7. if (_async==null)
  8. _async=new AsyncContextState(state);
  9. AsyncContextEvent event = new AsyncContextEvent(_context,_async,state,this,servletRequest,servletResponse);
  10. event.setDispatchContext(getServletContext());
  11. String uri = ((HttpServletRequest)servletRequest).getRequestURI();
  12. if (_contextPath!=null && uri.startsWith(_contextPath))
  13. uri = uri.substring(_contextPath.length());
  14. else
  15. // TODO probably need to strip encoded context from requestURI, but will do this for now:
  16. uri = URIUtil.encodePath(URIUtil.addPaths(getServletPath(),getPathInfo()));
  17. event.setDispatchPath(uri);
  18. state.startAsync(event);
  19. return _async;
  20. }

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

  1. @Override
  2. public AsyncContext startAsync(ServletRequest servletRequest, ServletResponse servletResponse) throws IllegalStateException
  3. {
  4. if (!_asyncSupported)
  5. throw new IllegalStateException("!asyncSupported");
  6. HttpChannelState state = getHttpChannelState();
  7. if (_async==null)
  8. _async=new AsyncContextState(state);
  9. AsyncContextEvent event = new AsyncContextEvent(_context,_async,state,this,servletRequest,servletResponse);
  10. event.setDispatchContext(getServletContext());
  11. event.setDispatchPath(URIUtil.addPaths(getServletPath(),getPathInfo()));
  12. state.startAsync(event);
  13. return _async;
  14. }

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

  1. @Override
  2. public AsyncContext startAsync(ServletRequest servletRequest, ServletResponse servletResponse) throws IllegalStateException
  3. {
  4. if (_asyncNotSupportedSource!=null)
  5. throw new IllegalStateException("!asyncSupported: "+_asyncNotSupportedSource);
  6. HttpChannelState state = getHttpChannelState();
  7. if (_async==null)
  8. _async=new AsyncContextState(state);
  9. AsyncContextEvent event = new AsyncContextEvent(_context,_async,state,this,servletRequest,servletResponse);
  10. event.setDispatchContext(getServletContext());
  11. event.setDispatchPath(URIUtil.addPaths(getServletPath(),getPathInfo()));
  12. state.startAsync(event);
  13. return _async;
  14. }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

相关文章

Request类方法