1 /******************************************************************************* 2 * Copyright (c) 2011, 2012 EclipseSource and others. 3 * All rights reserved. This program and the accompanying materials 4 * are made available under the terms of the Eclipse Public License v1.0 5 * which accompanies this distribution, and is available at 6 * http://www.eclipse.org/legal/epl-v10.html 7 * 8 * Contributors: 9 * EclipseSource - initial API and implementation 10 ******************************************************************************/ 11 package org.eclipse.rap.fileupload; 12 13 /** 14 * A file upload handler is used to accept file uploads from a client. After 15 * creating a file upload handler, the server will accept file uploads to the 16 * URL returned by <code>getUploadUrl()</code>. Upload listeners can be attached 17 * to react on progress. When the upload has finished, a FileUploadHandler has 18 * to be disposed of by calling its <code>dispose()</code> method. 19 * 20 * @noextend This class is not intended to be subclassed by clients. 21 */ 22 public class FileUploadHandler { 23 24 public FileUploadHandler(FileUploadReceiver fileUploadReceiver) { 25 } 26 27 public void dispose() { 28 29 } 30 31 public void addUploadListener(FileUploadListener listener) { 32 33 } 34 35 public String getUploadUrl() { 36 return null; 37 } 38 }