public class RCInterfaceManager extends Object implements ResourceServer
RCInterface
will only return new instances of that class under the following conditions:
| Modifier and Type | Method and Description |
|---|---|
void |
addResourceStatusEventListener(ResourceStatusListener listener)
This method informs a resource server that a particular object should be
informed of changes in the state of the resources managed by that server.
|
static RCInterfaceManager |
getInstance()
Factory method to obtain a manager.
|
RCInterface |
getInterface(InetAddress addr)
Return the interface which will be used when connecting to a particular host.
|
RCInterface |
getInterface(Socket s)
Return the interface which is used for a particular socket.
|
RCInterface |
getInterface(URLConnection u)
Return the interface which is used for a particular URLConnection
|
RCInterface[] |
getInterfaces()
Factory method to return a list of all return channel interfaces
visible to this application.
|
void |
removeResourceStatusEventListener(ResourceStatusListener listener)
This method informs a resource server that a particular object is no
longer interested in being informed about changes in state of resources
managed by that server.
|
public static RCInterfaceManager getInstance()
public RCInterface[] getInterfaces()
public RCInterface getInterface(InetAddress addr)
addr - the IP address of the host to connect topublic RCInterface getInterface(Socket s)
s - the socket to usepublic RCInterface getInterface(URLConnection u)
u - the URLConnection to usepublic void addResourceStatusEventListener(ResourceStatusListener listener)
addResourceStatusEventListener in interface ResourceServerlistener - the object to be informed of state changespublic void removeResourceStatusEventListener(ResourceStatusListener listener)
removeResourceStatusEventListener in interface ResourceServerlistener - the object which is no longer interestedCopyright © 2012 code4tv.com. All Rights Reserved.