JavaScript API Reference for Oracle ADF Faces
oracle.adfinternal.view.js.comm
Class AdfRestDataService
Warning:
- This is an unsupported, internal implementation class.
- Use an API class that might provide equivalent functionality instead.
- This class will change without notice.
- It is not recommended that you use anything in this class.
org.ecmascript.object.Object
|
+--oracle.adf.view.js.base.AdfObject
|
+--oracle.adfinternal.view.js.comm.AdfRestDataService
public class AdfRestDataService
extends AdfObject
Manages GET requests to REST services, browser connections, XHR request queue and re-prioritizes GET requests on behalf of the DataSource. An instance from this class can be retrieved from AdfDhtmlPage#getRestDataService This class internally co-ordinates with two other classes 1) AdfXhrPoolManager - which manages the pool of connections to be used to make GET calls 2) AdfRestRequestQueueManager - Manages the queue of outstanding REST requests For internal purpose
Constructor Summary
|
public |
AdfRestDataService()
-
Manages GET requests to REST services, browser connections, XHR request queue and re-prioritizes GET requests on behalf of the DataSource.
|
Methods inherited from oracle.adf.view.js.base.AdfObject
|
adopt, clone, createCallback, createInitializedObject, createSubclass, ensureClassInitialization, equals, exportPrototypeSymbol, getClass, GetLazyArrayProperty, GetLazyMapProperty, getTypeName, toDebugString, toString |
public static Object CLIENT_ID_KEY
public static Object ERROR_CALLBACK_KEY
private Object _poolManager
public static Object PRIORITIZE
private Object _requestQueueManager
public static Object SUCCESS_CALLBACK_KEY
public AdfRestDataService()
Manages GET requests to REST services, browser connections, XHR request queue and re-prioritizes GET requests on behalf of the DataSource. An instance from this class can be retrieved from AdfDhtmlPage#getRestDataService This class internally co-ordinates with two other classes 1) AdfXhrPoolManager - which manages the pool of connections to be used to make GET calls 2) AdfRestRequestQueueManager - Manages the queue of outstanding REST requests For internal purpose
protected Object Init()
Initializes the instance. Subclasses of AdfObject must call their superclass' Init
- Return:
Object
- Overrides:
AdfObject.Init()
protected static Object InitClass()
- Return:
Object
public Object isBusy()
For automation's waitForServer tracking
- Return:
Object
private static Object _isRelativeUrl(Object url)
- Parameters:
-
- Return:
Object
private static Object _normalizeUrl(Object url)
- Parameters:
-
- Return:
Object
public Object queueRequest(Object actionURL,
Object options)
Queue's a new request to the REST service. Depending on the availability of free connections, the request could be posted immediately or will wait for its turn in a FIFO queue. For the request to be prioritized over other waiting requests in the queue, pass true to the parameter 'priority'
- Parameters:
-
- Return:
Object
Object __xhrCallback(Object request,
Object optionKey,
Object callbackArgs)
Invokes a specific callback method identifid by a key, from each of the options object for the request The method is invoked from AdfXhrPoolManager on completion of XHR request
- Parameters:
-
request |
|
|
optionKey |
|
|
callbackArgs |
|
|
- Return:
Object
Generated on 2017.04.19 06:37 UTC
Copyright (c) 1998, 2015, Oracle and/or its affiliates. All rights reserved.