@Test(expected = InvalidParseOperationException.class) public void givenStringCdata() throws InvalidParseOperationException { final String bad = "aa<![CDATA[bb"; SanityChecker.checkParameter(bad); }
public static final void checkParameter(String... params) throws InvalidParseOperationException { for (final String param : params) { checkParam(param); } }
SanityChecker { public static final void checkParameter(String... params) throws InvalidParseOperationException { for (final String param : params) { checkParam(param); } } }
SanityChecker { public static final void checkParameter(String... params) throws InvalidParseOperationException { for (final String param : params) { checkParam(param); } } private  SanityChecker(); }
SanityChecker { public static final void checkParameter(String... params) throws InvalidParseOperationException { for (final String param : params) { checkParam(param); } } private  SanityChecker(); static boolean isValidFileName(String value); static final void checkXmlAll(File xmlFile); static final String sanitizeJson(JsonNode json); static final void checkJsonAll(JsonNode json); static final void checkJsonAll(String json); static final void checkParameter(String... params); static final void checkHTMLFile(File file); static final void checkHeaders(final HttpHeaders headers); static final void checkHeadersMap(MultivaluedMap<String, String> requestHeaders); static final void checkUriParametersMap(MultivaluedMap<String, String> uriParameters); static final long getLimitFileSize(); static final void setLimitFileSize(long limitFileSize); static final long getLimitJsonSize(); static final void setLimitJsonSize(long limitJsonSize); static final int getLimitFieldSize(); static final void setLimitFieldSize(int limitFieldSize); static final int getLimitParamSize(); static final void setLimitParamSize(int limitParamSize); }
SanityChecker { public static final void checkParameter(String... params) throws InvalidParseOperationException { for (final String param : params) { checkParam(param); } } private  SanityChecker(); static boolean isValidFileName(String value); static final void checkXmlAll(File xmlFile); static final String sanitizeJson(JsonNode json); static final void checkJsonAll(JsonNode json); static final void checkJsonAll(String json); static final void checkParameter(String... params); static final void checkHTMLFile(File file); static final void checkHeaders(final HttpHeaders headers); static final void checkHeadersMap(MultivaluedMap<String, String> requestHeaders); static final void checkUriParametersMap(MultivaluedMap<String, String> uriParameters); static final long getLimitFileSize(); static final void setLimitFileSize(long limitFileSize); static final long getLimitJsonSize(); static final void setLimitJsonSize(long limitJsonSize); static final int getLimitFieldSize(); static final void setLimitFieldSize(int limitFieldSize); static final int getLimitParamSize(); static final void setLimitParamSize(int limitParamSize); static final String HTTP_PARAMETER_VALUE; }