|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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
Method Summary | |
Persistable |
checkFreshness(Persistable obj)
Determines whether the specified object is an expired or stale proxy. |
QueryResult |
checkFreshness(QueryResult qr)
Traverses a QueryResult and determines whether any of the objects contained within it are expired or stale proxies. |
InputStream |
executeHTTPRequest(String method,
String urlString,
String payload)
Executes a specified HTTP request against a specified resource and returns the HTTP response. |
InputStream |
executeHTTPRequest(String method,
String urlString,
String contentType,
byte[] payload)
Executes a specified HTTP request against a specified resource and returns the HTTP response. |
QueryResult |
getAllServiceObjects()
Returns an enumeration of all known FederatedService objects. |
Properties |
getFederationProperties()
Get a properties object that contains properties from the federation properties file. |
FeedbackSpec |
getFeedbackSpec()
Returns the feedback specification object associated with the method context. |
InputStream |
invokeInfoEngineTemplate(String url)
Sends a request to Info*Engine to execute the specified template. |
InputStream |
invokeInfoEngineTemplate(String url,
Hashtable params)
Sends a request to Info*Engine to execute the specified template, optionally providing parameters in URL-encoded form data. |
void |
refresh(Federated proxy)
Refreshes the properties of a proxy object. |
void |
refreshIfStale(Federated proxy)
Refreshes the properties of a proxy object, but only if the object is stale. |
void |
sendFeedback(MethodFeedback feedbackObject)
Sends Feedback objects to the client. |
Method Detail |
public Persistable checkFreshness(Persistable obj) throws FederationServicesException
obj
- the object to be checked.
FederationServicesException
public QueryResult checkFreshness(QueryResult qr) throws FederationServicesException
qr
- the QueryResult to be checked.
FederationServicesException
public InputStream executeHTTPRequest(String method, String urlString, String payload) throws FederationServicesException
method
- HTTP request method (GET, POST, PUT, etc.).urlString
- URL of the target resource.payload
- encoded request payload (POST/PUT), null if no payload.
FederationServicesException
public InputStream executeHTTPRequest(String method, String urlString, String contentType, byte[] payload) throws FederationServicesException
method
- HTTP request method (GET, POST, PUT, etc.).urlString
- URL of the target resource.contentType
- String stating what is the content-type of the payload.payload
- encoded request payload (POST/PUT), null if no payload.
FederationServicesException
public QueryResult getAllServiceObjects() throws FederationServicesException
FederationServicesException
public Properties getFederationProperties()
public FeedbackSpec getFeedbackSpec() throws FederationServicesException
FederationServicesException
public InputStream invokeInfoEngineTemplate(String url) throws FederationServicesException
url
- the URL identifying the template to be executed.
FederationServicesException
public InputStream invokeInfoEngineTemplate(String url, Hashtable params) throws FederationServicesException
url
- the URL identifying the template to be executed.params
- Hashtable of parameters to be sent as form data.
FederationServicesException
public void refresh(Federated proxy) throws FederationServicesException
proxy
- the proxy object to be refreshed.
FederationServicesException
public void refreshIfStale(Federated proxy) throws FederationServicesException
proxy
- the proxy object to be refreshed.
FederationServicesException
public void sendFeedback(MethodFeedback feedbackObject) throws FederationServicesException
feedbackObject
- Required. The feedback object to be sent to the client.
FederationServicesException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |