Class Web
java.lang.Object
de.s42.base.web.Web
- Author:
- Benjamin Schiller
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidprotected WebResultgetRepsonse(HttpURLConnection conn) getUrl()perform()protected WebResultpost()protected WebResultpostJSON()protected WebResultprotected WebResultread()voidremoveHeader(String key) voidremoveParameter(String key) voidvoidvoidsetParameter(String key, Object value) voidsetPostType(WebPostType postType) voidtoString()
-
Field Details
-
method
-
postType
-
url
-
parameters
-
headers
-
-
Constructor Details
-
Web
public Web() -
Web
- Throws:
MalformedURLException
-
Web
-
Web
- Throws:
MalformedURLException
-
Web
-
-
Method Details
-
activateGlobalCookieManager
public static void activateGlobalCookieManager() -
deactivateGlobalCookieManager
public static void deactivateGlobalCookieManager() -
post
- Throws:
ProtocolExceptionIOException
-
postJSON
- Throws:
ProtocolExceptionIOException
-
postMultiPart
- Throws:
ProtocolExceptionIOException
-
read
- Throws:
ProtocolExceptionIOException
-
getRepsonse
- Throws:
IOException
-
perform
- Throws:
IOException
-
setParameter
-
removeParameter
-
setHeader
-
removeHeader
-
getUrl
-
setUrl
-
getMethod
-
setMethod
-
getPostType
-
setPostType
-
toString
-
getParameters
-
getHeaders
-