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
Blob Properties 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
Blob Properties 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 ConfigurableImplementation
parameterMap
- 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
Blob
build
in interface BlobBuilder
input
- the byte array to encodeInvalidBlobContentConnectorException
TechnicalConnectorException
BlobBuilder.build(byte[])
public Blob build(byte[] input, String id) throws InvalidBlobContentConnectorException, TechnicalConnectorException
Blob
build
in interface BlobBuilder
input
- the byte array to encodeid
- the id given to the blob , needed when using xadesInvalidBlobContentConnectorException
TechnicalConnectorException
BlobBuilder.build(byte[], String)
public Blob build(byte[] input, String encodingType, String id, String contentType) throws InvalidBlobContentConnectorException, TechnicalConnectorException
Blob
with given parameters.build
in interface BlobBuilder
input
- encodingType
- id
- contentType
- TechnicalConnectorException
InvalidBlobContentConnectorException
public Blob build(byte[] input, String encodingType, String id, String contentType, String messageName) throws InvalidBlobContentConnectorException, TechnicalConnectorException
Blob
with given parameters.build
in interface BlobBuilder
input
- 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 messageNameInvalidBlobContentConnectorException
TechnicalConnectorException
BlobBuilder.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 BlobBuilder
input
- 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 contentEncryptionInvalidBlobContentConnectorException
TechnicalConnectorException
BlobBuilder.build(byte[], String, String, String,
String, String)
public Blob build(byte[] input, BlobAttributeValues blobAttributes) throws TechnicalConnectorException
BlobBuilder
build
in interface BlobBuilder
input
- the byte array to encodeblobAttributes
- the attributes of the blob elementTechnicalConnectorException
public byte[] checkAndRetrieveContent(Blob blob) throws TechnicalConnectorException
checkAndRetrieveContent
in interface BlobBuilder
blob
- TechnicalConnectorException
InvalidBlobContentConnectorException
Connector Packaging TRUSSMAKER 4.1.2 API
Copyright © {inceptionYear}-2022 eHealth. All Rights Reserved.