@InterfaceAudience.Public public class FourLetterWordMain extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
LOG |
| Constructor and Description |
|---|
FourLetterWordMain() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args) |
static String |
send4LetterWord(String host,
int port,
String cmd)
Send the 4letterword
|
static String |
send4LetterWord(String host,
int port,
String cmd,
boolean secure)
Send the 4letterword
|
static String |
send4LetterWord(String host,
int port,
String cmd,
boolean secure,
int timeout)
Send the 4letterword
|
public static String send4LetterWord(String host, int port, String cmd) throws IOException, X509Exception.SSLContextException
host - the destination hostport - the destination portcmd - the 4letterwordIOExceptionX509Exception.SSLContextExceptionpublic static String send4LetterWord(String host, int port, String cmd, boolean secure) throws IOException, X509Exception.SSLContextException
host - the destination hostport - the destination portcmd - the 4letterwordsecure - whether to use SSLIOExceptionX509Exception.SSLContextExceptionpublic static String send4LetterWord(String host, int port, String cmd, boolean secure, int timeout) throws IOException, X509Exception.SSLContextException
host - the destination hostport - the destination portcmd - the 4letterwordsecure - whether to use SSLtimeout - in milliseconds, maximum time to wait while connecting/reading dataIOExceptionX509Exception.SSLContextExceptionpublic static void main(String[] args) throws IOException, X509Exception.SSLContextException
Copyright © 2008–2021 The Apache Software Foundation. All rights reserved.