本文整理了Java中org.mortbay.jetty.Request.getRequestURI
方法的一些代码示例,展示了Request.getRequestURI
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Request.getRequestURI
方法的具体详情如下:
包路径:org.mortbay.jetty.Request
类名称:Request
方法名:getRequestURI
暂无
代码示例来源:origin: org.mortbay.jetty/com.springsource.org.mortbay.jetty.server
public StringBuffer getRequestURL()
{
StringBuffer url = new StringBuffer(48);
synchronized (url)
{
String scheme = getScheme();
int port = getServerPort();
url.append(scheme);
url.append("://");
url.append(getServerName());
if (_port>0 &&
((scheme.equalsIgnoreCase(URIUtil.HTTP) && port != 80) ||
(scheme.equalsIgnoreCase(URIUtil.HTTPS) && port != 443)))
{
url.append(':');
url.append(_port);
}
url.append(getRequestURI());
return url;
}
}
代码示例来源:origin: org.mortbay.jetty/com.springsource.org.mortbay.jetty.server
if (_ignorePathMap != null && _ignorePathMap.getMatch(request.getRequestURI()) != null)
return;
代码示例来源:origin: org.mortbay.jetty/com.springsource.org.mortbay.jetty.server
public void sendRedirect(String location) throws IOException
{
if (_connection.isIncluding())
return;
if (location==null)
throw new IllegalArgumentException();
if (!URIUtil.hasScheme(location))
{
StringBuffer buf = _connection.getRequest().getRootURL();
if (location.startsWith("/"))
buf.append(URIUtil.canonicalPath(location));
else
{
String path=_connection.getRequest().getRequestURI();
String parent=(path.endsWith("/"))?path:URIUtil.parentPath(path);
location=URIUtil.canonicalPath(URIUtil.addPaths(parent,location));
if (!location.startsWith("/"))
buf.append('/');
buf.append(location);
}
location=buf.toString();
}
resetBuffer();
setHeader(HttpHeaders.LOCATION,location);
setStatus(HttpServletResponse.SC_MOVED_TEMPORARILY);
complete();
}
代码示例来源:origin: org.mortbay.jetty/com.springsource.org.mortbay.jetty.server
String old_uri=base_request.getRequestURI();
String old_context_path=base_request.getContextPath();
String old_servlet_path=base_request.getServletPath();
代码示例来源:origin: org.jboss.errai/errai-cdi-jetty
if ("/favicon.ico".equals(request.getRequestURI())
&& request.getQueryString() == null) {
代码示例来源:origin: org.mortbay.jetty/com.springsource.org.mortbay.jetty.server
+ ":"
+ connector.getIntegralPort()
+ request.getRequestURI();
if (request.getQueryString() != null)
url += "?" + request.getQueryString();
+ ":"
+ connector.getConfidentialPort()
+ request.getRequestURI();
if (request.getQueryString() != null)
url += "?" + request.getQueryString();
Log.warn("Request "+request.getRequestURI()+" failed - no realm");
response.sendError(Response.SC_INTERNAL_SERVER_ERROR,"No realm");
return false;
Log.warn("Mis-configured Authenticator for " + request.getRequestURI());
response.sendError(Response.SC_INTERNAL_SERVER_ERROR,"Configuration error");
代码示例来源:origin: org.mortbay.jetty/jetty-security
+ ":"
+ connector.getIntegralPort()
+ request.getRequestURI();
if (request.getQueryString() != null)
url += "?" + request.getQueryString();
+ ":"
+ connector.getConfidentialPort()
+ request.getRequestURI();
if (request.getQueryString() != null)
url += "?" + request.getQueryString();
Log.warn("Request "+request.getRequestURI()+" failed - no realm");
response.sendError(Response.SC_INTERNAL_SERVER_ERROR,"No realm");
return false;
Log.warn("Mis-configured Authenticator for " + request.getRequestURI());
response.sendError(Response.SC_INTERNAL_SERVER_ERROR,"Configuration error");
代码示例来源:origin: org.mortbay.jetty/com.springsource.org.mortbay.jetty.server
request.setAttribute(ServletHandler.__J_S_ERROR_REQUEST_URI, request.getRequestURI());
request.setAttribute(ServletHandler.__J_S_ERROR_SERVLET_NAME,request.getServletName());
message= StringUtil.replace(message, ">", ">");
String uri= request.getRequestURI();
if (uri!=null)
内容来源于网络,如有侵权,请联系作者删除!