org.opennms.netmgt.provision.detector.generic.client
Class GpClient

java.lang.Object
  extended by org.opennms.netmgt.provision.detector.generic.client.GpClient
All Implemented Interfaces:
Client<GpRequest,GpResponse>

public class GpClient
extends Object
implements Client<GpRequest,GpResponse>


Constructor Summary
GpClient()
           
 
Method Summary
 void close()
           
 void connect(InetAddress address, int port, int timeout)
           
 String getArgs()
           
 String getBanner()
           
 String getError()
           
 int getExitStatus()
           
 String getHoption()
           
 String getMatch()
           
 String getResponse()
           
 String getScript()
           
 String getToption()
           
 GpResponse receiveBanner()
           
 GpResponse sendRequest(GpRequest request)
           
 void setArgs(String args)
           
 void setBanner(String banner)
           
 void setError(String error)
           
 void setExitStatus(int exitStatus)
           
 void setHoption(String hoption)
           
 void setMatch(String match)
           
 void setResponse(String response)
           
 void setScript(String script)
           
 void setToption(String toption)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GpClient

public GpClient()
Method Detail

close

public void close()
Specified by:
close in interface Client<GpRequest,GpResponse>

connect

public void connect(InetAddress address,
                    int port,
                    int timeout)
             throws IOException,
                    Exception
Specified by:
connect in interface Client<GpRequest,GpResponse>
Throws:
IOException
Exception

receiveBanner

public GpResponse receiveBanner()
                         throws IOException,
                                Exception
Specified by:
receiveBanner in interface Client<GpRequest,GpResponse>
Throws:
IOException
Exception

sendRequest

public GpResponse sendRequest(GpRequest request)
                       throws IOException,
                              Exception
Specified by:
sendRequest in interface Client<GpRequest,GpResponse>
Throws:
IOException
Exception

setScript

public void setScript(String script)

getScript

public String getScript()

setArgs

public void setArgs(String args)

getArgs

public String getArgs()

setBanner

public void setBanner(String banner)

getBanner

public String getBanner()

setMatch

public void setMatch(String match)

getMatch

public String getMatch()

setHoption

public void setHoption(String hoption)

getHoption

public String getHoption()

setToption

public void setToption(String toption)

getToption

public String getToption()

setExitStatus

public void setExitStatus(int exitStatus)

getExitStatus

public int getExitStatus()

setResponse

public void setResponse(String response)

getResponse

public String getResponse()

setError

public void setError(String error)

getError

public String getError()


Copyright © 2009. All Rights Reserved.