Skip navigation links

Oracle Communications Converged Application Server Java API Reference
5.1

E36938-01


com.oracle.sft.xcap.client
Interface XcapResource

All Known Subinterfaces:
Action, ActionCapabilities, Actions, Allow, Anonymous, BarringServiceCapability, Busy, CommunicationDiversion, CommunicationDiverted, CommunicationWaiting, Condition, ConditionCapabilities, Conditions, Directory, DirectoryDocument, DirectoryEntry, DirectoryFolder, DirectoryUri, DiversionServiceCapability, Empty, EmptyElementType, Entry, Except, Extensions, ExternalList, ForwardTo, From, Identity, IncomingCommunicationBarring, International, InternationalExceptHome, Many, Media, NoAnswer, NotReachable, NotRegistered, One, OriginatingIdentityPresentation, OriginatingIdentityPresentationRestriction, OtherIdentity, OutgoingCommunicationBarring, PresenceStatus, ProvisionedTargetType, ProvisionedType, Roaming, Rule, RuleDeactivated, RuleSet, ServiceCapability, SimServs, SimServsDocument, SimservType, Sphere, SupportedMediaType, SuppServiceElement, TerminatingIdentityPresentation, TerminatingIdentityPresentationRestriction, Transformations, Until, Validity, XcapAttribute, XcapCapsDocument, XcapDocument, XcapElement

public interface XcapResource

Represents an XCAP resource.


Method Summary
 String getContent()
          Provides the content of this component as xml.
 String getContentType()
          Provides the content type of the content.
 String getUrl()
          Provides the URI of the component relative to the XCAP root.
 void setContent(String xml)
          Replace the content of the component using an xml string.

 

Method Detail

getContent

String getContent()
                  throws XcapException
Provides the content of this component as xml.
Returns:
The XML representation of the component. The namespace prefixes used can be influenced by registering a namespace 2 prefix map using the method setNamespace2PrefixMap.
Throws:
XcapException - in case the content cannot be provided.
See Also:
XcapDocument.setNamespace2PrefixMap(java.util.Map<java.lang.String, java.lang.String>)

setContent

void setContent(String xml)
                throws XcapException
Replace the content of the component using an xml string. The namespace prefixes used must correspond to the namespace prefixes defined in the document.
Parameters:
xml - the content of the component in xml format.
Throws:
XcapException - in case the XML content cannot not be parsed.
IllegalArgumentException - in case one of the preconditions is not met.
See Also:
XcapDocument.getNamespace2PrefixMap, XcapDocument.setNamespace2PrefixMap

getContentType

String getContentType()
Provides the content type of the content.
Returns:
content type of the content.

getUrl

String getUrl()
Provides the URI of the component relative to the XCAP root.
Returns:
the uri without the XCAP root part of the uri which starts with "/".

Skip navigation links

Oracle Communications Converged Application Server Java API Reference
5.1

E36938-01


Copyright © 2012 Oracle Corporation. All Rights Reserved.