...
Method Summary |
void |
addCustomizedSectionsRequest(ServiceOperator operator,
java.lang.String langCode)
adds a request for the individual T&C sections of the given operator in the
the specified language. |
private void |
addResourceRequest(java.lang.String resourceType,
ServiceOperator operator,
java.lang.String langCode)
private util function for adding a generic resource request. |
void |
addTemplateRequest(ServiceOperator operator,
java.lang.String langCode,
java.lang.String templateRefID)
adds a template request for the given operator and language
the templateRefid needs to be specified to avoid
multiple requests of the same template. |
void |
checkRequestPostCondition()
To be called after the mix response was handled. |
boolean |
hasResourceRequests()
|
org.w3c.dom.Element |
toXmlElement(org.w3c.dom.Document a_doc)
Return an element that can be appended to the document. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XML_ELEMENT_NAME
public static final java.lang.String XML_ELEMENT_NAME
- See Also:
- Constant Field Values
XML_ELEMENT_CONTAINER_NAME
public static final java.lang.String XML_ELEMENT_CONTAINER_NAME
- See Also:
- Constant Field Values
XML_ATTR_LOCALE
public static final java.lang.String XML_ATTR_LOCALE
- See Also:
- Constant Field Values
XML_ELEMENT_REQ_TRANSLATION
public static final java.lang.String XML_ELEMENT_REQ_TRANSLATION
- See Also:
- Constant Field Values
XML_ELEMENT_RESOURCE_TEMPLATE
public static final java.lang.String XML_ELEMENT_RESOURCE_TEMPLATE
- See Also:
- Constant Field Values
XML_ELEMENT_RESOURCE_CUSTOMIZED_SECT
public static final java.lang.String XML_ELEMENT_RESOURCE_CUSTOMIZED_SECT
- See Also:
- Constant Field Values
XML_MSG_TC_INTERRUPT
public static final java.lang.String XML_MSG_TC_INTERRUPT
- See Also:
- Constant Field Values
XML_MSG_TC_CONFIRM
public static final java.lang.String XML_MSG_TC_CONFIRM
- See Also:
- Constant Field Values
requestedTemplates
private java.util.Vector requestedTemplates
- to remember which templates are already requested. Needed to
ensure that the same template is only requested once.
requestedItems
private java.util.Hashtable requestedItems
- stores the requested T&C resources. the key that maps to the entries
is built by the operator subject key identifier and the language.
resourceRootElements
private java.util.Hashtable resourceRootElements
- stores the resource root elements for the operators.
needed when the XML document is created.
TermsAndConditionsRequest
public TermsAndConditionsRequest()
addTemplateRequest
public void addTemplateRequest(ServiceOperator operator,
java.lang.String langCode,
java.lang.String templateRefID)
- adds a template request for the given operator and language
the templateRefid needs to be specified to avoid
multiple requests of the same template. (the same template can be used
by multiple operators)
addCustomizedSectionsRequest
public void addCustomizedSectionsRequest(ServiceOperator operator,
java.lang.String langCode)
- adds a request for the individual T&C sections of the given operator in the
the specified language.
addResourceRequest
private void addResourceRequest(java.lang.String resourceType,
ServiceOperator operator,
java.lang.String langCode)
- private util function for adding a generic resource request.
hasResourceRequests
public boolean hasResourceRequests()
toXmlElement
public org.w3c.dom.Element toXmlElement(org.w3c.dom.Document a_doc)
- Description copied from interface:
IXMLEncodable
- Return an element that can be appended to the document. This
Method must not change the document in any way!
- Specified by:
toXmlElement
in interface IXMLEncodable
- Parameters:
a_doc
- a document
- Returns:
- the interface as xml element
checkRequestPostCondition
public void checkRequestPostCondition()
throws IllegalTCRequestPostConditionException
- To be called after the mix response was handled.
checks if the mix really has sent all requested resources.
This method performs the necessary cleanups when the the terms and conditions containers are
not in a consistent state.
- Throws:
IllegalRequestPostConditionException
- if not all resources were sent
or the container are in an inconsistent state (e.g because of invalid signatures)
IllegalTCRequestPostConditionException