[Httpunit-commit] CVS: httpunit/src/com/meterware/httpunit AppletContextImpl.java,1.1,1.2
Brought to you by:
russgold
|
From: Russell G. <rus...@us...> - 2002-11-15 05:49:44
|
Update of /cvsroot/httpunit/httpunit/src/com/meterware/httpunit
In directory usw-pr-cvs1:/tmp/cvs-serv23996/src/com/meterware/httpunit
Modified Files:
AppletContextImpl.java
Log Message:
Correct 1.4 problem with applet context
Index: AppletContextImpl.java
===================================================================
RCS file: /cvsroot/httpunit/httpunit/src/com/meterware/httpunit/AppletContextImpl.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- AppletContextImpl.java 15 Nov 2002 00:10:21 -0000 1.1
+++ AppletContextImpl.java 15 Nov 2002 01:22:37 -0000 1.2
@@ -24,6 +24,8 @@
import java.applet.Applet;
import java.net.URL;
import java.awt.*;
+import java.io.InputStream;
+import java.io.IOException;
/**
*
@@ -168,5 +170,61 @@
* @param status a string to display in the status window.
*/
public void showStatus( String status ) {
+ }
+
+
+ /**
+ * Returns the stream to which specified key is associated within this
+ * applet context. Returns <tt>null</tt> if the applet context contains
+ * no stream for this key.
+ * <p>
+ * For security reasons, mapping of streams and keys exists for each
+ * codebase. In other words, applet from one codebase cannot access
+ * the streams created by an applet from a different codebase
+ * <p>
+ * @return the stream to which this applet context maps the key
+ * @param key key whose associated stream is to be returned.
+ * @since JDK1.4
+ */
+ public InputStream getStream( String key ) {
+ return null;
+ }
+
+
+ /**
+ * Finds all the keys of the streams in this applet context.
+ * <p>
+ * For security reasons, mapping of streams and keys exists for each
+ * codebase. In other words, applet from one codebase cannot access
+ * the streams created by an applet from a different codebase
+ * <p>
+ * @return an Iterator of all the names of the streams in this applet
+ * context.
+ * @since JDK1.4
+ */
+ public Iterator getStreamKeys() {
+ return null;
+ }
+
+
+ /**
+ * Associates the specified stream with the specified key in this
+ * applet context. If the applet context previously contained a mapping
+ * for this key, the old value is replaced.
+ * <p>
+ * For security reasons, mapping of streams and keys exists for each
+ * codebase. In other words, applet from one codebase cannot access
+ * the streams created by an applet from a different codebase
+ * <p>
+ * @param key key with which the specified value is to be associated.
+ * @param stream stream to be associated with the specified key. If this
+ * parameter is <code>null<code>, the specified key is removed
+ * in this applet context.
+ * @throws <code>IOException</code> if the stream size exceeds a certain
+ * size limit. Size limit is decided by the implementor of this
+ * interface.
+ * @since JDK1.4
+ */
+ public void setStream( String key, InputStream stream ) throws IOException {
}
}
|