// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-

#ifndef __gnu_java_rmi_server_UnicastServerRef__
#define __gnu_java_rmi_server_UnicastServerRef__

#pragma interface

#include <gnu/java/rmi/server/UnicastRef.h>
#include <gcj/array.h>

extern "Java"
{
  namespace gnu
  {
    namespace java
    {
      namespace rmi
      {
        namespace server
        {
          class UnicastServerRef;
          class UnicastConnection;
        }
      }
    }
  }
  namespace java
  {
    namespace rmi
    {
      namespace server
      {
        class RMIServerSocketFactory;
        class ObjID;
        class RemoteStub;
        class Skeleton;
      }
      class Remote;
    }
  }
};

class ::gnu::java::rmi::server::UnicastServerRef : public ::gnu::java::rmi::server::UnicastRef
{
public:
  UnicastServerRef (::java::rmi::server::ObjID *, jint, ::java::rmi::server::RMIServerSocketFactory *);
  virtual ::java::rmi::server::RemoteStub *exportObject (::java::rmi::Remote *);
private:
  ::java::lang::Object *getHelperClass (::java::lang::Class *, ::java::lang::String *);
public:
  virtual ::java::lang::String *getClientHost ();
private:
  void buildMethodHash (::java::lang::Class *);
public:
  virtual ::java::lang::Object *incomingMessageCall (::gnu::java::rmi::server::UnicastConnection *, jint, jlong);
private:
  static JArray< ::java::lang::Class *> *stubprototype;
public: // actually package-private
  ::java::rmi::Remote *myself;
private:
  ::java::rmi::server::Skeleton *skel;
  ::java::rmi::server::RemoteStub *stub;
  ::java::util::Hashtable *methods;
public:

  static ::java::lang::Class class$;
};

#endif /* __gnu_java_rmi_server_UnicastServerRef__ */
