Package wt.federation
Interface FederationServiceSvr
- All Known Implementing Classes:
StandardFederationService
public interface FederationServiceSvr
FederationServiceSvr provides methods to federation services that can
only be invoked from classes running on the server. These methods are
executed on the server side.
Supported API: true
Extendable: false
Supported API: true
Extendable: false
-
Method Summary
Modifier and TypeMethodDescriptionDetermines whether the specified object is an expired or stale proxy.Traverses a QueryResult and determines whether any of the objects contained within it are expired or stale proxies.Sends a request to Info*Engine to execute the specified template.invokeInfoEngineTemplate(String url, Hashtable params) Sends a request to Info*Engine to execute the specified template, optionally providing parameters in URL-encoded form data.voidRefreshes the properties of a proxy object.voidrefreshIfStale(Federated proxy) Refreshes the properties of a proxy object, but only if the object is stale.voidsendFeedback(MethodFeedback feedbackObject) Sends Feedback objects to the client.
-
Method Details
-
checkFreshness
Determines whether the specified object is an expired or stale proxy. Refreshes it immediately if it is an expired proxy. Enqueues a request to refresh the object if it is a stale but not expired proxy. Otherwise, returns the object as is.
Supported API: true- Parameters:
obj- the object to be checked.- Returns:
- Persistable
- Throws:
FederationServicesException
-
checkFreshness
Traverses a QueryResult and determines whether any of the objects contained within it are expired or stale proxies. Refreshes all expired proxies immediately, and enqueues requests to refresh stale ones that haven't expired.
Supported API: true- Parameters:
qr- the QueryResult to be checked.- Returns:
- QueryResult
- Throws:
FederationServicesException
-
invokeInfoEngineTemplate
Sends a request to Info*Engine to execute the specified template.
Supported API: true- Parameters:
url- the URL identifying the template to be executed.- Returns:
- InputStream
- Throws:
FederationServicesException
-
invokeInfoEngineTemplate
InputStream invokeInfoEngineTemplate(String url, Hashtable params) throws FederationServicesException Sends a request to Info*Engine to execute the specified template, optionally providing parameters in URL-encoded form data.
Supported API: true- Parameters:
url- the URL identifying the template to be executed.params- Hashtable of parameters to be sent as form data.- Returns:
- InputStream
- Throws:
FederationServicesException
-
refresh
Refreshes the properties of a proxy object.
Supported API: true- Parameters:
proxy- the proxy object to be refreshed.- Throws:
FederationServicesException
-
refreshIfStale
Refreshes the properties of a proxy object, but only if the object is stale.
Supported API: true- Parameters:
proxy- the proxy object to be refreshed.- Throws:
FederationServicesException
-
sendFeedback
Sends Feedback objects to the client.
Supported API: true- Parameters:
feedbackObject- Required. The feedback object to be sent to the client.- Throws:
FederationServicesException
-