Package jcifs
Interface Address
-
- All Known Subinterfaces:
NetbiosAddress
- All Known Implementing Classes:
NbtAddress,UniAddress
public interface AddressInterface for both netbios and internet addresses- Author:
- mbechler
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringfirstCalledName()Guess called name to try for session establishment.StringgetHostAddress()Return the IP address as text such as "192.168.1.15".StringgetHostName()StringnextCalledName(CIFSContext tc)Guess next called name to try for session establishment.InetAddresstoInetAddress()<T extends Address>
Tunwrap(Class<T> type)
-
-
-
Method Detail
-
unwrap
<T extends Address> T unwrap(Class<T> type)
- Parameters:
type-- Returns:
- instance for type, null if the type cannot be unwrapped
-
getHostName
String getHostName()
- Returns:
- the resolved host name, or the host address if it could not be resolved
-
getHostAddress
String getHostAddress()
Return the IP address as text such as "192.168.1.15".- Returns:
- the ip address
-
toInetAddress
InetAddress toInetAddress() throws UnknownHostException
- Returns:
- this address as an InetAddress
- Throws:
UnknownHostException
-
firstCalledName
String firstCalledName()
Guess called name to try for session establishment. These methods are used by the smb package.- Returns:
- guessed name
-
nextCalledName
String nextCalledName(CIFSContext tc)
Guess next called name to try for session establishment. These methods are used by the smb package.- Parameters:
tc-- Returns:
- guessed name
-
-