|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbe.ehealth.business.mycarenetdomaincommons.builders.impl.BlobBuilderImpl
public class BlobBuilderImpl
Used to build a Blob
Implementation for the BlobBuilder
interface. this builder is configured with the following
properties :
Field Summary |
---|
Fields inherited from interface be.ehealth.business.mycarenetdomaincommons.builders.BlobBuilder |
---|
MESSAGE_NAME_KEY, PLATFORM_NAME_KEY, PROJECT_NAME_KEY |
Constructor Summary | |
---|---|
BlobBuilderImpl()
|
Method Summary | |
---|---|
Blob |
build(byte[] input)
Build a Blob Properties needed : id, contenttype and encoding type |
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 |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BlobBuilderImpl()
Method Detail |
---|
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 encode
InvalidBlobContentConnectorException
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 xades
InvalidBlobContentConnectorException
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 messageName
InvalidBlobContentConnectorException
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 contentEncryption
InvalidBlobContentConnectorException
TechnicalConnectorException
BlobBuilder.build(byte[], String, String, String,
String, String)
public byte[] checkAndRetrieveContent(Blob blob) throws TechnicalConnectorException
checkAndRetrieveContent
in interface BlobBuilder
blob
-
TechnicalConnectorException
InvalidBlobContentConnectorException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |