org.pricingnexus.cococ
Class URLSourceServant.USSurlReqHandler

org.pricingnexus.cococ.URLSourceServant.USSurlReqHandler
Enclosing class:
URLSourceServant

public class URLSourceServant.USSurlReqHandler

inner class to be used as callback for asynchronous receive from the "JMS_QUE_CMD_HTTPGET" channel


Field Summary
 org.jdom.input.SAXBuilder myBuilder
           
 org.jdom.Document myDoc
           
 
Constructor Summary
URLSourceServant.USSurlReqHandler()
          The constructor sets up JDOM objects that'll get reused in every call.
 
Method Summary
 void onMessage(org.pricingnexus.cococ.Message message)
          Wow, we've got mail ...decode it into XML and try to get the content.
 

Field Detail

myDoc

public org.jdom.Document myDoc

myBuilder

public org.jdom.input.SAXBuilder myBuilder
Constructor Detail

URLSourceServant.USSurlReqHandler

public URLSourceServant.USSurlReqHandler()
The constructor sets up JDOM objects that'll get reused in every call. Document gets created with dummy element. The parser will validate.
Method Detail

onMessage

public void onMessage(org.pricingnexus.cococ.Message message)
Wow, we've got mail ...decode it into XML and try to get the content. If we've problems with the content (missing fields e.g.) we'll write just an error out as this is no reason to stop anything but there's probably an error on the message prodcing side somebody has to look for.