| | |
| | | {
|
| | | ServletRequest requestWrapper = null;
|
| | | if (request instanceof HttpServletRequest
|
| | | && StringUtils.equalsAnyIgnoreCase(request.getContentType(), MediaType.APPLICATION_JSON_VALUE))
|
| | | && StringUtils.startsWithIgnoreCase(request.getContentType(), MediaType.APPLICATION_JSON_VALUE))
|
| | | {
|
| | | requestWrapper = new RepeatedlyRequestWrapper((HttpServletRequest) request, response);
|
| | | }
|
| | |
| | | @Override
|
| | | public ServletInputStream getInputStream() throws IOException
|
| | | {
|
| | |
|
| | | final ByteArrayInputStream bais = new ByteArrayInputStream(body);
|
| | |
|
| | | return new ServletInputStream()
|
| | | {
|
| | |
|
| | | @Override
|
| | | public int read() throws IOException
|
| | | {
|
| | |
| | | }
|
| | |
|
| | | @Override
|
| | | public int available() throws IOException
|
| | | {
|
| | | return body.length;
|
| | | }
|
| | |
|
| | | @Override
|
| | | public boolean isFinished()
|
| | | {
|
| | | return false;
|
| | |
| | | }
|
| | |
|
| | | /**
|
| | | * 下划线转驼峰命名
|
| | | * 驼峰转下划线命名
|
| | | */
|
| | | public static String toUnderScoreCase(String str)
|
| | | {
|
| | |
| | |
|
| | | /** 显示状态(0显示 1隐藏) */
|
| | | private String visible;
|
| | | |
| | |
|
| | | /** 菜单状态(0显示 1隐藏) */
|
| | | private String status;
|
| | |
|