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