SRJRCFrames
v0.1.296

de.schwarzrot.app.net
Class TCPClient

java.lang.Object
  extended by de.schwarzrot.app.net.TCPClient
All Implemented Interfaces:
Client

public class TCPClient
extends Object
implements Client


Field Summary
static String ENDSIG
           
static String EOL
           
 
Constructor Summary
TCPClient(String host, int port)
           
TCPClient(String host, int port, Charset cs)
           
 
Method Summary
protected  org.apache.commons.logging.Log getLogger()
           
 int getNLSize()
           
 Charset getServerCharset()
           
 String getServerHostname()
           
 int getServerPort()
           
protected  Socket getServerResponse(String command, Object requestArg)
           
 boolean isServerReachable()
           
 void requestResponse(ResponseHandler handler)
           
 void setServerCharset(Charset serverCharset)
           
 void setServerHostname(String serverHostname)
           
 void setServerPort(int serverPort)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ENDSIG

public static final String ENDSIG
See Also:
Constant Field Values

EOL

public static final String EOL
See Also:
Constant Field Values
Constructor Detail

TCPClient

public TCPClient(String host,
                 int port)

TCPClient

public TCPClient(String host,
                 int port,
                 Charset cs)
Method Detail

getNLSize

public final int getNLSize()
Specified by:
getNLSize in interface Client

getServerCharset

public final Charset getServerCharset()

getServerHostname

public final String getServerHostname()

getServerPort

public final int getServerPort()

isServerReachable

public boolean isServerReachable()
Specified by:
isServerReachable in interface Client

requestResponse

public final void requestResponse(ResponseHandler handler)
Specified by:
requestResponse in interface Client

setServerCharset

public final void setServerCharset(Charset serverCharset)

setServerHostname

public final void setServerHostname(String serverHostname)

setServerPort

public final void setServerPort(int serverPort)

getLogger

protected final org.apache.commons.logging.Log getLogger()

getServerResponse

protected Socket getServerResponse(String command,
                                   Object requestArg)

SRJRCFrames
v0.1.296

hosted at
Find SRJRCFrames at SourceForge.net. Fast, secure and free:
           Open Source Software download
Submit a bug or request a feature

SRJRCFrames is published according to the GNU General Public License
Copyright 2005-2012 Reinhard Mantey - some rights reserved.