@Test public void testIsXml6() { assertEquals(false, RESTGatewayUtil.isXml("text/html")); }
public static boolean isXml(String contentType) { return contentType != null && (contentType.startsWith(Constants.TEXT_XML) || contentType.startsWith(Constants.APPLICATION_XML)); }
RESTGatewayUtil { public static boolean isXml(String contentType) { return contentType != null && (contentType.startsWith(Constants.TEXT_XML) || contentType.startsWith(Constants.APPLICATION_XML)); } }
RESTGatewayUtil { public static boolean isXml(String contentType) { return contentType != null && (contentType.startsWith(Constants.TEXT_XML) || contentType.startsWith(Constants.APPLICATION_XML)); } private  RESTGatewayUtil(); }
RESTGatewayUtil { public static boolean isXml(String contentType) { return contentType != null && (contentType.startsWith(Constants.TEXT_XML) || contentType.startsWith(Constants.APPLICATION_XML)); } private  RESTGatewayUtil(); static boolean isXml(String contentType); static boolean isValidContentType(String contentType); static void extractEndpoints(String key, Properties endpoints, AbstractEndpoint endpoint); static boolean isNullOrEmpty(String value); static Decrypter checkPrivateKey(Properties props); static Decrypter getDecrypter(String privateKeyFile, String privateKeyFilePassword, String privateKeyAlias, String privateKeyPassword); static Encrypter checkPublicKey(Properties props, String serviceId); static Encrypter getEncrypter(String publicKeyFile, String publicKeyFilePassword, String serviceId); static int getKeyLength(Properties props); static Encrypter createSymmetricEncrypter(int keyLength); static Decrypter getSymmetricDecrypter(Decrypter asymmetricDecrypter, String encryptedKey, String encodedIV); static void buildEncryptedBody(Encrypter symmetricEncrypter, Encrypter asymmetricEncrypter, SOAPElement msg, String encryptedData); static String getPropertiesDirectory(); }
RESTGatewayUtil { public static boolean isXml(String contentType) { return contentType != null && (contentType.startsWith(Constants.TEXT_XML) || contentType.startsWith(Constants.APPLICATION_XML)); } private  RESTGatewayUtil(); static boolean isXml(String contentType); static boolean isValidContentType(String contentType); static void extractEndpoints(String key, Properties endpoints, AbstractEndpoint endpoint); static boolean isNullOrEmpty(String value); static Decrypter checkPrivateKey(Properties props); static Decrypter getDecrypter(String privateKeyFile, String privateKeyFilePassword, String privateKeyAlias, String privateKeyPassword); static Encrypter checkPublicKey(Properties props, String serviceId); static Encrypter getEncrypter(String publicKeyFile, String publicKeyFilePassword, String serviceId); static int getKeyLength(Properties props); static Encrypter createSymmetricEncrypter(int keyLength); static Decrypter getSymmetricDecrypter(Decrypter asymmetricDecrypter, String encryptedKey, String encodedIV); static void buildEncryptedBody(Encrypter symmetricEncrypter, Encrypter asymmetricEncrypter, SOAPElement msg, String encryptedData); static String getPropertiesDirectory(); static final int DEFAULT_KEY_LENGTH; }