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)
Constructor for ObjectUploadListener.
|
Modifier and Type | Method and Description |
---|---|
protected void |
close()
Close resources held by this listener
|
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
- a AsyncContext
object.request
- a HttpServletRequest
object.response
- a HttpServletResponse
object.id
- a AnyLongObjectId
object.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
Copyright © 2018 Eclipse JGit Project. All rights reserved.