Skip navigation links

Oracle© Fusion Middleware Java API Reference for Oracle ADF Faces
11g Release 1 (11.1.1.7.0)
E10684-08


oracle.adf.view.rich.remote
Class RemoteApplicationUtils

java.lang.Object
  extended by oracle.adf.view.rich.remote.RemoteApplicationUtils


public class RemoteApplicationUtils
extends java.lang.Object

This is the workhorse of the Remote Application subsystem. It allows someone to make a connection to a remote server.


Method Summary
static AuthorizationProvider getAuthorizationProvider()
          Either instantiates and returns the configured Authorization Provider, a cached AuthorizationProvider, or a defult null implementation of an Authorization Provider.
static void invalidate(RemoteApplication app)
          Invalidate the remote application in the framework by expiring the session.
static boolean isRemote()
          Returns true if the current taskflow is being run as a remote producer.
static RemoteApplicationResponse run(RemoteApplicationRequest req)
          Executes a RemoteApplicationRequest on a remote server and returns a RemoteApplicationResponse.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Method Detail

isRemote

public static boolean isRemote()
Returns true if the current taskflow is being run as a remote producer.
Returns:
true if we are running as a remote producer and false if we are not

run

public static RemoteApplicationResponse run(RemoteApplicationRequest req)
Executes a RemoteApplicationRequest on a remote server and returns a RemoteApplicationResponse. This method handles application of the AuthorizationProvider as well as some of the complexities of session/sub-session management and should be considered thread-safe. <p/> There are also a few context paramaters which effect the functioning of this utility method. They are as follows:
Parameters:
req - the RemoteApplicationRequest to run
Returns:
a RemoteApplicationResponse containing the response from the producer.

invalidate

public static void invalidate(RemoteApplication app)
Invalidate the remote application in the framework by expiring the session. If the provided Application is a RemoteApplicationInstance then only that instance will be invalidated and the session cleaned up. If the provided object is a RemoteApplication then every RemoteApplicationInstance on that server will be invalidated.
Parameters:
app - the RemoteApplication or RemoteApplicationInstance you wish to invalidate
See Also:

getAuthorizationProvider

public static AuthorizationProvider getAuthorizationProvider()
Either instantiates and returns the configured Authorization Provider, a cached AuthorizationProvider, or a defult null implementation of an Authorization Provider.
Returns:

Skip navigation links

Oracle© Fusion Middleware Java API Reference for Oracle ADF Faces
11g Release 1 (11.1.1.7.0)
E10684-08


Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved.