Class AbstractHealthChecker.Http
- java.lang.Object
-
- com.alibaba.nacos.api.naming.pojo.AbstractHealthChecker
-
- com.alibaba.nacos.api.naming.pojo.AbstractHealthChecker.Http
-
- All Implemented Interfaces:
Cloneable
- Enclosing class:
- AbstractHealthChecker
public static class AbstractHealthChecker.Http extends AbstractHealthChecker
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.alibaba.nacos.api.naming.pojo.AbstractHealthChecker
AbstractHealthChecker.Http, AbstractHealthChecker.Mysql, AbstractHealthChecker.None, AbstractHealthChecker.Tcp
-
-
Field Summary
Fields Modifier and Type Field Description static StringTYPE-
Fields inherited from class com.alibaba.nacos.api.naming.pojo.AbstractHealthChecker
type
-
-
Constructor Summary
Constructors Constructor Description Http()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AbstractHealthChecker.Httpclone()Clone all fields of this instance to another onebooleanequals(Object obj)Map<String,String>getCustomHeaders()intgetExpectedResponseCode()StringgetHeaders()StringgetPath()inthashCode()voidsetExpectedResponseCode(int expectedResponseCode)voidsetHeaders(String headers)voidsetPath(String path)-
Methods inherited from class com.alibaba.nacos.api.naming.pojo.AbstractHealthChecker
getType, setType
-
-
-
-
Field Detail
-
TYPE
public static final String TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getExpectedResponseCode
public int getExpectedResponseCode()
-
setExpectedResponseCode
public void setExpectedResponseCode(int expectedResponseCode)
-
getPath
public String getPath()
-
setPath
public void setPath(String path)
-
getHeaders
public String getHeaders()
-
setHeaders
public void setHeaders(String headers)
-
clone
public AbstractHealthChecker.Http clone() throws CloneNotSupportedException
Description copied from class:AbstractHealthCheckerClone all fields of this instance to another one- Specified by:
clonein classAbstractHealthChecker- Returns:
- Another instance with exactly the same fields.
- Throws:
CloneNotSupportedException
-
-