Class BSFClient
- java.lang.Object
-
- org.opennms.netmgt.provision.detector.bsf.client.BSFClient
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Client<BSFRequest,BSFResponse>
public class BSFClient extends Object implements Client<BSFRequest,BSFResponse>
BSFClient class.
- Version:
- $Id: $
- Author:
- Alejandro Galue
-
-
Constructor Summary
Constructors Constructor Description BSFClient()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
closevoid
connect(InetAddress address, int port, int timeout)
connectString
getBsfEngine()
String[]
getFileExtensions()
String
getFileName()
String
getLangClass()
String
getRunType()
String
getServiceName()
BSFResponse
receiveBanner()
receiveBannerBSFResponse
sendRequest(BSFRequest request)
sendRequestvoid
setBsfEngine(String bsfEngine)
void
setFileExtensions(String[] fileExtensions)
void
setFileName(String fileName)
void
setLangClass(String langClass)
void
setRunType(String runType)
void
setServiceName(String serviceName)
-
-
-
Method Detail
-
close
public void close()
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceClient<BSFRequest,BSFResponse>
- Specified by:
close
in interfaceCloseable
-
connect
public void connect(InetAddress address, int port, int timeout) throws IOException, Exception
connect
- Specified by:
connect
in interfaceClient<BSFRequest,BSFResponse>
- Parameters:
address
- aInetAddress
object.port
- a int.timeout
- a int.- Throws:
IOException
- if any.Exception
- if any.
-
receiveBanner
public BSFResponse receiveBanner() throws IOException, Exception
receiveBanner
- Specified by:
receiveBanner
in interfaceClient<BSFRequest,BSFResponse>
- Returns:
- a
BSFResponse
object. - Throws:
IOException
- if any.Exception
- if any.
-
sendRequest
public BSFResponse sendRequest(BSFRequest request) throws IOException, Exception
sendRequest
- Specified by:
sendRequest
in interfaceClient<BSFRequest,BSFResponse>
- Parameters:
request
- aBSFRequest
object.- Returns:
- a
BSFResponse
object. - Throws:
IOException
- if any.Exception
- if any.
-
getServiceName
public String getServiceName()
-
setServiceName
public void setServiceName(String serviceName)
-
getFileName
public String getFileName()
-
setFileName
public void setFileName(String fileName)
-
getLangClass
public String getLangClass()
-
setLangClass
public void setLangClass(String langClass)
-
getBsfEngine
public String getBsfEngine()
-
setBsfEngine
public void setBsfEngine(String bsfEngine)
-
getFileExtensions
public String[] getFileExtensions()
-
setFileExtensions
public void setFileExtensions(String[] fileExtensions)
-
getRunType
public String getRunType()
-
setRunType
public void setRunType(String runType)
-
-