@Test public void testIgnoresTabsInContentType() { String expectedBoundary = "----=_Part_1030_1245216013.1472044230318"; String contentType = "multipart/related; type=\"text/xml\";" + " start=\"<D9F084D41FF641015E1EF64CC058CDAC>\";" + "\r\n\tboundary=\"" + expectedBoundary + "\""; String boundary = MimeUtils.getBoundary(contentType); assertEquals(expectedBoundary, boundary); }
public static String getBoundary(String contentType) { return getParameterValue(contentType, "boundary"); }
MimeUtils { public static String getBoundary(String contentType) { return getParameterValue(contentType, "boundary"); } }
MimeUtils { public static String getBoundary(String contentType) { return getParameterValue(contentType, "boundary"); } private  MimeUtils(); }
MimeUtils { public static String getBoundary(String contentType) { return getParameterValue(contentType, "boundary"); } private  MimeUtils(); static String mpMixedContentType(String boundary); static String mpRelatedContentType(String boundary, String rootContentType); static String contentTypeWithCharsetAndBoundary(String mimeType, String charset, String boundary); static String contentTypeWithCharsetAndBoundary(String mimeType, String type, String charset,
            String boundary); static String contentTypeWithCharset(String mimeType, String charset); static String getBaseContentType(String mimeType); static String getCharset(String contentType); static boolean hasUtf8Charset(String contentType); static boolean hasBoundary(String contentType); static String getBoundary(String contentType); static String[] toHeaders(Map<String, String> headers); static String randomBoundary(); }
MimeUtils { public static String getBoundary(String contentType) { return getParameterValue(contentType, "boundary"); } private  MimeUtils(); static String mpMixedContentType(String boundary); static String mpRelatedContentType(String boundary, String rootContentType); static String contentTypeWithCharsetAndBoundary(String mimeType, String charset, String boundary); static String contentTypeWithCharsetAndBoundary(String mimeType, String type, String charset,
            String boundary); static String contentTypeWithCharset(String mimeType, String charset); static String getBaseContentType(String mimeType); static String getCharset(String contentType); static boolean hasUtf8Charset(String contentType); static boolean hasBoundary(String contentType); static String getBoundary(String contentType); static String[] toHeaders(Map<String, String> headers); static String randomBoundary(); static final String HEADER_CONTENT_TYPE; static final String HEADER_ORIGINAL_CONTENT_TYPE; static final String HEADER_ORIGINAL_SOAP_ACTION; static final String HEADER_CONTENT_DATE; static final String HEADER_SIG_ALGO_ID; static final String HEADER_HASH_ALGO_ID; static final String HEADER_PROXY_VERSION; static final String HEADER_CONTENT_TRANSFER_ENCODING; static final String HEADER_VERIFICATION_CERT_HASH; static final String HEADER_CONTENT_IDENTIFIER; static final String HEADER_CONTENT_LOCATION; static final String HEADER_HASH_ALGORITHM_ID; static final String HEADER_CONTENT_FILE_NAME; static final String HEADER_EXPIRE_DATE; static final String HEADER_VERSION; static final String PARAM_INSTANCE; static final String HEADER_CONTENT_ID; static final String HASH_CHAIN_CONTENT_TYPE; static final String HASH_CHAIN_RESULT_CONTENT_TYPE; static final String UTF8; }