public class ObjectUploadListener extends Object implements javax.servlet.ReadListener
| Constructor and Description |
|---|
ObjectUploadListener(FileLfsRepository repository,
javax.servlet.AsyncContext context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
AnyLongObjectId id) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
close() |
void |
onAllDataRead() |
void |
onDataAvailable()
Writes all the received data to the output channel
|
void |
onError(Throwable e) |
public ObjectUploadListener(FileLfsRepository repository, javax.servlet.AsyncContext context, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, AnyLongObjectId id) throws FileNotFoundException, IOException
repository - the repository storing large objectscontext - request - response - id - FileNotFoundExceptionIOExceptionpublic void onDataAvailable()
throws IOException
onDataAvailable in interface javax.servlet.ReadListenerIOExceptionpublic void onAllDataRead()
throws IOException
onAllDataRead in interface javax.servlet.ReadListenerIOExceptionprotected void close()
throws IOException
IOExceptionpublic void onError(Throwable e)
onError in interface javax.servlet.ReadListenere - the exception that caused the problemCopyright © 2016 Eclipse JGit Project. All rights reserved.