Prev | Current Page 308 | Next

Binildas A Christudas

"Service-Oriented Java Business Integration"


java
public class CustomerTO implements Serializable
{
private String firstName;
private String lastName;
private AddressTO addressTO;
}
ch12\JavaXmlBinding\src\com\binildas\esb\javasource\AddressTO.
java
public class AddressTO implements Serializable{
private String houseNumber;
private String street;
private String city;
}
ch12\JavaXmlBinding\src\com\binildas\esb\javasource\
CreditCardTO.java
public class CreditCardTO implements Serializable{
private String cardNumber;
private String validTill;
private String cardType;
}
These classes are related as shown in the following UML class diagram:
???
???
???
Java XML Binding Using XStream
[ 230 ]
HttpInterceptor Component
The HttpInterceptor is a ServiceMix Transform component. This component
will first intercept the message contents. The XML formatted message sent by the
HTTP client will be intercepted here, and then printed out to the console. We then
unmarshal the XML instance into a Java instance using XStream. The Java instance
is then sent through the NMR to the next component in the flow, which is the
XStreamInspector.


Pages:
296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320