public class HttpDetector extends AsyncBasicDetectorMinaImpl<LineOrientedRequest,HttpStatusResponse>
HttpDetector class.
Constructor and Description |
---|
HttpDetector()
Default constructor
|
HttpDetector(String serviceName,
int port)
Constructor for creating a non-default service based on this protocol
|
Modifier and Type | Method and Description |
---|---|
protected static ResponseValidator<HttpStatusResponse> |
contains(String pattern,
String url,
boolean isCheckCode,
int maxRetCode)
contains
|
int |
getMaxRetCode()
getMaxRetCode
|
String |
getUrl()
getUrl
|
protected String |
httpCommand(String command)
httpCommand
|
boolean |
isCheckRetCode()
isCheckRetCode
|
protected void |
onInit()
onInit
|
protected static LineOrientedRequest |
request(String command)
request
|
void |
setCheckRetCode(boolean checkRetCode)
setCheckRetCode
|
void |
setMaxRetCode(int maxRetCode)
setMaxRetCode
|
void |
setUrl(String url)
setUrl
|
createDetectorHandler, dispose, getDetectorHandler, getLoggingFilter, getProtocolCodecFilter, isServiceDetected, setDetectorHandler, setLoggingFilter, setProtocolCodecFilter
expectBanner, find, getConversation, getIdleTime, isUseSSLFilter, send, setIdleTime, setUseSSLFilter, startsWith
detect
getIpMatch, getPort, getRetries, getServiceName, getTimeout, init, setIpMatch, setPort, setRetries, setServiceName, setTimeout
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getIpMatch, getPort, getServiceName, getTimeout, init, setIpMatch, setPort, setServiceName, setTimeout
protected void onInit()
onInit
onInit
in class AbstractDetector
protected static LineOrientedRequest request(String command)
request
command
- a String
object.LineOrientedRequest
object.protected static ResponseValidator<HttpStatusResponse> contains(String pattern, String url, boolean isCheckCode, int maxRetCode)
contains
public void setMaxRetCode(int maxRetCode)
setMaxRetCode
maxRetCode
- a int.public int getMaxRetCode()
getMaxRetCode
public void setCheckRetCode(boolean checkRetCode)
setCheckRetCode
checkRetCode
- a boolean.public boolean isCheckRetCode()
isCheckRetCode
Copyright © 2020. All rights reserved.