HttpRequest

open class HttpRequest

HttpConnect

Functions

Link copied to clipboard
open fun getBitmapFromURL(src: String): Bitmap
Link copied to clipboard
open fun getContentFromNode(item: Element, tagName: String): String
서버에서 전달받은 데이터를 분리하여 값을 리턴한다.
Link copied to clipboard
open fun getDownloadFromGetUrl(serverUrl: String): URLConnection
서버에서 연결하여 URLConnection로 반환한다.
Link copied to clipboard
open fun getDownloadFromPostUrl(serverUrl: String, contents: String, conTypeJason: Boolean): URLConnection
서버에서 연결하여 URLConnection로 반환한다.
Link copied to clipboard
open fun getHttp(url: String): HttpURLConnection
Get 방식으로 Http 통신을 처리한다.
Link copied to clipboard
open fun getHttps(url: String): HttpsURLConnection
Get 방식으로 Https 통신을 처리한다.
Link copied to clipboard
open fun getJsonArray(con: URLConnection): JSONArray
데이터를 Json 으로 반환한다.
Link copied to clipboard
open fun getJsonObject(con: URLConnection): JSONObject
데이터를 Json 으로 반환한다.
Link copied to clipboard
open fun getStringObject(con: URLConnection): Array<Byte>
데이터를 String 으로 반환한다.
Link copied to clipboard
open fun postHttp(url: String, contents: String, conTypeJason: Boolean): HttpURLConnection
Post 방식으로 Http 통신을 처리한다.
Link copied to clipboard
open fun postHttps(url: String, contents: String, conTypeJason: Boolean): HttpsURLConnection
Post 방식으로 Http 통신을 처리한다.