@Test public void testGetFormFields() { checkFormFields(new FormData(getMockGetRequest())); }
@Override @SuppressWarnings("unchecked") public Map<String, String[]> getFormFields() { if (isMultipart) { return getMultiPartFormFields(); } else { return request.getParameterMap(); } }
FormData implements FormInstance { @Override @SuppressWarnings("unchecked") public Map<String, String[]> getFormFields() { if (isMultipart) { return getMultiPartFormFields(); } else { return request.getParameterMap(); } } }
FormData implements FormInstance { @Override @SuppressWarnings("unchecked") public Map<String, String[]> getFormFields() { if (isMultipart) { return getMultiPartFormFields(); } else { return request.getParameterMap(); } } FormData(HttpServletRequest request); }
FormData implements FormInstance { @Override @SuppressWarnings("unchecked") public Map<String, String[]> getFormFields() { if (isMultipart) { return getMultiPartFormFields(); } else { return request.getParameterMap(); } } FormData(HttpServletRequest request); boolean isMultipartContent(); @Override @SuppressWarnings("unchecked") Map<String, String[]> getFormFields(); Map<String, String[]> getMultiPartFormFields(); @SuppressWarnings("unchecked") Map<String, List<FileItem>> getMultiPartItems(); @Override @SuppressWarnings("unchecked") Collection<String> getKeys(); @Override Blob getBlob(String key); @Override Blob[] getBlobs(String key); @Override Map<String, Blob[]> getBlobFields(); Blob getFirstBlob(); final FileItem getFileItem(String key); final List<FileItem> getFileItems(String key); String getMultiPartFormProperty(String key); String[] getMultiPartFormListProperty(String key); Object[] getMultiPartFormItems(String key); Object[] getMultiPartFormItems(List<FileItem> list); final Object getFileItemValue(FileItem item); String getFormProperty(String key); String[] getFormListProperty(String key); @Override String getString(String key); @Override String[] getList(String key); @Override Object[] get(String key); @Override void fillDocument(DocumentModel doc); @SuppressWarnings("unchecked") void fillDocumentFromForm(DocumentModel doc); void fillDocumentFromMultiPartForm(DocumentModel doc); VersioningOption getVersioningOption(); String getDocumentType(); String getDocumentTitle(); T validate(Class<T> type); }
FormData implements FormInstance { @Override @SuppressWarnings("unchecked") public Map<String, String[]> getFormFields() { if (isMultipart) { return getMultiPartFormFields(); } else { return request.getParameterMap(); } } FormData(HttpServletRequest request); boolean isMultipartContent(); @Override @SuppressWarnings("unchecked") Map<String, String[]> getFormFields(); Map<String, String[]> getMultiPartFormFields(); @SuppressWarnings("unchecked") Map<String, List<FileItem>> getMultiPartItems(); @Override @SuppressWarnings("unchecked") Collection<String> getKeys(); @Override Blob getBlob(String key); @Override Blob[] getBlobs(String key); @Override Map<String, Blob[]> getBlobFields(); Blob getFirstBlob(); final FileItem getFileItem(String key); final List<FileItem> getFileItems(String key); String getMultiPartFormProperty(String key); String[] getMultiPartFormListProperty(String key); Object[] getMultiPartFormItems(String key); Object[] getMultiPartFormItems(List<FileItem> list); final Object getFileItemValue(FileItem item); String getFormProperty(String key); String[] getFormListProperty(String key); @Override String getString(String key); @Override String[] getList(String key); @Override Object[] get(String key); @Override void fillDocument(DocumentModel doc); @SuppressWarnings("unchecked") void fillDocumentFromForm(DocumentModel doc); void fillDocumentFromMultiPartForm(DocumentModel doc); VersioningOption getVersioningOption(); String getDocumentType(); String getDocumentTitle(); T validate(Class<T> type); static final String PROPERTY; static final String TITLE; static final String DOCTYPE; static final String VERSIONING; static final String MAJOR; static final String MINOR; }