パッケージ jcifs.netbios
クラス NameServiceClientImpl
- java.lang.Object
-
- jcifs.netbios.NameServiceClientImpl
-
- すべての実装されたインタフェース:
Runnable,NameServiceClient
public class NameServiceClientImpl extends Object implements Runnable, NameServiceClient
- 作成者:
- mbechler
-
-
コンストラクタの概要
コンストラクタ コンストラクタ 説明 NameServiceClientImpl(CIFSContext tc)
-
メソッドの概要
すべてのメソッド インスタンス・メソッド concreteメソッド 修飾子とタイプ メソッド 説明 UniAddress[]getAllByName(String hostname, boolean possibleNTDomainOrWorkgroup)Lookup addresses for the given hostname.UniAddressgetByName(String hostname)Determines the address of a host given it's host name.UniAddressgetByName(String hostname, boolean possibleNTDomainOrWorkgroup)Lookup hostname and return it's UniAddress.LmhostsgetLmhosts()NbtAddressgetLocalHost()NamegetLocalName()NbtAddress[]getNbtAllByAddress(String host)Retrieve all addresses of a host by it's address.NbtAddress[]getNbtAllByAddress(String host, int type, String scope)Retrieve all addresses of a host by it's address.NbtAddress[]getNbtAllByAddress(NetbiosAddress addr)Retrieve all addresses of a host by it's address.NbtAddress[]getNbtAllByName(String host, int type, String scope, InetAddress svr)Retrieve all addresses of a host by it's name.NbtAddressgetNbtByName(String host)Determines the address of a host given it's host name.NbtAddressgetNbtByName(String host, int type, String scope)Determines the address of a host given it's host name.NbtAddressgetNbtByName(String host, int type, String scope, InetAddress svr)Determines the address of a host given it's host name.NbtAddress[]getNodeStatus(NetbiosAddress addr)NamegetUnknownName()protected InetAddressgetWINSAddress()protected booleanisWINS(InetAddress svr)voidrun()protected InetAddressswitchWINS()
-
-
-
コンストラクタの詳細
-
NameServiceClientImpl
public NameServiceClientImpl(CIFSContext tc)
- パラメータ:
tc-
-
-
メソッドの詳細
-
getNodeStatus
public NbtAddress[] getNodeStatus(NetbiosAddress addr) throws UnknownHostException
- 定義:
getNodeStatusインタフェース内NameServiceClient- 戻り値:
- the node status responses
- 例外:
UnknownHostException
-
getNbtByName
public NbtAddress getNbtByName(String host) throws UnknownHostException
インタフェースからコピーされた説明:NameServiceClientDetermines the address of a host given it's host name. The name can be a NetBIOS name like "freto" or an IP address like "192.168.1.15". It cannot be a DNS name; the analygousUniAddressorInetAddressgetByNamemethods can be used for that.- 定義:
getNbtByNameインタフェース内NameServiceClient- パラメータ:
host- hostname to resolve- 戻り値:
- the resolved address
- 例外:
UnknownHostException- if there is an error resolving the name
-
getNbtByName
public NbtAddress getNbtByName(String host, int type, String scope) throws UnknownHostException
インタフェースからコピーされた説明:NameServiceClientDetermines the address of a host given it's host name. NetBIOS names also have atype. Types(aka Hex Codes) are used to distinguish the various services on a host. Here is a fairly complete list of NetBIOS hex codes. Scope is not used but is still functional in other NetBIOS products and so for completeness it has been implemented. Ascopeofnullor""signifies no scope.- 定義:
getNbtByNameインタフェース内NameServiceClient- パラメータ:
host- the name to resolvetype- the hex code of the namescope- the scope of the name- 戻り値:
- the resolved address
- 例外:
UnknownHostException- if there is an error resolving the name
-
getNbtByName
public NbtAddress getNbtByName(String host, int type, String scope, InetAddress svr) throws UnknownHostException
インタフェースからコピーされた説明:NameServiceClientDetermines the address of a host given it's host name. NetBIOS names also have atype. Types(aka Hex Codes) are used to distinguish the various services on a host. Here is a fairly complete list of NetBIOS hex codes. Scope is not used but is still functional in other NetBIOS products and so for completeness it has been implemented. Ascopeofnullor""signifies no scope. The additionalsvrparameter specifies the address to query. This might be the address of a specific host, a name server, or a broadcast address.- 定義:
getNbtByNameインタフェース内NameServiceClient- パラメータ:
host- the name to resolvetype- the hex code of the namescope- the scope of the namesvr- server to query- 戻り値:
- the resolved address
- 例外:
UnknownHostException- if there is an error resolving the name
-
getNbtAllByName
public NbtAddress[] getNbtAllByName(String host, int type, String scope, InetAddress svr) throws UnknownHostException
インタフェースからコピーされた説明:NameServiceClientRetrieve all addresses of a host by it's name.- 定義:
getNbtAllByNameインタフェース内NameServiceClient- パラメータ:
host- hostname to lookup all addresses fortype- the hexcode of the namescope- the scope of the namesvr- server to query- 戻り値:
- the resolved addresses
- 例外:
UnknownHostException
-
getNbtAllByAddress
public NbtAddress[] getNbtAllByAddress(String host) throws UnknownHostException
インタフェースからコピーされた説明:NameServiceClientRetrieve all addresses of a host by it's address. NetBIOS hosts can have many names for a given IP address. The name and IP address make the NetBIOS address. This provides a way to retrieve the other names for a host with the same IP address.- 定義:
getNbtAllByAddressインタフェース内NameServiceClient- パラメータ:
host- hostname to lookup all addresses for- 戻り値:
- resolved addresses
- 例外:
UnknownHostException- if there is an error resolving the name
-
getNbtAllByAddress
public NbtAddress[] getNbtAllByAddress(String host, int type, String scope) throws UnknownHostException
インタフェースからコピーされた説明:NameServiceClientRetrieve all addresses of a host by it's address. NetBIOS hosts can have many names for a given IP address. The name and IP address make the NetBIOS address. This provides a way to retrieve the other names for a host with the same IP address. SeeNameServiceClient.getByName(java.lang.String, boolean)for a description oftypeandscope.- 定義:
getNbtAllByAddressインタフェース内NameServiceClient- パラメータ:
host- hostname to lookup all addresses fortype- the hexcode of the namescope- the scope of the name- 戻り値:
- resolved addresses
- 例外:
UnknownHostException- if there is an error resolving the name
-
getNbtAllByAddress
public NbtAddress[] getNbtAllByAddress(NetbiosAddress addr) throws UnknownHostException
インタフェースからコピーされた説明:NameServiceClientRetrieve all addresses of a host by it's address. NetBIOS hosts can have many names for a given IP address. The name and IP address make the NetBIOS address. This provides a way to retrieve the other names for a host with the same IP address.- 定義:
getNbtAllByAddressインタフェース内NameServiceClient- パラメータ:
addr- the address to query- 戻り値:
- resolved addresses
- 例外:
UnknownHostException- if address cannot be resolved
-
getWINSAddress
protected InetAddress getWINSAddress()
- パラメータ:
tc-- 戻り値:
- address of active WINS server
-
isWINS
protected boolean isWINS(InetAddress svr)
- パラメータ:
svr-- 戻り値:
- whether the given address is a WINS server
-
switchWINS
protected InetAddress switchWINS()
-
getByName
public UniAddress getByName(String hostname) throws UnknownHostException
インタフェースからコピーされた説明:NameServiceClientDetermines the address of a host given it's host name. The name can be a machine name like "jcifs.samba.org", or an IP address like "192.168.1.15".- 定義:
getByNameインタフェース内NameServiceClient- パラメータ:
hostname- NetBIOS or DNS hostname to resolve- 戻り値:
- the found address
- 例外:
UnknownHostException- if there is an error resolving the name
-
getByName
public UniAddress getByName(String hostname, boolean possibleNTDomainOrWorkgroup) throws UnknownHostException
インタフェースからコピーされた説明:NameServiceClientLookup hostname and return it's UniAddress. If the possibleNTDomainOrWorkgroup parameter is true an additional name query will be performed to locate a master browser.- 定義:
getByNameインタフェース内NameServiceClient- 戻り値:
- the first resolved address
- 例外:
UnknownHostException
-
getAllByName
public UniAddress[] getAllByName(String hostname, boolean possibleNTDomainOrWorkgroup) throws UnknownHostException
インタフェースからコピーされた説明:NameServiceClientLookup addresses for the given hostname.- 定義:
getAllByNameインタフェース内NameServiceClient- 戻り値:
- found addresses
- 例外:
UnknownHostException
-
getLocalHost
public NbtAddress getLocalHost()
- 定義:
getLocalHostインタフェース内NameServiceClient- 戻り値:
- local host address
- 関連項目:
NameServiceClient.getLocalHost()
-
getLocalName
public Name getLocalName()
- 定義:
getLocalNameインタフェース内NameServiceClient- 戻り値:
- the local host name
- 関連項目:
NameServiceClient.getLocalName()
-
getLmhosts
public Lmhosts getLmhosts()
- 戻り値:
- lmhosts file used
-
getUnknownName
public Name getUnknownName()
- 定義:
getUnknownNameインタフェース内NameServiceClient- 戻り値:
- the unknown name
- 関連項目:
NameServiceClient.getUnknownName()
-
-