/** * Retrieves the file name from the <code>Content-disposition</code> * header. * * @param headers The HTTP headers object. * * @return The file name for the current <code>encapsulation</code>. */ protected String getFileName(FileItemHeaders headers) { return getFileName(headers.getHeader(CONTENT_DISPOSITION)); }
/** * Retrieves the file name from the <code>Content-disposition</code> * header. * * @param headers A <code>Map</code> containing the HTTP request headers. * * @return The file name for the current <code>encapsulation</code>. * @deprecated 1.2.1 Use {@link #getFileName(FileItemHeaders)}. */ @Deprecated protected String getFileName(Map<String, String> headers) { return getFileName(getHeader(headers, CONTENT_DISPOSITION)); }
/** * Creates a new {@link FileItem} instance. * * @param headers A <code>Map</code> containing the HTTP request * headers. * @param isFormField Whether or not this item is a form field, as * opposed to a file. * * @return A newly created <code>FileItem</code> instance. * * @throws FileUploadException if an error occurs. * @deprecated 1.2 This method is no longer used in favour of * internally created instances of {@link FileItem}. */ @Deprecated protected FileItem createItem(Map<String, String> headers, boolean isFormField) throws FileUploadException { return getFileItemFactory().createItem(getFieldName(headers), getHeader(headers, CONTENT_TYPE), isFormField, getFileName(headers)); }
continue; String fileName = getFileName(headers); currentItem = new FileItemStreamImpl(fileName, fieldName, headers.getHeader(CONTENT_TYPE), String fileName = getFileName(headers); if (fileName != null) { currentItem = new FileItemStreamImpl(fileName,
/** * Retrieves the file name from the <code>Content-disposition</code> * header. * * @param headers The HTTP headers object. * * @return The file name for the current <code>encapsulation</code>. */ protected String getFileName(FileItemHeaders headers) { return getFileName(headers.getHeader(CONTENT_DISPOSITION)); }
/** * Retrieves the file name from the <code>Content-disposition</code> * header. * * @param headers A <code>Map</code> containing the HTTP request headers. * * @return The file name for the current <code>encapsulation</code>. * @deprecated Use {@link #getFileName(FileItemHeaders)}. */ protected String getFileName(Map /* String, String */ headers) { return getFileName(getHeader(headers, CONTENT_DISPOSITION)); }
/** * Retrieves the file name from the <code>Content-disposition</code> * header. * * @param headers The HTTP headers object. * * @return The file name for the current <code>encapsulation</code>. */ protected String getFileName(FileItemHeaders headers) { return getFileName(headers.getHeader(CONTENT_DISPOSITION)); }
/** * Retrieves the file name from the <code>Content-disposition</code> * header. * * @param headers The HTTP headers object. * * @return The file name for the current <code>encapsulation</code>. */ protected String getFileName(FileItemHeaders headers) { return getFileName(headers.getHeader(CONTENT_DISPOSITION)); }
/** * Retrieves the file name from the <code>Content-disposition</code> * header. * * @param headers A <code>Map</code> containing the HTTP request headers. * * @return The file name for the current <code>encapsulation</code>. * @deprecated 1.2.1 Use {@link #getFileName(FileItemHeaders)}. */ @Deprecated protected String getFileName(Map<String, String> headers) { return getFileName(getHeader(headers, CONTENT_DISPOSITION)); }
/** * Retrieves the file name from the <code>Content-disposition</code> * header. * * @param headers A <code>Map</code> containing the HTTP request headers. * * @return The file name for the current <code>encapsulation</code>. * @deprecated 1.2.1 Use {@link #getFileName(FileItemHeaders)}. */ @Deprecated protected String getFileName(Map<String, String> headers) { return getFileName(getHeader(headers, CONTENT_DISPOSITION)); }
/** * Creates a new {@link FileItem} instance. * * @param headers A <code>Map</code> containing the HTTP request * headers. * @param isFormField Whether or not this item is a form field, as * opposed to a file. * * @return A newly created <code>FileItem</code> instance. * * @throws FileUploadException if an error occurs. * @deprecated 1.2 This method is no longer used in favour of * internally created instances of {@link FileItem}. */ @Deprecated protected FileItem createItem(Map<String, String> headers, boolean isFormField) throws FileUploadException { return getFileItemFactory().createItem(getFieldName(headers), getHeader(headers, CONTENT_TYPE), isFormField, getFileName(headers)); }
/** * Creates a new {@link FileItem} instance. * * @param headers A <code>Map</code> containing the HTTP request * headers. * @param isFormField Whether or not this item is a form field, as * opposed to a file. * * @return A newly created <code>FileItem</code> instance. * * @throws FileUploadException if an error occurs. * @deprecated 1.2 This method is no longer used in favour of * internally created instances of {@link FileItem}. */ @Deprecated protected FileItem createItem(Map<String, String> headers, boolean isFormField) throws FileUploadException { return getFileItemFactory().createItem(getFieldName(headers), getHeader(headers, CONTENT_TYPE), isFormField, getFileName(headers)); }
/** * Creates a new {@link FileItem} instance. * * @param headers A <code>Map</code> containing the HTTP request * headers. * @param isFormField Whether or not this item is a form field, as * opposed to a file. * * @return A newly created <code>FileItem</code> instance. * * @throws FileUploadException if an error occurs. * @deprecated This method is no longer used in favour of * internally created instances of {@link FileItem}. */ protected FileItem createItem(Map /* String, String */ headers, boolean isFormField) throws FileUploadException { return getFileItemFactory().createItem(getFieldName(headers), getHeader(headers, CONTENT_TYPE), isFormField, getFileName(headers)); }
continue; String fileName = getFileName(headers); currentItem = new FileItemStreamImpl(fileName, fieldName, headers.getHeader(CONTENT_TYPE), String fileName = getFileName(headers); if (fileName != null) { currentItem = new FileItemStreamImpl(fileName,
continue; String fileName = getFileName(headers); currentItem = new FileItemStreamImpl(fileName, fieldName, headers.getHeader(CONTENT_TYPE), String fileName = getFileName(headers); if (fileName != null) { currentItem = new FileItemStreamImpl(fileName,
continue; String fileName = getFileName(headers); currentItem = new FileItemStreamImpl(fileName, fieldName, headers.getHeader(CONTENT_TYPE), String fileName = getFileName(headers); if (fileName != null) { currentItem = new FileItemStreamImpl(fileName,