Package tigase.extras.http.upload
Class S3Store
java.lang.Object
tigase.extras.http.upload.S3Store
- All Implemented Interfaces:
tigase.http.upload.store.Store,tigase.kernel.beans.config.ConfigurationChangedAware
@Bean(name="store",
active=true,
exportable=true)
public class S3Store
extends Object
implements tigase.http.upload.store.Store, tigase.kernel.beans.config.ConfigurationChangedAware
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbeanConfigurationChanged(Collection<String> collection) longcount()protected Stringprotected StringcreateKeyPrefix(String slotId) getContent(tigase.xmpp.jid.BareJID uploader, String slotId, String filename) voidvoidsetContent(tigase.xmpp.jid.BareJID uploader, String slotId, String filename, long size, ReadableByteChannel source) voidlongsize()
-
Field Details
-
s3
protected com.amazonaws.services.s3.AmazonS3 s3 -
bucket
-
autocreateBucket
@ConfigField(desc="Autocreate bucket") protected boolean autocreateBucket -
accessKeyId
-
secretKey
-
endpointUrl
-
pathStyleAccess
-
signerOverride
-
-
Constructor Details
-
S3Store
public S3Store()
-
-
Method Details
-
getRegion
-
setRegion
-
count
- Specified by:
countin interfacetigase.http.upload.store.Store- Throws:
IOException
-
size
- Specified by:
sizein interfacetigase.http.upload.store.Store- Throws:
IOException
-
getContent
public ReadableByteChannel getContent(tigase.xmpp.jid.BareJID uploader, String slotId, String filename) throws IOException - Specified by:
getContentin interfacetigase.http.upload.store.Store- Throws:
IOException
-
setContent
public void setContent(tigase.xmpp.jid.BareJID uploader, String slotId, String filename, long size, ReadableByteChannel source) throws IOException - Specified by:
setContentin interfacetigase.http.upload.store.Store- Throws:
IOException
-
remove
- Specified by:
removein interfacetigase.http.upload.store.Store- Throws:
IOException
-
beanConfigurationChanged
- Specified by:
beanConfigurationChangedin interfacetigase.kernel.beans.config.ConfigurationChangedAware
-
createKeyPrefix
-
createKey
-