org.mortbay.jetty.Request.getRequestURI()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(3.9k)|赞(0)|评价(0)|浏览(325)

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

Request.getRequestURI介绍

暂无

代码示例

代码示例来源:origin: org.mortbay.jetty/com.springsource.org.mortbay.jetty.server

  1. public StringBuffer getRequestURL()
  2. {
  3. StringBuffer url = new StringBuffer(48);
  4. synchronized (url)
  5. {
  6. String scheme = getScheme();
  7. int port = getServerPort();
  8. url.append(scheme);
  9. url.append("://");
  10. url.append(getServerName());
  11. if (_port>0 &&
  12. ((scheme.equalsIgnoreCase(URIUtil.HTTP) && port != 80) ||
  13. (scheme.equalsIgnoreCase(URIUtil.HTTPS) && port != 443)))
  14. {
  15. url.append(':');
  16. url.append(_port);
  17. }
  18. url.append(getRequestURI());
  19. return url;
  20. }
  21. }

代码示例来源:origin: org.mortbay.jetty/com.springsource.org.mortbay.jetty.server

  1. if (_ignorePathMap != null && _ignorePathMap.getMatch(request.getRequestURI()) != null)
  2. return;

代码示例来源:origin: org.mortbay.jetty/com.springsource.org.mortbay.jetty.server

  1. public void sendRedirect(String location) throws IOException
  2. {
  3. if (_connection.isIncluding())
  4. return;
  5. if (location==null)
  6. throw new IllegalArgumentException();
  7. if (!URIUtil.hasScheme(location))
  8. {
  9. StringBuffer buf = _connection.getRequest().getRootURL();
  10. if (location.startsWith("/"))
  11. buf.append(URIUtil.canonicalPath(location));
  12. else
  13. {
  14. String path=_connection.getRequest().getRequestURI();
  15. String parent=(path.endsWith("/"))?path:URIUtil.parentPath(path);
  16. location=URIUtil.canonicalPath(URIUtil.addPaths(parent,location));
  17. if (!location.startsWith("/"))
  18. buf.append('/');
  19. buf.append(location);
  20. }
  21. location=buf.toString();
  22. }
  23. resetBuffer();
  24. setHeader(HttpHeaders.LOCATION,location);
  25. setStatus(HttpServletResponse.SC_MOVED_TEMPORARILY);
  26. complete();
  27. }

代码示例来源:origin: org.mortbay.jetty/com.springsource.org.mortbay.jetty.server

  1. String old_uri=base_request.getRequestURI();
  2. String old_context_path=base_request.getContextPath();
  3. String old_servlet_path=base_request.getServletPath();

代码示例来源:origin: org.jboss.errai/errai-cdi-jetty

  1. if ("/favicon.ico".equals(request.getRequestURI())
  2. && request.getQueryString() == null) {

代码示例来源:origin: org.mortbay.jetty/com.springsource.org.mortbay.jetty.server

  1. + ":"
  2. + connector.getIntegralPort()
  3. + request.getRequestURI();
  4. if (request.getQueryString() != null)
  5. url += "?" + request.getQueryString();
  6. + ":"
  7. + connector.getConfidentialPort()
  8. + request.getRequestURI();
  9. if (request.getQueryString() != null)
  10. url += "?" + request.getQueryString();
  11. Log.warn("Request "+request.getRequestURI()+" failed - no realm");
  12. response.sendError(Response.SC_INTERNAL_SERVER_ERROR,"No realm");
  13. return false;
  14. Log.warn("Mis-configured Authenticator for " + request.getRequestURI());
  15. response.sendError(Response.SC_INTERNAL_SERVER_ERROR,"Configuration error");

代码示例来源:origin: org.mortbay.jetty/jetty-security

  1. + ":"
  2. + connector.getIntegralPort()
  3. + request.getRequestURI();
  4. if (request.getQueryString() != null)
  5. url += "?" + request.getQueryString();
  6. + ":"
  7. + connector.getConfidentialPort()
  8. + request.getRequestURI();
  9. if (request.getQueryString() != null)
  10. url += "?" + request.getQueryString();
  11. Log.warn("Request "+request.getRequestURI()+" failed - no realm");
  12. response.sendError(Response.SC_INTERNAL_SERVER_ERROR,"No realm");
  13. return false;
  14. Log.warn("Mis-configured Authenticator for " + request.getRequestURI());
  15. response.sendError(Response.SC_INTERNAL_SERVER_ERROR,"Configuration error");

代码示例来源:origin: org.mortbay.jetty/com.springsource.org.mortbay.jetty.server

  1. request.setAttribute(ServletHandler.__J_S_ERROR_REQUEST_URI, request.getRequestURI());
  2. request.setAttribute(ServletHandler.__J_S_ERROR_SERVLET_NAME,request.getServletName());
  3. message= StringUtil.replace(message, ">", ">");
  4. String uri= request.getRequestURI();
  5. if (uri!=null)

相关文章