|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.juddi.api.impl.AuthenticatedService
org.apache.juddi.api.impl.UDDISubscriptionImpl
public class UDDISubscriptionImpl
Field Summary | |
---|---|
static String |
CHUNK_TOKEN_PREFIX
|
static int |
DEFAULT_CHUNKEXPIRATION_MINUTES
|
static int |
DEFAULT_SUBSCRIPTIONEXPIRATION_DAYS
|
Fields inherited from class org.apache.juddi.api.impl.AuthenticatedService |
---|
AUTHTOKEN_ACTIVE, AUTHTOKEN_RETIRED |
Constructor Summary | |
---|---|
UDDISubscriptionImpl()
|
Method Summary | |
---|---|
void |
deleteSubscription(DeleteSubscription body)
Cancels an existing subscription. |
SubscriptionResultsList |
getSubscriptionResults(GetSubscriptionResults body)
This API allows a subscriber to request that the information pertaining to an existing subscription be returned. This is useful, for example, to obtain historical data when a subscription is first set up or when a subscriber misses the notification normally provided by the registry. The results are returned synchronously as the response to this call. The get_subscriptionResults API can also be used as an alternative to notifications for obtaining subscription data. |
SubscriptionResultsList |
getSubscriptionResults(GetSubscriptionResults body,
UddiEntityPublisher publisher)
|
List<Subscription> |
getSubscriptions(String authInfo)
Returns the complete list of existing subscriptions owned by the subscriber. |
void |
saveSubscription(String authInfo,
javax.xml.ws.Holder<List<Subscription>> subscription)
The save_subscription API registers a request to monitor specific registry content and to have the node periodically notify the subscriber when changes are available. |
Methods inherited from class org.apache.juddi.api.impl.AuthenticatedService |
---|
getEntityPublisher |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DEFAULT_SUBSCRIPTIONEXPIRATION_DAYS
public static final int DEFAULT_CHUNKEXPIRATION_MINUTES
public static final String CHUNK_TOKEN_PREFIX
Constructor Detail |
---|
public UDDISubscriptionImpl()
Method Detail |
---|
public void deleteSubscription(DeleteSubscription body) throws DispositionReportFaultMessage
UDDISubscriptionPortType
deleteSubscription
in interface UDDISubscriptionPortType
body
- · authInfo: This optional argument is an element that contains an authentication token. Registries that wish to restrict who can delete a subscription typically require authInfo for this call, though this is a matter of node policy.
· subscriptionKey: This required argument specifies, using anyURIs, the subscription or subscriptions to be deleted.
DispositionReportFaultMessage
public SubscriptionResultsList getSubscriptionResults(GetSubscriptionResults body) throws DispositionReportFaultMessage
UDDISubscriptionPortType
getSubscriptionResults
in interface UDDISubscriptionPortType
body
- · authInfo: This optional argument is an element that contains an authentication token. Registries that wish to restrict who can retrieve subscription data typically require authInfo for this call, though this is a matter of node policy.
· chunkToken: This optional argument is used to retrieve subsequent groups of data when the first call to this API indicates more data is available. This occurs when a chunkToken is returned whose value is not "0" in the subscriptionResultsList structure described in the next section. To retrieve the next chunk of data, the value returned should be used as an argument to the next invocation of this API.
· coveragePeriod: This structure defines the time period over which the most recent changes in node data are compared with the subscription criteria in order to produce the result set. It provides start and end date/time information according to the format described in Section 5.5.4 Subscription Coverage Period. The "current" state of registry entries pertaining to the subscription referenced by the subscriptionKey provided are returned if they were last created, changed or deleted during the specified time period.
· subscriptionKey: This required argument of type anyURI identifies the subscription for which non-recurring synchronous results are being sought.
A subscriptionResultsList is returned whose content is determined by the coveragePeriod and the criteria in the subscription:
Attributes
Name |
Use |
someResultsUnavailable |
optional |
Subscription results MAY be chunked. See Section 5.5.5 Chunking of Returned Subscription Data, for more information on chunking of results. If results are chunked, then subsequent "chunks" can be retrieved using the chunkToken returned as an argument in a subsequent invocation of this API.
Note that the results returned in the subscriptionResultsList represent a snapshot of the current state of relevant entries in the registry. They are non-transactional in nature and prior states cannot be returned. Deleted entities and virtual deletes of entities, which have been changed in such a way that they no longer match the subscription criterion saved with the subscription, are returned only in the form of a keyBag structure, for which the deleted element is set to "true". A UDDI node MAY inform a subscriber about the real or virtual deletion of an entity multiple times.
The someResultsUnavailable attribute is set to "true" whenever the node has found it necessary to flush subscription results information pertaining to entity deletions (either actual or virtual) which pertain to this subscription, which have not yet been reported through prior calls to this API, or through use of the notify_subscriptionListener API described below. The period of time which a node retains information on deletions for a given subscription is a matter of node policy.
The API used in the subscription filter determines the sort order for returned entities. By default, they will be sorted according to the behavior specified in the "returns" section of that API.
DispositionReportFaultMessage
public SubscriptionResultsList getSubscriptionResults(GetSubscriptionResults body, UddiEntityPublisher publisher) throws DispositionReportFaultMessage
DispositionReportFaultMessage
public List<Subscription> getSubscriptions(String authInfo) throws DispositionReportFaultMessage
UDDISubscriptionPortType
getSubscriptions
in interface UDDISubscriptionPortType
authInfo
- authInfo: This optional argument is an element that
contains an authentication token. Registries that wish to restrict who
can obtain information on subscriptions typically require authInfo for
this call, though this is a matter of node policy.
DispositionReportFaultMessage
public void saveSubscription(String authInfo, javax.xml.ws.Holder<List<Subscription>> subscription) throws DispositionReportFaultMessage
UDDISubscriptionPortType
The syntax of the subscription structure is:
Attributes
Name |
Use |
brief |
optional |
The syntax of the subscriptionFilter structure is:
saveSubscription
in interface UDDISubscriptionPortType
authInfo
- authInfo: This optional argument is an element that contains an authentication token. Registries that wish to restrict who can save a subscription typically require authInfo for this call, though this is a matter of node policy.
DispositionReportFaultMessage
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |