本文整理了Java中javax.servlet.http.HttpServletRequestWrapper.getRequestURL()
方法的一些代码示例,展示了HttpServletRequestWrapper.getRequestURL()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。HttpServletRequestWrapper.getRequestURL()
方法的具体详情如下:
包路径:javax.servlet.http.HttpServletRequestWrapper
类名称:HttpServletRequestWrapper
方法名:getRequestURL
[英]The default behavior of this method is to return getRequestURL() on the wrapped request object.
[中]此方法的默认行为是在包装的请求对象上返回getRequestURL()。
代码示例来源:origin: cloudfoundry/uaa
@Override
public StringBuffer getRequestURL() {
return super.getRequestURL();
}
代码示例来源:origin: com.atlassian.jira/jira-core
@Override
public StringBuffer getRequestURL()
{
StringBuffer requestURL = super.getRequestURL();
return requestURL;
}
代码示例来源:origin: com.github.wuic/wuic-servlet
/**
* {@inheritDoc}
*/
@Override
public StringBuffer getRequestURL() {
// Synchronized access
synchronized (mutex) {
return super.getRequestURL();
}
}
代码示例来源:origin: org.codelibs/jhighlight
public StringBuffer getRequestURL()
{
StringBuffer url = super.getRequestURL();
url.setLength(url.length() - 1);
return url;
}
}
代码示例来源:origin: com.uwyn/jhighlight
public StringBuffer getRequestURL()
{
StringBuffer url = super.getRequestURL();
url.setLength(url.length() - 1);
return url;
}
}
代码示例来源:origin: opencast/opencast
/**
* Wraps the request to enforce https as the request scheme.
*
* @param request
* the original request
*/
public HttpsRequestWrapper(HttpServletRequest request) {
super(request);
StringBuffer url = super.getRequestURL();
int protocolIndex = url.indexOf("://");
originalURL = "https" + url.substring(protocolIndex);
}
代码示例来源:origin: apache/felix
@Override
public StringBuffer getRequestURL()
{
StringBuffer tmp = new StringBuffer(super.getRequestURL());
// In case the request happened over http, simply insert an additional 's'
// to make the request appear to be done over https...
if (tmp.indexOf(HTTP_SCHEME_PREFIX) == 0)
{
tmp.insert(4, 's');
}
return tmp;
}
代码示例来源:origin: org.apache.felix/org.apache.felix.http.sslfilter
@Override
public StringBuffer getRequestURL()
{
StringBuffer tmp = new StringBuffer(super.getRequestURL());
// In case the request happened over http, simply insert an additional 's'
// to make the request appear to be done over https...
if (tmp.indexOf(HTTP_SCHEME_PREFIX) == 0)
{
tmp.insert(4, 's');
}
return tmp;
}
代码示例来源:origin: org.teiid/teiid-olingo
@Override
public StringBuffer getRequestURL() {
//Workaround for https://issues.apache.org/jira/browse/OLINGO-1324
StringBuffer result = super.getRequestURL();
if (result.charAt(result.length()-1) == '/') {
result.setLength(result.length() - 1);
}
return result;
}
代码示例来源:origin: org.kohsuke.stapler/stapler
public String getRootPath() {
StringBuffer buf = super.getRequestURL();
int idx = 0;
for( int i=0; i<3; i++ )
idx += buf.substring(idx).indexOf("/")+1;
buf.setLength(idx-1);
buf.append(super.getContextPath());
return buf.toString();
}
代码示例来源:origin: org.jasig.portal/uPortal-rendering
@Override
public StringBuffer getRequestURL() {
this.checkState();
return super.getRequestURL();
}
代码示例来源:origin: org.hudsonci.stapler/stapler-core
public String getRootPath() {
StringBuffer buf = super.getRequestURL();
int idx = 0;
for( int i=0; i<3; i++ )
idx += buf.substring(idx).indexOf("/")+1;
buf.setLength(idx-1);
buf.append(super.getContextPath());
return buf.toString();
}
代码示例来源:origin: org.sakaiproject.kernel/sakai-kernel-impl
@Override
public StringBuffer getRequestURL() {
StringBuffer sb = null;
if (requestURI == null) {
sb = super.getRequestURL();
} else {
sb = new StringBuffer(requestURI);
}
// now attempt to autofix the URL
sb.append( getURLSuffix(sb.toString()) );
return sb;
};
代码示例来源:origin: Jasig/uPortal
@Override
public StringBuffer getRequestURL() {
this.checkState();
return super.getRequestURL();
}
代码示例来源:origin: stapler/stapler
public String getRootPath() {
StringBuffer buf = super.getRequestURL();
int idx = 0;
for( int i=0; i<3; i++ )
idx += buf.substring(idx).indexOf("/")+1;
buf.setLength(idx-1);
buf.append(super.getContextPath());
return buf.toString();
}
代码示例来源:origin: org.apache.wink/wink-server
@Override
public StringBuffer getRequestURL() {
return getCorrectRequest().getRequestURL();
}
代码示例来源:origin: org.codehaus.openxma/xmartserver
public StringBuffer getRequestURL() {
return new StringBuffer(filterHash(super.getRequestURL().toString()));
}
public String getServletPath() {
代码示例来源:origin: org.codehaus.openxma/xmartclient
public StringBuffer getRequestURL() {
return new StringBuffer(filterHash(super.getRequestURL().toString()));
}
public String getServletPath() {
代码示例来源:origin: org.seleniumhq.selenium/jetty-rc-repacked
public StringBuffer getRequestURL()
{
if (_filterType==Dispatcher.__INCLUDE || isNamed())
return super.getRequestURL();
StringBuffer buf = getRootURL();
if (_contextPath.length()>0)
buf.append(_contextPath);
buf.append(_uriInContext);
return buf;
}
代码示例来源:origin: org.seleniumhq.selenium.server/selenium-server-coreless
public StringBuffer getRequestURL()
{
if (_filterType==Dispatcher.__INCLUDE || isNamed())
return super.getRequestURL();
StringBuffer buf = getRootURL();
if (_contextPath.length()>0)
buf.append(_contextPath);
buf.append(_uriInContext);
return buf;
}
内容来源于网络,如有侵权,请联系作者删除!