anon.terms
Class TermsAndConditionsResponseHandler

java.lang.Object
  extended by java.util.Observable
      extended by anon.terms.TermsAndConditionsResponseHandler

public class TermsAndConditionsResponseHandler
extends java.util.Observable

Extracts the requested resources the mix sends back and stores them. Now the mix supports sending two kinds of T&C resources: 1. Customized sections: additional or modified sections that the operator wants to be displayed in the given template. 2. Template: the template with predefined terms which is intended to be source of multiple Operator terms & conditions. A mix tc response looks like this: ... ...


Field Summary
private static TermsAndConditionsResponseHandler SINGLETON
           
static java.lang.String XML_ELEMENT_INVALID_REQUEST_NAME
           
static java.lang.String XML_ELEMENT_RESPONSE_NAME
           
 
Constructor Summary
private TermsAndConditionsResponseHandler()
           
 
Method Summary
static TermsAndConditionsResponseHandler get()
           
 void handleXMLResourceResponse(org.w3c.dom.Document answerDoc, TermsAndConditionsRequest request)
           
 void notifyAboutChanges()
           
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

XML_ELEMENT_INVALID_REQUEST_NAME

public static final java.lang.String XML_ELEMENT_INVALID_REQUEST_NAME
See Also:
Constant Field Values

XML_ELEMENT_RESPONSE_NAME

public static final java.lang.String XML_ELEMENT_RESPONSE_NAME
See Also:
Constant Field Values

SINGLETON

private static final TermsAndConditionsResponseHandler SINGLETON
Constructor Detail

TermsAndConditionsResponseHandler

private TermsAndConditionsResponseHandler()
Method Detail

handleXMLResourceResponse

public void handleXMLResourceResponse(org.w3c.dom.Document answerDoc,
                                      TermsAndConditionsRequest request)
                               throws XMLParseException,
                                      java.io.IOException,
                                      IllegalTCRequestPostConditionException,
                                      java.security.SignatureException
Throws:
XMLParseException
java.io.IOException
IllegalTCRequestPostConditionException
java.security.SignatureException

notifyAboutChanges

public void notifyAboutChanges()

get

public static TermsAndConditionsResponseHandler get()