public class DiscoveryOMUtils extends Object
Constructor and Description |
---|
DiscoveryOMUtils() |
Modifier and Type | Method and Description |
---|---|
static Notification |
getByeFromOM(org.apache.axiom.om.OMElement byeElement) |
static Notification |
getHelloFromOM(org.apache.axiom.om.OMElement helloElement) |
static Probe |
getProbeFromOM(org.apache.axiom.om.OMElement probeElement) |
static QueryMatch |
getProbeMatchFromOM(org.apache.axiom.om.OMElement matchElement) |
static Resolve |
getResolveFromOM(org.apache.axiom.om.OMElement resolveElement) |
static QueryMatch |
getResolveMatchFromOM(org.apache.axiom.om.OMElement matchElement) |
static org.apache.axiom.om.OMElement |
toOM(Notification notification,
org.apache.axiom.om.OMFactory factory) |
static org.apache.axiom.om.OMElement |
toOM(Probe probe,
org.apache.axiom.om.OMFactory factory) |
static org.apache.axiom.om.OMElement |
toOM(QueryMatch match,
org.apache.axiom.om.OMFactory factory) |
static org.apache.axiom.om.OMElement |
toOM(Resolve resolve,
org.apache.axiom.om.OMFactory factory) |
static org.apache.axiom.om.OMElement |
toOM(TargetService service,
org.apache.axiom.om.OMFactory factory,
org.apache.axiom.om.OMElement parent)
Serializes the given TargetService instance into XML using the provided OMFactory.
|
public static Notification getHelloFromOM(org.apache.axiom.om.OMElement helloElement) throws DiscoveryException
DiscoveryException
public static Notification getByeFromOM(org.apache.axiom.om.OMElement byeElement) throws DiscoveryException
DiscoveryException
public static Probe getProbeFromOM(org.apache.axiom.om.OMElement probeElement) throws DiscoveryException
DiscoveryException
public static Resolve getResolveFromOM(org.apache.axiom.om.OMElement resolveElement) throws DiscoveryException
DiscoveryException
public static QueryMatch getProbeMatchFromOM(org.apache.axiom.om.OMElement matchElement) throws DiscoveryException
DiscoveryException
public static QueryMatch getResolveMatchFromOM(org.apache.axiom.om.OMElement matchElement) throws DiscoveryException
DiscoveryException
public static org.apache.axiom.om.OMElement toOM(Notification notification, org.apache.axiom.om.OMFactory factory) throws DiscoveryException
DiscoveryException
public static org.apache.axiom.om.OMElement toOM(Probe probe, org.apache.axiom.om.OMFactory factory)
public static org.apache.axiom.om.OMElement toOM(Resolve resolve, org.apache.axiom.om.OMFactory factory) throws DiscoveryException
DiscoveryException
public static org.apache.axiom.om.OMElement toOM(QueryMatch match, org.apache.axiom.om.OMFactory factory) throws DiscoveryException
DiscoveryException
public static org.apache.axiom.om.OMElement toOM(TargetService service, org.apache.axiom.om.OMFactory factory, org.apache.axiom.om.OMElement parent) throws DiscoveryException
service
- TargetService to be serializedfactory
- OMFactory to be used for creating XML objectsparent
- The parent element to which the TargetService will be attachedDiscoveryException
- If an error occurs while serializing XML contentCopyright © 2017 WSO2. All rights reserved.