|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.nuxeo.ecm.core.storage.sql.net.BinaryManagerClient
public class BinaryManagerClient
A Binary Manager that uses a local BinaryManager
as a cache but also
passes calls to a remote BinaryManagerServlet
for writes and cache
misses.
Constructor Summary | |
---|---|
BinaryManagerClient(BinaryManager binaryManager,
HttpClient httpClient)
|
Method Summary | |
---|---|
Binary |
getBinary(java.io.InputStream in)
Saves the given input stream into a Binary . |
Binary |
getBinary(java.lang.String digest)
Returns a Binary corresponding to the given digest. |
void |
initialize(RepositoryDescriptor repositoryDescriptor)
Initializer. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BinaryManagerClient(BinaryManager binaryManager, HttpClient httpClient)
Method Detail |
---|
public void initialize(RepositoryDescriptor repositoryDescriptor) throws java.io.IOException
BinaryManager
initialize
in interface BinaryManager
java.io.IOException
public Binary getBinary(java.io.InputStream in) throws java.io.IOException
BinaryManager
Binary
.
Returns a Binary
representing the stream. The Binary
includes a digest that is a sufficient representation to persist it.
getBinary
in interface BinaryManager
in
- the input stream
java.io.IOException
public Binary getBinary(java.lang.String digest)
BinaryManager
Binary
corresponding to the given digest.
A null
is returned if the digest could not be found.
getBinary
in interface BinaryManager
digest
- the digest, or null
|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |