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
- FileNotFoundException
IOException
public void onDataAvailable() throws IOException
onDataAvailable
in interface javax.servlet.ReadListener
IOException
public void onAllDataRead() throws IOException
onAllDataRead
in interface javax.servlet.ReadListener
IOException
protected void close() throws IOException
IOException
public void onError(Throwable e)
onError
in interface javax.servlet.ReadListener
e
- the exception that caused the problemCopyright © 2017 Eclipse JGit Project. All rights reserved.