Package org.dromara.oa.core.support
Class AbstractHttpClient
- java.lang.Object
-
- org.dromara.oa.core.support.AbstractHttpClient
-
- All Implemented Interfaces:
MsgHttpClient
- Direct Known Subclasses:
HttpClientImpl
public abstract class AbstractHttpClient extends Object implements MsgHttpClient
-
-
Constructor Summary
Constructors Constructor Description AbstractHttpClient()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringget(String url)Stringget(String url, Map<String,String> headers)Stringpost(String url)Stringpost(String url, Map<String,String> headers)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.dromara.oa.core.support.MsgHttpClient
post
-
-
-
-
Method Detail
-
get
public String get(String url)
- Specified by:
getin interfaceMsgHttpClient
-
get
public String get(String url, Map<String,String> headers)
- Specified by:
getin interfaceMsgHttpClient
-
post
public String post(String url)
- Specified by:
postin interfaceMsgHttpClient
-
-