update to latest servlet API behaviour
This commit is contained in:
parent
f4f6d834e7
commit
1956087277
|
@ -2446,8 +2446,7 @@ public class Request implements HttpServletRequest
|
||||||
{
|
{
|
||||||
throw new ServletException("HttpServletRequest.upgrade() not supported in Jetty");
|
throw new ServletException("HttpServletRequest.upgrade() not supported in Jetty");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public void setPathSpec(PathSpec pathSpec)
|
public void setPathSpec(PathSpec pathSpec)
|
||||||
{
|
{
|
||||||
_pathSpec = pathSpec;
|
_pathSpec = pathSpec;
|
||||||
|
@ -2457,10 +2456,9 @@ public class Request implements HttpServletRequest
|
||||||
{
|
{
|
||||||
return _pathSpec;
|
return _pathSpec;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// TODO replace with overriden version from API
|
@Override
|
||||||
public HttpServletMapping getMapping()
|
public HttpServletMapping getHttpServletMapping()
|
||||||
{
|
{
|
||||||
final PathSpec pathSpec = _pathSpec;
|
final PathSpec pathSpec = _pathSpec;
|
||||||
final MappingMatch match;
|
final MappingMatch match;
|
||||||
|
@ -2479,7 +2477,7 @@ public class Request implements HttpServletRequest
|
||||||
break;
|
break;
|
||||||
case EXACT:
|
case EXACT:
|
||||||
match = MappingMatch.EXACT;
|
match = MappingMatch.EXACT;
|
||||||
mapping = _servletPath;
|
mapping = _servletPath.startsWith("/")?_servletPath.substring(1):_servletPath;
|
||||||
break;
|
break;
|
||||||
case SUFFIX_GLOB:
|
case SUFFIX_GLOB:
|
||||||
match = MappingMatch.EXTENSION;
|
match = MappingMatch.EXTENSION;
|
||||||
|
|
|
@ -24,7 +24,7 @@ import static org.junit.Assert.assertNull;
|
||||||
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
|
@Deprecated
|
||||||
public class IPAddressMapTest
|
public class IPAddressMapTest
|
||||||
{
|
{
|
||||||
@Test
|
@Test
|
||||||
|
|
Loading…
Reference in New Issue