@Test public void testIsCompressedContentEncoding() { Assert.assertTrue(HttpUtilities.isCompressedContentEncoding("gzip")); Assert.assertTrue(HttpUtilities.isCompressedContentEncoding("deflate")); Assert.assertFalse(HttpUtilities.isCompressedContentEncoding("identity")); }
static public boolean isCompressedContentEncoding(String encodingName) { return GZIP_CONSTANT.equals(encodingName) || DEFLATE_CONSTANT.equals(encodingName); }
HttpUtilities { static public boolean isCompressedContentEncoding(String encodingName) { return GZIP_CONSTANT.equals(encodingName) || DEFLATE_CONSTANT.equals(encodingName); } }
HttpUtilities { static public boolean isCompressedContentEncoding(String encodingName) { return GZIP_CONSTANT.equals(encodingName) || DEFLATE_CONSTANT.equals(encodingName); } private  HttpUtilities(); }
HttpUtilities { static public boolean isCompressedContentEncoding(String encodingName) { return GZIP_CONSTANT.equals(encodingName) || DEFLATE_CONSTANT.equals(encodingName); } private  HttpUtilities(); static boolean isTextContentType(String contentType); static boolean isFormURLEncodedContentType(String contentType); static boolean isCompressedContentEncoding(String encodingName); static Map<String, String> stringToUrlParams(String paramsString, String charset); static String urlParamsToString(Map<String, String> params, String charset); }
HttpUtilities { static public boolean isCompressedContentEncoding(String encodingName) { return GZIP_CONSTANT.equals(encodingName) || DEFLATE_CONSTANT.equals(encodingName); } private  HttpUtilities(); static boolean isTextContentType(String contentType); static boolean isFormURLEncodedContentType(String contentType); static boolean isCompressedContentEncoding(String encodingName); static Map<String, String> stringToUrlParams(String paramsString, String charset); static String urlParamsToString(Map<String, String> params, String charset); final static String GZIP_CONSTANT; final static String DEFLATE_CONSTANT; final static String UTF8_CONSTANT; final static String HTTP_SCHEME; final static String HTTPS_SCHEME; final static int HTTP_DEFAULT_PORT; final static int HTTPS_DEFAULT_PORT; }