@Test public void toMetaDatasShouldReturnAMetaDataMapWithGivenMultiPartInfos(){ Map<String,Object> metaDatas = MultiParts.toMetaDatas("contentType", "fileName"); assertEquals("contentType", metaDatas.get("multipart.content-type")); assertEquals("fileName", metaDatas.get("multipart.filename")); assertTrue((Boolean)metaDatas.get("multipart.flag")); }
public static Map<String,Object> toMetaDatas(String contentType, String fileName){ Map<String,Object> metadatas = new HashMap<String, Object>(); putMetaDatas(metadatas, contentType, fileName); return metadatas; }
MultiParts { public static Map<String,Object> toMetaDatas(String contentType, String fileName){ Map<String,Object> metadatas = new HashMap<String, Object>(); putMetaDatas(metadatas, contentType, fileName); return metadatas; } }
MultiParts { public static Map<String,Object> toMetaDatas(String contentType, String fileName){ Map<String,Object> metadatas = new HashMap<String, Object>(); putMetaDatas(metadatas, contentType, fileName); return metadatas; } private  MultiParts(); }
MultiParts { public static Map<String,Object> toMetaDatas(String contentType, String fileName){ Map<String,Object> metadatas = new HashMap<String, Object>(); putMetaDatas(metadatas, contentType, fileName); return metadatas; } private  MultiParts(); static String getContentType(ParamConfig paramConfig); static String getFileName(ParamConfig paramConfig); static String getContentType(Param param); static String getFileName(Param param); static boolean hasMultiPart(ParamConfig[] paramConfigs); static boolean hasMultiPart(Map<String,Object> metadatas); static boolean hasMultiPart(Param param); static void putMetaDatas(Map<String, Object> metadatas, String contentType, String fileName); static Map<String,Object> toMetaDatas(String contentType, String fileName); static void asMultipart(Map<String, Object> metadatas); }
MultiParts { public static Map<String,Object> toMetaDatas(String contentType, String fileName){ Map<String,Object> metadatas = new HashMap<String, Object>(); putMetaDatas(metadatas, contentType, fileName); return metadatas; } private  MultiParts(); static String getContentType(ParamConfig paramConfig); static String getFileName(ParamConfig paramConfig); static String getContentType(Param param); static String getFileName(Param param); static boolean hasMultiPart(ParamConfig[] paramConfigs); static boolean hasMultiPart(Map<String,Object> metadatas); static boolean hasMultiPart(Param param); static void putMetaDatas(Map<String, Object> metadatas, String contentType, String fileName); static Map<String,Object> toMetaDatas(String contentType, String fileName); static void asMultipart(Map<String, Object> metadatas);  }