Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.1.3)

Part Number E41849-02

weblogic.rmi.spi
Interface Channel

All Known Subinterfaces:
ServerChannel

public interface Channel

Channel is used by the RMI runtime to represent the addressing information required to reach a process that hosts a remote object. This is distinct from HostID which represents remote identity for comparison purposes.


Method Summary
 InetAddress getInetAddress()
          Returns the InetAddress of the host.
 String getProtocolPrefix()
          Returns the protocol as a string that corresponds to this Channel.
 String getPublicAddress()
          Returns the public address or the DNS name of this Channel.
 InetSocketAddress getPublicInetAddress()
          Returns the InetSocketAddress of the remote host.
 int getPublicPort()
          Get the public port for this Channel.
 boolean supportsTLS()
          Returns whether this channel supports Transport Layer Security.
 

Method Detail

getInetAddress

InetAddress getInetAddress()
Returns the InetAddress of the host.


getPublicInetAddress

InetSocketAddress getPublicInetAddress()
Returns the InetSocketAddress of the remote host. This includes all of thre required connection information, including host, port and ip-address. This is the preferred way of getting at this information. Remote Channels are always accessed using their public characteristics, hence the name.

Returns:
IP address, DNS name and port of this Channel.
See Also:
Channel.getPublicInetAddress()

getProtocolPrefix

String getProtocolPrefix()
Returns the protocol as a string that corresponds to this Channel. This is more precisely the information required by callers than getURL().


supportsTLS

boolean supportsTLS()
Returns whether this channel supports Transport Layer Security.


getPublicAddress

String getPublicAddress()
Returns the public address or the DNS name of this Channel.

Returns:
IP address or the DNS name of this Channel.
See Also:
ServerChannel.getPublicAddress()

getPublicPort

int getPublicPort()
Get the public port for this Channel.

Returns:
The port of this Channel.
See Also:
ServerChannel.getPublicPort()

Copyright 1996, 2014, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.1.3)

Part Number E41849-02