|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbe.ehealth.business.mycarenetcommons.builders.impl.ResponseBuilderImpl
public final class ResponseBuilderImpl
Basic implementation of the ResponseBuilder. Used for commons purpose.
property for this configuration : mycarenet.{projectName}.response.neededxadeslevel values : none/xades/xadest
if the value is missing a default value of none is used.
Field Summary |
---|
Fields inherited from interface be.ehealth.business.mycarenetcommons.builders.ResponseBuilder |
---|
PROJECT_NAME_KEY |
Constructor Summary | |
---|---|
ResponseBuilderImpl()
default constructor needed for ModuleBootstrapHook. |
Method Summary | |
---|---|
void |
bootstrap()
|
void |
createInvalidBlobContentConnectorException(Blob blob,
SignatureVerificationResult result,
Base64Binary xades)
creates the error message for a failed validation. |
static ResponseBuilder |
getInstance()
|
String |
getResponse(SendResponseType responseType)
|
String |
getResponse(SendResponseType responseType)
|
String |
getResponse(SendResponseType responseType,
boolean validate)
|
String |
getResponse(SendResponseType responseType,
boolean validate)
|
void |
initialize(Map<String,Object> parameterMap)
initializes the implementation with additional parameters. |
Blob |
mapBlobTypeToBlob(BlobType inBlob)
|
Blob |
mapBlobTypeToBlob(BlobType inBlob)
|
String |
retrieveResponseXadesProperty()
retrieves the xades property, if not found a default of none will be returned. |
void |
validateHash(Blob blob)
|
void |
validateXades(SendResponseType responseType)
validates the xades in the response type. |
void |
validateXades(SendResponseType responseType,
Blob blob)
Deprecated. : see interface , use the method without the second parameter instead |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResponseBuilderImpl()
Method Detail |
---|
public static ResponseBuilder getInstance()
public void initialize(Map<String,Object> parameterMap) throws TechnicalConnectorException
ConfigurableImplementation
initialize
in interface ConfigurableImplementation
parameterMap
- Map with for each propertyString ,the input parameter as Object.
TechnicalConnectorException
- if the parameterMap is not correct.public void validateHash(Blob blob) throws TechnicalConnectorException
validateHash
in interface ResponseBuilder
blob
- will throw InvalidBlobContentConnectorException if the hash is not correct.
TechnicalConnectorException
be.ehealth.business.mycarenetcommons.builders.ResponseBuilder#validateHash(be.fgov.ehealth.mycarenet.commons.protocol.v3.SendResponseType)
@Deprecated public void validateXades(SendResponseType responseType, Blob blob) throws TechnicalConnectorException
validateXades
in interface ResponseBuilder
blob
- will throw InvalidBlobContentConnectorException if the xades is not correct.
TechnicalConnectorException
ResponseBuilder.validateXades(be.fgov.ehealth.mycarenet.commons.protocol.v3.SendResponseType)
public void createInvalidBlobContentConnectorException(Blob blob, SignatureVerificationResult result, Base64Binary xades) throws InvalidBlobContentConnectorException
blob
- result
-
InvalidBlobContentConnectorException
public void validateXades(SendResponseType responseType) throws TechnicalConnectorException
ResponseBuilder
validateXades
in interface ResponseBuilder
responseType
- the SendResponseType
to validate will throw InvalidBlobContentConnectorException if the xades is not
correct.
TechnicalConnectorException
public String retrieveResponseXadesProperty()
public String getResponse(SendResponseType responseType) throws TechnicalConnectorException
getResponse
in interface ResponseBuilder
TechnicalConnectorException
public String getResponse(SendResponseType responseType) throws TechnicalConnectorException
getResponse
in interface ResponseBuilder
TechnicalConnectorException
public String getResponse(SendResponseType responseType, boolean validate) throws TechnicalConnectorException
getResponse
in interface ResponseBuilder
TechnicalConnectorException
ResponseBuilder.getResponse(be.fgov.ehealth.mycarenet.commons.protocol.v3.SendResponseType,
boolean)
public String getResponse(SendResponseType responseType, boolean validate) throws TechnicalConnectorException
getResponse
in interface ResponseBuilder
TechnicalConnectorException
public Blob mapBlobTypeToBlob(BlobType inBlob)
public Blob mapBlobTypeToBlob(BlobType inBlob)
public void bootstrap()
bootstrap
in interface ConfigurationModuleBootstrap.ModuleBootstrapHook
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |