Class SmbClient
- java.lang.Object
-
- org.opennms.netmgt.provision.detector.smb.client.SmbClient
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,Client<LineOrientedRequest,NbtAddressResponse>
public class SmbClient extends java.lang.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(java.net.InetAddress address, int port, int timeout)
connectNbtAddressResponse
receiveBanner()
receiveBannerNbtAddressResponse
sendRequest(LineOrientedRequest request)
sendRequest
-
-
-
Method Detail
-
close
public void close()
close
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfaceClient<LineOrientedRequest,NbtAddressResponse>
- Specified by:
close
in interfacejava.io.Closeable
-
connect
public void connect(java.net.InetAddress address, int port, int timeout) throws java.io.IOException, java.lang.Exception
connect
- Specified by:
connect
in interfaceClient<LineOrientedRequest,NbtAddressResponse>
- Parameters:
address
- aInetAddress
object.port
- a int.timeout
- a int.- Throws:
java.io.IOException
- if any.java.lang.Exception
- if any.
-
receiveBanner
public NbtAddressResponse receiveBanner() throws java.io.IOException
receiveBanner
- Specified by:
receiveBanner
in interfaceClient<LineOrientedRequest,NbtAddressResponse>
- Returns:
- a
NbtAddressResponse
object. - Throws:
java.io.IOException
- if any.
-
sendRequest
public NbtAddressResponse sendRequest(LineOrientedRequest request) throws java.io.IOException, java.lang.Exception
sendRequest
- Specified by:
sendRequest
in interfaceClient<LineOrientedRequest,NbtAddressResponse>
- Parameters:
request
- aLineOrientedRequest
object.- Returns:
- a
NbtAddressResponse
object. - Throws:
java.io.IOException
- if any.java.lang.Exception
- if any.
-
-