- java.lang.Object
-
- ch.qos.logback.core.joran.spi.HttpUtil
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHttpUtil.RequestMethod
-
Constructor Summary
Constructors Constructor Description HttpUtil(HttpUtil.RequestMethod requestMethod, String urlStr)HttpUtil(HttpUtil.RequestMethod requestMethod, URL url)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpURLConnectionconnectTextPlain()HttpURLConnectionconnectTextTxt()HttpURLConnectionconnectType(String acceptType)booleanpost(HttpURLConnection conn, String str)StringreadResponse(HttpURLConnection conn)
-
-
-
Constructor Detail
-
HttpUtil
public HttpUtil(HttpUtil.RequestMethod requestMethod, URL url)
-
HttpUtil
public HttpUtil(HttpUtil.RequestMethod requestMethod, String urlStr) throws MalformedURLException
- Throws:
MalformedURLException
-
-
Method Detail
-
connectTextTxt
public HttpURLConnection connectTextTxt()
-
connectTextPlain
public HttpURLConnection connectTextPlain()
-
connectType
public HttpURLConnection connectType(String acceptType)
-
readResponse
public String readResponse(HttpURLConnection conn)
-
post
public boolean post(HttpURLConnection conn, String str)
-
-