blob: 8a67ee80bdd3f9895d281051f441d2edaa6a7a6f [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2002, 2011 Innoopract Informationssysteme GmbH and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Innoopract Informationssysteme GmbH - initial API and implementation
* Austin Riddle (Texas Center for Applied Technology) - migration to support
* compatibility with varied upload widget implementations
******************************************************************************/
package org.eclipse.rap.rwt.supplemental.fileupload;
/**
* Provides a configuration mechanism for the file upload.
*
* @since 1.4
*/
public interface IFileUploadConfiguration {
/**
* Sets the max file size in bytes allowed for an upload.
*
* @param maxFileSize - the maximum file size allowed
*/
void setMaxFileSize( long maxFileSize );
/**
* Returns the max file size in bytes allowed for an upload.
*/
long getMaxFileSize();
/**
* Sets the max size in bytes allowed for a complete request.
*
* @param maxRequestSize the size in bytes
*/
void setMaxRequestSize( long maxRequestSize );
/**
* Returns the max size in bytes allowed for a complete request.
*/
long getMaxRequestSize();
}