com.jwebmp.plugins.blueimp.fileupload.BlueImpFileUploadBinderGuiceSiteBinder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jwebmp-blueimp-fileupload Show documentation
Show all versions of jwebmp-blueimp-fileupload Show documentation
File Upload widget with multiple file selection, drag and drop support, progress bar, validation and preview images, audio and video for jQuery.
Supports cross-domain, chunked and resumable file uploads.
Works with any server-side platform (Google App Engine, PHP, Python, Ruby on Rails, Java, etc.) that supports standard HTML form file uploads.
package com.jwebmp.plugins.blueimp.fileupload;
import com.guicedee.guicedservlets.services.GuiceSiteInjectorModule;
import com.guicedee.guicedservlets.services.IGuiceSiteBinder;
import com.guicedee.logger.LogFactory;
import com.jwebmp.plugins.blueimp.fileupload.servlets.AngularFileServlet;
import java.util.logging.Level;
import static com.jwebmp.core.utilities.StaticStrings.*;
public class BlueImpFileUploadBinderGuiceSiteBinder
implements IGuiceSiteBinder
{
public static final String BLUEIMP_FILEUPLOAD_SERVLETURL = "blueimpangularfileupload";
private static final java.util.logging.Logger log = LogFactory.getLog("AngularFileUpload");
@Override
public void onBind(GuiceSiteInjectorModule module)
{
module.serveRegex$("(" + "/" + BlueImpFileUploadBinderGuiceSiteBinder.BLUEIMP_FILEUPLOAD_SERVLETURL + ")" + QUERY_PARAMETERS_REGEX)
.with(AngularFileServlet.class);
BlueImpFileUploadBinderGuiceSiteBinder.log.log(Level.INFO, "Serving File Uploads at {0}", "/" + BlueImpFileUploadBinderGuiceSiteBinder.BLUEIMP_FILEUPLOAD_SERVLETURL);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy