All Packages Class Hierarchy This Package Previous Next Index
Class com.extropia.net.JavaCGIBridgeNotify
java.lang.Object
|
+----com.extropia.net.JavaCGIBridgeNotify
- public class JavaCGIBridgeNotify
- extends Object
This class is sent to Observers of the JavaCGIBridge whenever
more data has been received by the JavaCGIBridge or the
HTTP response has completed.
It is also sent when the JavaCGIBridge recognizes that a
timeout has occured. Since threads cannot directly throw
an exception to observers, this is the thread's mechanism
for performing this notification.
- Version:
- 2.00, 18 Jul 1998
- Author:
- Gunther Birznieks, Marty Hall
-
JavaCGIBridgeNotify(Object, boolean)
- Constructs the object with the data object and the
flag indicating whether we are at the end of the
HTTP response.
-
getData()
- Returns the object
that was sent in this notification object
regardless of whether it is a Vector, byte
array, or a JavaCGIBridgeTimeOutException
object.
-
getParsedData()
- Returns parsed Vector data if
parsed data is expected to be returned.
-
getRawData()
- Returns an array of bytes for the raw data sent so far
if raw data is expected to be received.
-
isAtEndOfData()
- Returns true if the JavaCGIBridge object has reached the
end of the HTTP response.
-
isTimedOut()
- Returns true if the JavaCGIBridge object passed the time limit
for receiving data.
JavaCGIBridgeNotify
public JavaCGIBridgeNotify(Object data,
boolean endData)
- Constructs the object with the data object and the
flag indicating whether we are at the end of the
HTTP response.
isAtEndOfData
public boolean isAtEndOfData()
- Returns true if the JavaCGIBridge object has reached the
end of the HTTP response.
- Returns:
- boolean Flag indicating whether the end of HTTP
response was set.
isTimedOut
public boolean isTimedOut()
- Returns true if the JavaCGIBridge object passed the time limit
for receiving data.
- Returns:
- boolean Flag indicating whether the JavaCGIBridge
timed out.
getParsedData
public Vector getParsedData()
- Returns parsed Vector data if
parsed data is expected to be returned.
null will be returned if the data inside this object
is not a Vector.
- Returns:
- Vector containing parsed data from JavaCGIBridge
getRawData
public byte[] getRawData()
- Returns an array of bytes for the raw data sent so far
if raw data is expected to be received.
null will be returned if the data inside this object
is not a byte array.
- Returns:
- byte [] containing raw data from JavaCGIBridge
getData
public Object getData()
- Returns the object
that was sent in this notification object
regardless of whether it is a Vector, byte
array, or a JavaCGIBridgeTimeOutException
object.
- Returns:
- Object the data sent from JavaCGIBridge
All Packages Class Hierarchy This Package Previous Next Index