Class SmbClient
- java.lang.Object
-
- org.opennms.netmgt.provision.detector.smb.client.SmbClient
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Client<LineOrientedRequest,NbtAddressResponse>
public class SmbClient extends Object implements Client<LineOrientedRequest,NbtAddressResponse>
SmbClient class.
- Version:
- $Id: $
- Author:
- thedesloge
-
-
Constructor Summary
Constructors Constructor Description SmbClient()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
closevoid
connect(InetAddress address, int port, int timeout)
connectNbtAddressResponse
receiveBanner()
receiveBannerNbtAddressResponse
sendRequest(LineOrientedRequest request)
sendRequest
-
-
-
Method Detail
-
close
public void close()
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceClient<LineOrientedRequest,NbtAddressResponse>
- Specified by:
close
in interfaceCloseable
-
connect
public void connect(InetAddress address, int port, int timeout) throws IOException, Exception
connect
- Specified by:
connect
in interfaceClient<LineOrientedRequest,NbtAddressResponse>
- Parameters:
address
- aInetAddress
object.port
- a int.timeout
- a int.- Throws:
IOException
- if any.Exception
- if any.
-
receiveBanner
public NbtAddressResponse receiveBanner() throws IOException
receiveBanner
- Specified by:
receiveBanner
in interfaceClient<LineOrientedRequest,NbtAddressResponse>
- Returns:
- a
NbtAddressResponse
object. - Throws:
IOException
- if any.
-
sendRequest
public NbtAddressResponse sendRequest(LineOrientedRequest request) throws IOException, Exception
sendRequest
- Specified by:
sendRequest
in interfaceClient<LineOrientedRequest,NbtAddressResponse>
- Parameters:
request
- aLineOrientedRequest
object.- Returns:
- a
NbtAddressResponse
object. - Throws:
IOException
- if any.Exception
- if any.
-
-