/** * Returns the original filename in the client's filesystem. * * @return The original filename in the client's filesystem. * @throws InvalidFileNameException The file name contains a NUL character, * which might be an indicator of a security attack. If you intend to * use the file name anyways, catch the exception and use * InvalidFileNameException#getName(). */ public String getName() { return Streams.checkFileName(fileName); }
/** Called to check, whether the input streams * limit is reached. * @throws IOException The given limit is exceeded. */ private void checkLimit() throws IOException { if (count > sizeMax) { raiseError(sizeMax, count); } }
/** * Creates a new instance of {@link FileItemHeaders}. * @return The new instance. */ protected FileItemHeadersImpl newFileItemHeaders() { return new FileItemHeadersImpl(); }
/** * Returns the items file name. * @return File name, if known, or null. * @throws InvalidFileNameException The file name contains a NUL character, * which might be an indicator of a security attack. If you intend to * use the file name anyways, catch the exception and use * InvalidFileNameException#getName(). */ @Override public String getName() { return Streams.checkFileName(name); }
/** Called to check, whether the input streams * limit is reached. * @throws IOException The given limit is exceeded. */ private void checkLimit() throws IOException { if (count > sizeMax) { raiseError(sizeMax, count); } }
/** * Creates a new instance of {@link FileItemHeaders}. * @return The new instance. */ protected FileItemHeadersImpl newFileItemHeaders() { return new FileItemHeadersImpl(); }
/** * Returns the items file name. * @return File name, if known, or null. * @throws InvalidFileNameException The file name contains a NUL character, * which might be an indicator of a security attack. If you intend to * use the file name anyways, catch the exception and use * InvalidFileNameException#getName(). */ public String getName() { return Streams.checkFileName(name); }
/** * Called to check, whether the input streams * limit is reached. * * @throws IOException The given limit is exceeded. */ private void checkLimit() throws IOException { if (count > sizeMax) { raiseError(sizeMax, count); } }
/** * Creates a new instance of {@link FileItemHeaders}. * @return The new instance. */ protected FileItemHeadersImpl newFileItemHeaders() { return new FileItemHeadersImpl(); }
/** * Returns the original filename in the client's filesystem. * * @return The original filename in the client's filesystem. * @throws org.apache.tomcat.util.http.fileupload.InvalidFileNameException * The file name contains a NUL character, which might be an indicator of * a security attack. If you intend to use the file name anyways, catch * the exception and use InvalidFileNameException#getName(). */ public String getName() { return Streams.checkFileName(fileName); }
/** Called to check, whether the input streams * limit is reached. * @throws IOException The given limit is exceeded. */ private void checkLimit() throws IOException { if (count > sizeMax) { raiseError(sizeMax, count); } }
/** * Creates a new instance of {@link FileItemHeaders}. * @return The new instance. */ protected FileItemHeadersImpl newFileItemHeaders() { return new FileItemHeadersImpl(); }
/** * Returns the items file name. * @return File name, if known, or null. * @throws InvalidFileNameException The file name contains a NUL character, * which might be an indicator of a security attack. If you intend to * use the file name anyways, catch the exception and use * InvalidFileNameException#getName(). */ public String getName() { return Streams.checkFileName(name); }
/** * Called to check, whether the input streams * limit is reached. * * @throws IOException The given limit is exceeded. */ private void checkLimit() throws IOException { if (count > sizeMax) { raiseError(sizeMax, count); } }
/** * Creates a new instance of {@link FileItemHeaders}. * @return The new instance. */ protected FileItemHeadersImpl newFileItemHeaders() { return new FileItemHeadersImpl(); }
/** * Returns the items file name. * * @return File name, if known, or null. * @throws InvalidFileNameException The file name contains a NUL character, * which might be an indicator of a security attack. If you intend to * use the file name anyways, catch the exception and use * InvalidFileNameException#getName(). */ @Override public String getName() { return Streams.checkFileName(name); }
/** * Called to check, whether the input streams * limit is reached. * * @throws IOException The given limit is exceeded. */ private void checkLimit() throws IOException { if (count > sizeMax) { raiseError(sizeMax, count); } }
/** * Creates a new instance of {@link FileItemHeaders}. * @return The new instance. */ protected FileItemHeadersImpl newFileItemHeaders() { return new FileItemHeadersImpl(); }
/** * Returns the items file name. * * @return File name, if known, or null. * @throws InvalidFileNameException The file name contains a NUL character, * which might be an indicator of a security attack. If you intend to * use the file name anyways, catch the exception and use * InvalidFileNameException#getName(). */ @Override public String getName() { return Streams.checkFileName(name); }
/** * Returns the original filename in the client's filesystem. * * @return The original filename in the client's filesystem. * @throws org.apache.tomcat.util.http.fileupload.InvalidFileNameException * The file name contains a NUL character, which might be an indicator of * a security attack. If you intend to use the file name anyways, catch * the exception and use InvalidFileNameException#getName(). */ @Override public String getName() { return Streams.checkFileName(fileName); }