|
IBM Branch Transformation Toolkit Javadoc | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.btt.server.flow.mapper.MappingController
This class caches the mappers and determines which mapper to be used based on the object type.
Field Summary | |
---|---|
static java.lang.String |
COLON
COLON |
static java.lang.String |
DEFAULT_KEY
DEFAULT_KEY |
static java.lang.String |
NULL_KEY
NULL_KEY |
static java.lang.String |
Protocol_Types
Protocol_Types |
static java.lang.String |
Request_Mappers
Request_Mappers |
static java.lang.String |
Response_Mappers
Response_Mappers |
Constructor Summary | |
---|---|
MappingController()
|
Method Summary | |
---|---|
static java.lang.String |
getProtocolType(java.lang.String protocolName)
Returns the protocol object type for the protocol name. |
static RequestObjectMapper |
getRequestObjectMapper(java.lang.Object obj)
Returns the request object mapper for the object. |
static ResponseObjectMapper |
getResponseObjectMapper(java.lang.Object obj)
Returns the response object mapper for the object. |
static void |
initialize(java.lang.String mapperInfoLocation)
Initializes the mappers defined in the resource bundle. |
protected void |
loadProtocolTypes(java.lang.String propFile)
Loads the protocol types from properties file. |
protected void |
loadRequestMappers(java.lang.String propFile)
Loads the request mappers from properties file. |
protected void |
loadResponseMappers(java.lang.String propFile)
Loads the response mappers from properties file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String DEFAULT_KEY
public static final java.lang.String NULL_KEY
public static final java.lang.String Request_Mappers
public static final java.lang.String Response_Mappers
public static final java.lang.String Protocol_Types
public static final java.lang.String COLON
Constructor Detail |
public MappingController()
Method Detail |
public static java.lang.String getProtocolType(java.lang.String protocolName)
The protocol name can be the namespace defined in the xsd.
protocolName
- The protocol name.
public static RequestObjectMapper getRequestObjectMapper(java.lang.Object obj)
obj
- The object.
public static ResponseObjectMapper getResponseObjectMapper(java.lang.Object obj)
obj
- The object.
public static void initialize(java.lang.String mapperInfoLocation) throws java.lang.Exception
mapperInfoLocation
- The location of the resource bundle.
java.lang.Exception
protected void loadRequestMappers(java.lang.String propFile) throws java.lang.Exception
propFile
- The location of the properties file.
java.lang.Exception
protected void loadResponseMappers(java.lang.String propFile) throws java.lang.Exception
propFile
- The location of the properties file.
java.lang.Exception
protected void loadProtocolTypes(java.lang.String propFile) throws java.lang.Exception
propFile
- The location of the properties file.
java.lang.Exception
|
IBM Branch Transformation Toolkit Javadoc | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |