public class BlobBuilderImpl extends Object implements BlobBuilder
Blob Implementation for the BlobBuilder interface. this builder is configured with the following
properties :
MESSAGE_NAME_KEY, PLATFORM_NAME_KEY, PROJECT_NAME_KEY| Constructor and Description |
|---|
BlobBuilderImpl() |
| Modifier and Type | Method and Description |
|---|---|
Blob |
build(byte[] input)
Build a
BlobProperties needed : id, contenttype and encoding type |
Blob |
build(byte[] input,
BlobAttributeValues blobAttributes)
encodes the given byte array and creates Blob jaxb object.
|
Blob |
build(byte[] input,
String id)
Build a
BlobProperties needed : contenttype and encoding type. |
Blob |
build(byte[] input,
String encodingType,
String id,
String contentType)
creates
Blob with given parameters. |
Blob |
build(byte[] input,
String encodingType,
String id,
String contentType,
String messageName)
creates
Blob with given parameters. |
Blob |
build(byte[] input,
String encodingType,
String id,
String contentType,
String messageName,
String contentEncryption)
creates
Blob with given parameters. |
byte[] |
checkAndRetrieveContent(Blob blob)
Return the content of the blob.
|
void |
initialize(Map<String,Object> parameterMap)
Project name defined in parameters when the RequestBuilderFactory
|
public void initialize(Map<String,Object> parameterMap) throws TechnicalConnectorException
initialize in interface ConfigurableImplementationparameterMap - Map with for each propertyString ,the input parameter as Object.TechnicalConnectorException - if the parameterMap is not correct.ConfigurableImplementation.initialize(Map)public Blob build(byte[] input) throws InvalidBlobContentConnectorException, TechnicalConnectorException
Blobbuild in interface BlobBuilderinput - the byte array to encodeInvalidBlobContentConnectorExceptionTechnicalConnectorExceptionBlobBuilder.build(byte[])public Blob build(byte[] input, String id) throws InvalidBlobContentConnectorException, TechnicalConnectorException
Blobbuild in interface BlobBuilderinput - the byte array to encodeid - the id given to the blob , needed when using xadesInvalidBlobContentConnectorExceptionTechnicalConnectorExceptionBlobBuilder.build(byte[], String)public Blob build(byte[] input, String encodingType, String id, String contentType) throws InvalidBlobContentConnectorException, TechnicalConnectorException
Blob with given parameters.build in interface BlobBuilderinput - encodingType - id - contentType - TechnicalConnectorExceptionInvalidBlobContentConnectorExceptionpublic Blob build(byte[] input, String encodingType, String id, String contentType, String messageName) throws InvalidBlobContentConnectorException, TechnicalConnectorException
Blob with given parameters.build in interface BlobBuilderinput - the byte array to encodeencodingType - the type of encoding used , see cookbookid - the id given to the blob , needed when using xadescontentType - the contentTypemessageName - the messageNameInvalidBlobContentConnectorExceptionTechnicalConnectorExceptionBlobBuilder.build(byte[], String, String, String,
String)public Blob build(byte[] input, String encodingType, String id, String contentType, String messageName, String contentEncryption) throws InvalidBlobContentConnectorException, TechnicalConnectorException
Blob with given parameters.build in interface BlobBuilderinput - the byte array to encodeencodingType - the type of encoding used , see cookbookid - the id given to the blob , needed when using xadescontentType - the contentTypemessageName - the messageNamecontentEncryption - the contentEncryptionInvalidBlobContentConnectorExceptionTechnicalConnectorExceptionBlobBuilder.build(byte[], String, String, String,
String, String)public Blob build(byte[] input, BlobAttributeValues blobAttributes) throws TechnicalConnectorException
BlobBuilderbuild in interface BlobBuilderinput - the byte array to encodeblobAttributes - the attributes of the blob elementTechnicalConnectorExceptionpublic byte[] checkAndRetrieveContent(Blob blob) throws TechnicalConnectorException
checkAndRetrieveContent in interface BlobBuilderblob - TechnicalConnectorExceptionInvalidBlobContentConnectorException
Connector Packaging generic 4.5.4 API
Copyright © {inceptionYear}-2024 eHealth. All Rights Reserved.