OracleJavaScript API Reference for Oracle ADF Faces

 

SUMMARY: FIELD | CONSTR | METHOD    DETAIL: FIELD | CONSTR | METHOD

oracle.adfinternal.view.js.comm
Class AdfRestDataService

Warning:

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



Field Summary

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


Fields inherited from oracle.adf.view.js.base.AdfObject

constructor, superclass


Fields inherited from org.ecmascript.object.Object

prototype


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.


Method Summary

protected Object
Init()
Initializes the instance.
protected static Object
InitClass()
public Object
isBusy()
For automation's waitForServer tracking
private static Object
_isRelativeUrl(Object url)
private static Object
_normalizeUrl(Object url)
public Object
queueRequest(Object actionURL, Object options)
Queue's a new request to the REST service.
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


Methods inherited from oracle.adf.view.js.base.AdfObject

adopt, clone, createCallback, createInitializedObject, createSubclass, ensureClassInitialization, equals, exportPrototypeSymbol, getClass, GetLazyArrayProperty, GetLazyMapProperty, getTypeName, toDebugString, toString


Field Detail


CLIENT_ID_KEY

public static Object CLIENT_ID_KEY

ERROR_CALLBACK_KEY

public static Object ERROR_CALLBACK_KEY

_poolManager

private Object _poolManager

PRIORITIZE

public static Object PRIORITIZE

_requestQueueManager

private Object _requestQueueManager

SUCCESS_CALLBACK_KEY

public static Object SUCCESS_CALLBACK_KEY

Constructor Detail


AdfRestDataService

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

Method Detail


Init

protected Object Init()

Initializes the instance. Subclasses of AdfObject must call their superclass' Init

Return:
Object
Overrides:
AdfObject.Init()

InitClass

protected static Object InitClass()

Return:
Object

isBusy

public Object isBusy()

For automation's waitForServer tracking

Return:
Object

_isRelativeUrl

private static Object _isRelativeUrl(Object url)

Parameters:
url    
Return:
Object

_normalizeUrl

private static Object _normalizeUrl(Object url)

Parameters:
url    
Return:
Object

queueRequest

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:
actionURL    
options    
Return:
Object

__xhrCallback

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

SUMMARY: FIELD | CONSTR | METHOD    DETAIL: FIELD | CONSTR | METHOD

 

Generated on 2017.04.19 06:37 UTC
Copyright (c) 1998, 2015, Oracle and/or its affiliates. All rights reserved.