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 RemoteApplicationResponseSerializedStreaming

java.lang.Object
  extended by oracle.adf.view.rich.remote.RemoteApplicationResponse
      extended by oracle.adf.view.rich.remote.RemoteApplicationResponseSerializedStreaming

All Implemented Interfaces:
java.io.Serializable

public class RemoteApplicationResponseSerializedStreaming
extends RemoteApplicationResponse

When a Streaming RemoteApplicationResponse is detected, the framework will return this object. This class allows content to "stream" from the consumer rather then being cached. How this works is that the response is retrieved in two parts. The first part will return the object as it comes off the ObjectInputStream. This will return a serialized version of this class without any result being set. When the framework detects that this object is a Streaming Request, it will then make a call to the setResult method, appending the remainder of the stream to this object.

See Also:
Serialized Form

Nested Class Summary

 

Nested classes/interfaces inherited from class oracle.adf.view.rich.remote.RemoteApplicationResponse
RemoteApplicationResponse.Status, RemoteApplicationResponse.Type

 

Constructor Summary
RemoteApplicationResponseSerializedStreaming(RemoteApplicationResponse resp)
           

 

Method Summary
 RemoteApplicationInstance getRemoteApplicationInstance()
          Returns the current RemoteAdfApplicationInstance.
 java.lang.Object getResult()
          Returns the result based on type.
 RemoteApplicationResponse.Status getResultStatus()
          Returns the current Result Status
 RemoteApplicationResponse.Type getResultType()
          Returns the current Result Type
 java.util.Map<java.lang.String,java.io.Serializable> getTaskResultMap()
          Returns a unmodifiable map of TaskResults.

 

Methods inherited from class oracle.adf.view.rich.remote.RemoteApplicationResponse
getTaskResult, writeReplace

 

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

 

Constructor Detail

RemoteApplicationResponseSerializedStreaming

public RemoteApplicationResponseSerializedStreaming(RemoteApplicationResponse resp)

Method Detail

getResultType

public RemoteApplicationResponse.Type getResultType()
Description copied from class: RemoteApplicationResponse
Returns the current Result Type
Returns:

getResult

public java.lang.Object getResult()
Description copied from class: RemoteApplicationResponse
Returns the result based on type. The getResult can return any number of objects, but there are certain result types which return specific types of responses. They are:
Type.STREAM
- returns an inputStream to get data directly from the server.
Type.EXCEPTION
- returns an Exception object.
Type.OBJECT
- this is a catch all. Returns an arbitrary object from the server
Returns:

getRemoteApplicationInstance

public RemoteApplicationInstance getRemoteApplicationInstance()
Description copied from class: RemoteApplicationResponse
Returns the current RemoteAdfApplicationInstance. This instance contains all of the updated information on the request.
Specified by:
getRemoteApplicationInstance in class RemoteApplicationResponse
Returns:

getResultStatus

public RemoteApplicationResponse.Status getResultStatus()
Description copied from class: RemoteApplicationResponse
Returns the current Result Status
Specified by:
getResultStatus in class RemoteApplicationResponse
Returns:

getTaskResultMap

public java.util.Map<java.lang.String,java.io.Serializable> getTaskResultMap()
Description copied from class: RemoteApplicationResponse
Returns a unmodifiable map of TaskResults.
Specified by:
getTaskResultMap in class RemoteApplicationResponse

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.