本文整理了Java中javax.servlet.http.HttpServletRequestWrapper.getPathInfo()
方法的一些代码示例,展示了HttpServletRequestWrapper.getPathInfo()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。HttpServletRequestWrapper.getPathInfo()
方法的具体详情如下:
包路径:javax.servlet.http.HttpServletRequestWrapper
类名称:HttpServletRequestWrapper
方法名:getPathInfo
[英]The default behavior of this method is to return getPathInfo() on the wrapped request object.
[中]此方法的默认行为是在包装的请求对象上返回getPathInfo()。
代码示例来源:origin: cloudfoundry/uaa
@Override
public String getPathInfo() {
return super.getPathInfo();
}
代码示例来源:origin: org.apache.cxf/cxf-rt-transports-http
@Override
public String getPathInfo() {
if (pathInfo == null) {
pathInfo = super.getPathInfo();
if (pathInfo == null) {
pathInfo = getRequestURI();
}
String prefix = super.getContextPath() + this.getServletPath();
if (pathInfo.startsWith(prefix)) {
pathInfo = pathInfo.substring(prefix.length());
}
}
return pathInfo;
}
}
代码示例来源:origin: com.atlassian.jira/jira-core
@Override
public String getPathInfo()
{
String pathInfo = super.getPathInfo();
return pathInfo;
}
代码示例来源:origin: com.github.wuic/wuic-servlet
/**
* {@inheritDoc}
*/
@Override
public String getPathInfo() {
// Synchronized access
synchronized (mutex) {
return super.getPathInfo();
}
}
代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.jetty.servlet
public String getPathInfo()
{
if (_included)
return super.getPathInfo();
return _pathInfo;
}
代码示例来源:origin: org.mortbay.jetty/com.springsource.org.mortbay.jetty.server
public String getPathInfo()
{
if (_included)
return super.getPathInfo();
return _pathInfo;
}
代码示例来源:origin: org.seasar.kvasir.cms/org.seasar.kvasir.cms
public String getPathInfo()
{
if (activated_) {
return pathInfo_;
} else {
return super.getPathInfo();
}
}
代码示例来源:origin: com.v5analytics.webster/webster
@Override
public String getPathInfo() {
if (pathInfo == null) {
return super.getPathInfo();
} else {
return pathInfo;
}
}
};
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server
public String getPathInfo()
{
if (_included)
return super.getPathInfo();
return _pathInfo;
}
代码示例来源:origin: org.apache.portals.jetspeed-2/jetspeed-portal
@Override
public String getPathInfo()
{
return (pathInfo != null ? pathInfo : super.getPathInfo());
}
}
代码示例来源:origin: jenkinsci/winstone
@Override
public String getPathInfo()
{
if (_included)
return super.getPathInfo();
return _pathInfo;
}
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-webapp
public String getPathInfo()
{
if (_included)
return super.getPathInfo();
return _pathInfo;
}
代码示例来源:origin: org.seleniumhq.selenium.server/selenium-server-coreless
public String getPathInfo()
{
if (_included)
return super.getPathInfo();
return _pathInfo;
}
代码示例来源:origin: apache/felix
@Override
public String getPathInfo()
{
if ( this.isInclusionDispatcher() )
{
return super.getPathInfo();
}
return this.requestInfo.pathInfo;
}
代码示例来源:origin: com.vaadin/vaadin-spring
@Override
public String getServletPath() {
String pathInfo = super.getPathInfo();
if (pathInfo == null) {
// the path where a ServletForwardingController is registered is not
// a real servlet path
return "";
} else {
return super.getServletPath();
}
}
代码示例来源:origin: org.sakaiproject.kernel/sakai-kernel-impl
public String getPathInfo()
{
if (getAttribute(NATIVE_URL) != null) return super.getPathInfo();
return m_path;
}
代码示例来源:origin: org.apache.felix/org.apache.felix.http.base
@Override
public String getPathInfo()
{
if ( this.isInclusionDispatcher() )
{
return super.getPathInfo();
}
return this.requestInfo.pathInfo;
}
代码示例来源:origin: com.vaadin/vaadin-spring
@Override
public String getPathInfo() {
String pathInfo = super.getPathInfo();
if (pathInfo == null) {
// this uses getServletPath() and should work both with and without
// clearServletPath
pathInfo = urlPathHelper.getPathWithinServletMapping(this);
}
return pathInfo;
}
}
代码示例来源:origin: org.jvnet.hudson.winstone/winstone
public String getPathInfo() {
if (hasBeenForwarded()) {
return super.getPathInfo();
} else {
return this.oldRequest.getPathInfo();
}
}
代码示例来源:origin: info.magnolia/magnolia-core
@Override
public Void answer(InvocationOnMock invocation) throws Throwable {
Object[] args = invocation.getArguments();
final HttpServletRequestWrapper requestWrapper = (HttpServletRequestWrapper) args[0];
final String pathInfo = requestWrapper.getPathInfo();
final String servletPath = requestWrapper.getServletPath();
assertEquals("pathInfo does not match", expectedPathInfo, pathInfo);
assertEquals("servletPath does not match", expectedServletPath, servletPath);
return null;
}
}).when(servlet).service(any(HttpServletRequestWrapper.class), same(res));
内容来源于网络,如有侵权,请联系作者删除!