final class ProductImageServiceEP6Rest extends java.lang.Object implements ProductImageService
Modifier and Type | Field and Description |
---|---|
private ServerConfiguration |
config |
private InvocationBuilder |
invocationBuilder |
private static javax.ws.rs.core.UriBuilder |
RESOURCE_URI_BUILDER |
Constructor and Description |
---|
ProductImageServiceEP6Rest(InvocationBuilder invocationBuilder,
ServerConfiguration config) |
Modifier and Type | Method and Description |
---|---|
private org.apache.commons.fileupload.util.LimitedInputStream |
sizeLimit(java.io.InputStream in,
long max)
Limit the transferred amount of data in bytes.
|
javax.ws.rs.core.Response |
storeImage(java.lang.String shopPublicId,
GUID productId,
java.io.InputStream unlimitedInputStream,
java.lang.String imagename) |
void |
updateProductImage(ShopRequestContext shopReqCtx,
GUID productId,
ProductImage imageName) |
private static final javax.ws.rs.core.UriBuilder RESOURCE_URI_BUILDER
private final InvocationBuilder invocationBuilder
private ServerConfiguration config
@Inject ProductImageServiceEP6Rest(InvocationBuilder invocationBuilder, ServerConfiguration config)
public javax.ws.rs.core.Response storeImage(java.lang.String shopPublicId, GUID productId, java.io.InputStream unlimitedInputStream, java.lang.String imagename)
storeImage
in interface ProductImageService
private org.apache.commons.fileupload.util.LimitedInputStream sizeLimit(java.io.InputStream in, long max)
public void updateProductImage(ShopRequestContext shopReqCtx, GUID productId, ProductImage imageName)
updateProductImage
in interface ProductImageService