Package jimm.twice.ice.xml

Contains classes useful for building ICE payloads within SOAP envelopes.

See:
          Description

Class Summary
Add A package add request.
BusinessTerm  
Cancel A cancel request.
Cancellation  
Capabilities  
Confirmation A confirmation.
ContentMetadata Content metadata; goes with an offer.
DeliveryPolicy Delivery policy; goes with an offer.
DeliveryRule A delivery rule.
Description A package add request.
Fault A fault records an error id and optional message.
Features A container for feature string values.
GenericMetadata The abstract superclass of metadata and content metadata messages.
GetPackage A get-package request.
GetPackages A container for multiple get-package requests.
GetStatus  
Group A container for group, add, remove-item, and metadata messages.
Header Each ICE request and response needs a header.
Item A package item.
ItemRef A package item ref.
Location  
Message The superclass of all ICE XML message chunks.
Metadata A metadata message.
Namespaces XML namespace constants and comparison methods.
Offer An offer.
OfferMetadata  
OK An OK reply sent in response to a ping request.
Package An ICE package, which is a container for add, remove-item, and group elements.
PackageConfirmations  
Packages A container for package messages.
Packaging  
Parameters  
Ping A ping request.
Reference A URL item reference, found within an item-ref element.
Remove  
RemoveItem A package remove-item request.
SoapEnvelope ICE messages are delivered inside SOAP envelopes.
Status  
Subscribe  
SubscribeFault  
Subscription  
Text  
Transport  
 

Package jimm.twice.ice.xml Description

Contains classes useful for building ICE payloads within SOAP envelopes. Use the toString method of a SOAP envelope or any message element to retrieve it as an XML string.

The Message class is a wrapper around a DOM document node that contains an XML element. This makes it easy to add messages as children of other messages and to manipulate their attributes.

Here's an example of creating a simple SOAP envelope containing an ICE ping message:

    SoapEnvelope env = new SoapEnvelope();
    env.setHeader(new Header(domain, party));
    env.setBody(new Ping());

Here's how to do the same thing in one step:

    SoapEnvelope env = new SoapEnvelope(new Header(domain, party),
                                        new Ping());