|
@@ -38,12 +38,9 @@ public class RepeatedlyRequestWrapper extends HttpServletRequestWrapper |
|
@@ -38,12 +38,9 @@ public class RepeatedlyRequestWrapper extends HttpServletRequestWrapper |
|
38
|
@Override
|
38
|
@Override
|
|
39
|
public ServletInputStream getInputStream() throws IOException
|
39
|
public ServletInputStream getInputStream() throws IOException
|
|
40
|
{
|
40
|
{
|
|
41
|
-
|
|
|
|
42
|
final ByteArrayInputStream bais = new ByteArrayInputStream(body);
|
41
|
final ByteArrayInputStream bais = new ByteArrayInputStream(body);
|
|
43
|
-
|
|
|
|
44
|
return new ServletInputStream()
|
42
|
return new ServletInputStream()
|
|
45
|
{
|
43
|
{
|
|
46
|
-
|
|
|
|
47
|
@Override
|
44
|
@Override
|
|
48
|
public int read() throws IOException
|
45
|
public int read() throws IOException
|
|
49
|
{
|
46
|
{
|
|
@@ -51,6 +48,12 @@ public class RepeatedlyRequestWrapper extends HttpServletRequestWrapper |
|
@@ -51,6 +48,12 @@ public class RepeatedlyRequestWrapper extends HttpServletRequestWrapper |
|
51
|
}
|
48
|
}
|
|
52
|
|
49
|
|
|
53
|
@Override
|
50
|
@Override
|
|
|
|
51
|
+ public int available() throws IOException
|
|
|
|
52
|
+ {
|
|
|
|
53
|
+ return body.length;
|
|
|
|
54
|
+ }
|
|
|
|
55
|
+
|
|
|
|
56
|
+ @Override
|
|
54
|
public boolean isFinished()
|
57
|
public boolean isFinished()
|
|
55
|
{
|
58
|
{
|
|
56
|
return false;
|
59
|
return false;
|
|
@@ -67,11 +70,6 @@ public class RepeatedlyRequestWrapper extends HttpServletRequestWrapper |
|
@@ -67,11 +70,6 @@ public class RepeatedlyRequestWrapper extends HttpServletRequestWrapper |
|
67
|
{
|
70
|
{
|
|
68
|
|
71
|
|
|
69
|
}
|
72
|
}
|
|
70
|
-
|
|
|
|
71
|
- @Override
|
|
|
|
72
|
- public int available() throws IOException {
|
|
|
|
73
|
- return body.length;
|
|
|
|
74
|
- }
|
|
|
|
75
|
};
|
73
|
};
|
|
76
|
}
|
74
|
}
|
|
77
|
} |
75
|
} |