2003-03-31 Michael Koch <konqueror@gmx.de>
* java/rmi/server/LoaderHandler.java (loadClass): Deprecated. (getSecurityContext): Deprecated. * java/rmi/server/LogStream.java (getDefaultStream): Deprecated. (setDefaultStream): Deprecated. (getOutputStream): Deprecated. (setOutputStream): Deprecated. (write): Deprecated. (toString): Deprecated. (parseLevel): Deprecated. * java/rmi/server/Operation.java (Operation): Deprecated. (getOperation): Deprecated. (toString): Deprecated. * java/rmi/server/RemoteCall.java (getOutputStream): Deprecated. (releaseOutputStream): Deprecated. (getInputStream): Deprecated. (releaseInputStream): Deprecated. (getResultStream): Deprecated. (executeCall): Deprecated. (done): Deprecated. * java/rmi/server/RemoteRef.java (invoke): Deprecated. (newCall): Deprecated. (done): Deprecated. * java/rmi/server/RemoteStub.java (setRef): Deprecated. * java/rmi/server/Skeleton.java: No need to import java.lang.Exception explicitly. (dispatch): Deprecated. (getOperations): Deprecated. From-SVN: r65079
This commit is contained in:
parent
60c98fd611
commit
a1bda993d5
8 changed files with 117 additions and 1 deletions
|
@ -47,11 +47,20 @@ public interface LoaderHandler
|
|||
{
|
||||
public static final String packagePrefix = "";
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
public Class loadClass(String name)
|
||||
throws MalformedURLException, ClassNotFoundException;
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
public Class loadClass(URL codebase, String name)
|
||||
throws MalformedURLException, ClassNotFoundException;
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
public Object getSecurityContext(ClassLoader loader);
|
||||
}
|
||||
|
|
|
@ -65,41 +65,65 @@ public class LogStream extends PrintStream
|
|||
throw new Error ("Not implemented");
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
public static PrintStream getDefaultStream ()
|
||||
{
|
||||
return defStream;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
public static void setDefaultStream (PrintStream s)
|
||||
{
|
||||
defStream = s;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
public OutputStream getOutputStream ()
|
||||
{
|
||||
return out;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
public void setOutputStream (OutputStream s)
|
||||
{
|
||||
out = s;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
public void write (int buffer)
|
||||
{
|
||||
super.write (buffer);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
public void write (byte[] buffer, int offset, int len)
|
||||
{
|
||||
super.write (buffer, offset, len);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
public String toString ()
|
||||
{
|
||||
throw new Error ("Not implemented");
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
public static int parseLevel (String s)
|
||||
{
|
||||
if (s.equalsIgnoreCase ("silent"))
|
||||
|
|
|
@ -44,16 +44,25 @@ public class Operation
|
|||
{
|
||||
private String operation;
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
public Operation (String op)
|
||||
{
|
||||
operation = op;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
public String getOperation ()
|
||||
{
|
||||
return operation;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
public String toString ()
|
||||
{
|
||||
return operation;
|
||||
|
|
|
@ -48,18 +48,39 @@ import java.io.StreamCorruptedException;
|
|||
*/
|
||||
public interface RemoteCall
|
||||
{
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
public ObjectOutput getOutputStream () throws IOException;
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
public void releaseOutputStream () throws IOException;
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
public ObjectInput getInputStream () throws IOException;
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
public void releaseInputStream () throws IOException;
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
public ObjectOutput getResultStream (boolean success)
|
||||
throws IOException, StreamCorruptedException;
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
public void executeCall () throws Exception;
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
public void done () throws IOException;
|
||||
}
|
||||
|
|
|
@ -49,15 +49,24 @@ public interface RemoteRef extends Externalizable
|
|||
|
||||
public static final String packagePrefix = "gnu.java.rmi.server";
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
public void invoke(RemoteCall call) throws Exception;
|
||||
|
||||
public Object invoke (Remote obj, Method method, Object[] params, long opnum)
|
||||
throws Exception;
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
public RemoteCall newCall (RemoteObject obj, Operation[] op, int opnum,
|
||||
long hash)
|
||||
throws RemoteException;
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
public void done (RemoteCall call) throws RemoteException;
|
||||
|
||||
public boolean remoteEquals (RemoteRef ref);
|
||||
|
|
|
@ -51,6 +51,9 @@ public abstract class RemoteStub extends RemoteObject
|
|||
super (ref);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
protected static void setRef (RemoteStub stub, RemoteRef ref)
|
||||
{
|
||||
stub.ref = ref;
|
||||
|
|
|
@ -38,7 +38,6 @@ exception statement from your version. */
|
|||
package java.rmi.server;
|
||||
|
||||
import java.rmi.Remote;
|
||||
import java.lang.Exception;
|
||||
import java.rmi.server.RemoteCall;
|
||||
|
||||
/**
|
||||
|
@ -46,8 +45,14 @@ import java.rmi.server.RemoteCall;
|
|||
*/
|
||||
public interface Skeleton
|
||||
{
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
public void dispatch (Remote obj, RemoteCall theCall, int opnum, long hash)
|
||||
throws Exception;
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
public Operation[] getOperations();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue