public interface BlobBuilder extends ConfigurableImplementation
BlobBuilderImpl
remarks : blobs
created by connector never contain a hashValue : this is ( until now at least ) never needed. the builds methods are provided to allow an
implementation using default value. there is an implementation provided by default by the RequestBuilderFactory to use the method that
implement the request using default data, you have to create the following keys in properties file. "mycarenet.blobbuilder." +
projectName + ".id" "mycarenet.blobbuilder." + projectName + ".encodingtype" "mycarenet.blobbuilder." + projectName + ".contenttype"
projetName is the project where the message is send (exemple in the provided empties properties files)Modifier and Type | Field and Description |
---|---|
static String |
MESSAGE_NAME_KEY
key to identify message name.
|
static String |
PLATFORM_NAME_KEY
key to identify platform name.
|
static String |
PROJECT_NAME_KEY
key to identify project name.
|
Modifier and Type | Method and Description |
---|---|
Blob |
build(byte[] input)
encodes the given byte array and creates Blob jaxb object.
|
Blob |
build(byte[] input,
BlobAttributeValues blobAttributes)
encodes the given byte array and creates Blob jaxb object.
|
Blob |
build(byte[] input,
String id)
encodes the given byte array and creates Blob jaxb object.
|
Blob |
build(byte[] input,
String encodingType,
String id,
String contentType)
encodes the given byte array and creates Blob jaxb object.
|
Blob |
build(byte[] input,
String encodingType,
String id,
String contentType,
String messageName)
encodes the given byte array and creates Blob jaxb object.
|
Blob |
build(byte[] input,
String encodingType,
String id,
String contentType,
String messageName,
String contentEncryption)
encodes the given byte array and creates Blob jaxb object.
|
byte[] |
checkAndRetrieveContent(Blob blob)
checks the validity of the blobs content and returns the content as byte array.
|
initialize
static final String PROJECT_NAME_KEY
static final String PLATFORM_NAME_KEY
static final String MESSAGE_NAME_KEY
Blob build(byte[] input) throws InvalidBlobContentConnectorException, TechnicalConnectorException
input
- the byte array to encodeInvalidBlobContentConnectorException
TechnicalConnectorException
Blob build(byte[] input, String id) throws InvalidBlobContentConnectorException, TechnicalConnectorException
input
- the byte array to encodeid
- the id given to the blob , needed when using xadesInvalidBlobContentConnectorException
TechnicalConnectorException
Blob build(byte[] input, String encodingType, String id, String contentType) throws InvalidBlobContentConnectorException, TechnicalConnectorException
input
- the byte array to encodeencodingType
- the type of encoding used , see cookbookid
- the id given to the blob , needed when using xadescontentType
- the contentTypeInvalidBlobContentConnectorException
TechnicalConnectorException
Blob build(byte[] input, String encodingType, String id, String contentType, String messageName) throws InvalidBlobContentConnectorException, TechnicalConnectorException
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
Blob build(byte[] input, String encodingType, String id, String contentType, String messageName, String contentEncryption) throws InvalidBlobContentConnectorException, TechnicalConnectorException
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
Blob build(byte[] input, BlobAttributeValues blobAttributes) throws TechnicalConnectorException
input
- the byte array to encodeblobAttributes
- the attributes of the blob elementTechnicalConnectorException
byte[] checkAndRetrieveContent(Blob blob) throws InvalidBlobContentConnectorException, TechnicalConnectorException
blob
- Blob objectInvalidBlobContentConnectorException
TechnicalConnectorException
Connector Packaging TRUSSMAKER 4.1.2 API
Copyright © {inceptionYear}-2022 eHealth. All Rights Reserved.