org.opennms.netmgt.provision.detector.bsf.client
Class BSFClient

java.lang.Object
  extended by org.opennms.netmgt.provision.detector.bsf.client.BSFClient
All Implemented Interfaces:
Client<BSFRequest,BSFResponse>

public class BSFClient
extends Object
implements Client<BSFRequest,BSFResponse>

BSFClient class.

Version:
$Id: $
Author:
Alejandro Galue

Constructor Summary
BSFClient()
           
 
Method Summary
 void close()
          close
 void connect(InetAddress address, int port, int timeout)
          connect
 String getBsfEngine()
           
 String[] getFileExtensions()
           
 String getFileName()
           
 String getLangClass()
           
 String getRunType()
           
 String getServiceName()
           
 BSFResponse receiveBanner()
          receiveBanner
 BSFResponse sendRequest(BSFRequest request)
          sendRequest
 void setBsfEngine(String bsfEngine)
           
 void setFileExtensions(String[] fileExtensions)
           
 void setFileName(String fileName)
           
 void setLangClass(String langClass)
           
 void setRunType(String runType)
           
 void setServiceName(String serviceName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BSFClient

public BSFClient()
Method Detail

close

public void close()

close

Specified by:
close in interface Client<BSFRequest,BSFResponse>

connect

public void connect(InetAddress address,
                    int port,
                    int timeout)
             throws IOException,
                    Exception

connect

Specified by:
connect in interface Client<BSFRequest,BSFResponse>
Parameters:
address - a InetAddress 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 interface Client<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 interface Client<BSFRequest,BSFResponse>
Parameters:
request - a BSFRequest 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)


Copyright © 2011. All Rights Reserved.