gnu.rfb.server
Class RFBHost

java.lang.Object
  extended by gnu.rfb.server.RFBHost
All Implemented Interfaces:
java.lang.Runnable

public class RFBHost
extends java.lang.Object
implements java.lang.Runnable

A thread to host the RFB server.


Constructor Summary
RFBHost(int port, java.lang.String displayName, java.lang.Class rfbServerClass, RFBAuthenticator authenticator)
           
 
Method Summary
 void close()
          Closes the server thread.
 java.lang.String getDisplayName()
           
 RFBServer getSharedServer()
           
 void run()
           
 void setSharedServer(RFBServer sharedServer)
          Sets the shared server.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RFBHost

public RFBHost(int port,
               java.lang.String displayName,
               java.lang.Class rfbServerClass,
               RFBAuthenticator authenticator)
        throws java.lang.NoSuchMethodException
Throws:
java.lang.NoSuchMethodException
Method Detail

setSharedServer

public void setSharedServer(RFBServer sharedServer)
Sets the shared server.

Parameters:
sharedServer - The new server to use.

getSharedServer

public RFBServer getSharedServer()
Returns:
The shared server.

run

public void run()
Specified by:
run in interface java.lang.Runnable

close

public void close()
Closes the server thread.


getDisplayName

public java.lang.String getDisplayName()
Returns:
The name of the display of the server.