Class DummyPayloadParser
- java.lang.Object
-
- org.certificateservices.messages.dummy.DummyPayloadParser
-
- All Implemented Interfaces:
PayloadParser
public class DummyPayloadParser extends java.lang.Object implements PayloadParser
Dummy implementation of a PayloadParser
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringNAMESPACE
-
Constructor Summary
Constructors Constructor Description DummyPayloadParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SomePayloadgenSomePayload(java.lang.String someValue)java.lang.StringgetJAXBPackage()Method that returns the JAXBPackage Name for the package name containing the JAXB classes.java.lang.StringgetNameSpace()java.lang.String[]getRelatedSchemas(java.lang.String payloadVersion)Method that should return related schemas used during payload schema validation.java.io.InputStreamgetSchemaAsInputStream(java.lang.String payLoadVersion)Method that should return the location of the schema for a given payLoadVersion, it should be accessable as a class resource using getClass().getResourceAsStream()voidinit(java.util.Properties config, MessageSecurityProvider secProv)Method that initializes the CSMessage parser with properties.
-
-
-
Method Detail
-
init
public void init(java.util.Properties config, MessageSecurityProvider secProv) throws MessageProcessingExceptionDescription copied from interface:PayloadParserMethod that initializes the CSMessage parser with properties.This method might be called more than once if configuration have been updated and the parser needs to be updated.
- Specified by:
initin interfacePayloadParser- Parameters:
config- the configuration of the parser.secProv- the related message security provider.- Throws:
MessageProcessingException- if configuration contained bad configuration of security provider.
-
genSomePayload
public SomePayload genSomePayload(java.lang.String someValue)
-
getNameSpace
public java.lang.String getNameSpace()
- Specified by:
getNameSpacein interfacePayloadParser- Returns:
- the related pay load elements unique name space.
-
getJAXBPackage
public java.lang.String getJAXBPackage()
Description copied from interface:PayloadParserMethod that returns the JAXBPackage Name for the package name containing the JAXB classes. For multiple package names use a ':' without spaces.- Specified by:
getJAXBPackagein interfacePayloadParser
-
getSchemaAsInputStream
public java.io.InputStream getSchemaAsInputStream(java.lang.String payLoadVersion) throws MessageContentException, MessageProcessingExceptionDescription copied from interface:PayloadParserMethod that should return the location of the schema for a given payLoadVersion, it should be accessable as a class resource using getClass().getResourceAsStream()- Specified by:
getSchemaAsInputStreamin interfacePayloadParser- Throws:
MessageContentException- if given version isn't supported.MessageProcessingException- if problems occurred setting up the stream.
-
getRelatedSchemas
public java.lang.String[] getRelatedSchemas(java.lang.String payloadVersion)
Method that should return related schemas used during payload schema validation.- Specified by:
getRelatedSchemasin interfacePayloadParser- Parameters:
payloadVersion- payload version.- Returns:
- an array of related schemas if no related schemas exists is empty array returned, never null.
-
-