|
|
@ -38,18 +38,21 @@ public class RepeatedlyRequestWrapper extends HttpServletRequestWrapper |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public ServletInputStream getInputStream() throws IOException |
|
|
|
public ServletInputStream getInputStream() throws IOException |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
final ByteArrayInputStream bais = new ByteArrayInputStream(body); |
|
|
|
final ByteArrayInputStream bais = new ByteArrayInputStream(body); |
|
|
|
|
|
|
|
|
|
|
|
return new ServletInputStream() |
|
|
|
return new ServletInputStream() |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public int read() throws IOException |
|
|
|
public int read() throws IOException |
|
|
|
{ |
|
|
|
{ |
|
|
|
return bais.read(); |
|
|
|
return bais.read(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
public int available() throws IOException |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
return body.length; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public boolean isFinished() |
|
|
|
public boolean isFinished() |
|
|
|
{ |
|
|
|
{ |
|
|
@ -67,11 +70,6 @@ public class RepeatedlyRequestWrapper extends HttpServletRequestWrapper |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
public int available() throws IOException { |
|
|
|
|
|
|
|
return body.length; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}; |
|
|
|
}; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|