|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BlobBuilder
Used to build the blob. Default implem : 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)
Field Summary | |
---|---|
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. |
Method Summary | |
---|---|
Blob |
build(byte[] input)
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. |
Methods inherited from interface be.ehealth.technicalconnector.utils.ConfigurableImplementation |
---|
initialize |
Field Detail |
---|
static final String PROJECT_NAME_KEY
static final String PLATFORM_NAME_KEY
static final String MESSAGE_NAME_KEY
Method Detail |
---|
Blob build(byte[] input) throws InvalidBlobContentConnectorException, TechnicalConnectorException
input
- the byte array to encode
InvalidBlobContentConnectorException
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 xades
InvalidBlobContentConnectorException
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 contentType
InvalidBlobContentConnectorException
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 messageName
InvalidBlobContentConnectorException
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 contentEncryption
InvalidBlobContentConnectorException
TechnicalConnectorException
byte[] checkAndRetrieveContent(Blob blob) throws InvalidBlobContentConnectorException, TechnicalConnectorException
blob
- Blob object
InvalidBlobContentConnectorException
TechnicalConnectorException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |