Package x.data.skydb
Class SkyDBWebServiceManager
java.lang.Object
x.data.skydb.SkyDBWebServiceManager
Used at Swing, JSF or other client for call SkyLogicSystem's service.
In JSF or other web framework should keep this class in session for keep
connection session.
- Author:
- Sakdsitt Likhitmetagool
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor part.SkyDBWebServiceManager(String site, int port, String protocol) -
Method Summary
Modifier and TypeMethodDescriptionCall SkyLogicSystem's service session by use GET method.fileUpload(String url, okhttp3.MultipartReader.Part[] partValuePair) Call SkyLogicSystem's service session by use File Upload method.org.apache.http.HttpHostxxxx.xxxx.httpDeleteMethod(String url) Call SkyLogicSystem's service session by use DELETE method.httpGetMethod(String url) Call SkyLogicSystem's service session by use GET method.httpPostMethod(String url, String str_input) Call SkyLogicSystem's service session by use POST method.httpPostMethod(String url, String str_input1, String str_input2) Call SkyLogicSystem's service session by use POST method.httpPostMethod(String url, String str_input1, String str_input2, String str_input3) Call SkyLogicSystem's service session by use POST method.httpPostMethod(String url, org.apache.http.NameValuePair[] valuePair) Call SkyLogicSystem's service session by use POST method.httpPostMethod2(String url, String str_input) Call SkyLogicSystem's service session by use POST method.httpPutMethod(String url, String xml) Call SkyLogicSystem's service session by use PUT method.voidInitial HTTP client session by set URL of SkyLogicSystem's host.voidinitClientServiceConnection(String host, int port, String scheme) booleanloginServerService(String url, String username, String password) Login SkyLogicSystem's service session.booleanLogout SkyLogicSystem's service session.voidsetHttpHostURL(String url) xxxx.voidsetServerHost(String host, int port, String scheme) Add URL SkyLogicSystem's host that need to get data from it.voidsetServerHost(String host, int port, String scheme, String basicAuthenKey) Add URL SkyLogicSystem's host that need to get data from it.voidsetServerHost(org.apache.http.HttpHost httpHostObj) xxxx.
-
Constructor Details
-
SkyDBWebServiceManager
public SkyDBWebServiceManager()Constructor part. -
SkyDBWebServiceManager
-
-
Method Details
-
initClientServiceConnection
public void initClientServiceConnection()Initial HTTP client session by set URL of SkyLogicSystem's host. -
initClientServiceConnection
-
setServerHost
Add URL SkyLogicSystem's host that need to get data from it. -
setServerHost
Add URL SkyLogicSystem's host that need to get data from it. -
setServerHost
public void setServerHost(org.apache.http.HttpHost httpHostObj) xxxx. -
getHttpHost
public org.apache.http.HttpHost getHttpHost()xxxx. -
setHttpHostURL
xxxx. -
getURL
xxxx. -
loginServerService
Login SkyLogicSystem's service session.- Throws:
Exception
-
logoutServerService
Logout SkyLogicSystem's service session.- Throws:
Exception
-
executeServerService
Call SkyLogicSystem's service session by use GET method.- Throws:
Exception
-
httpGetMethod
Call SkyLogicSystem's service session by use GET method.- Throws:
IOException
-
httpPostMethod
Call SkyLogicSystem's service session by use POST method. The Input type is String.- Throws:
IOException
-
httpPostMethod
Call SkyLogicSystem's service session by use POST method. The Input type is String.- Throws:
IOException
-
httpPostMethod
public String httpPostMethod(String url, String str_input1, String str_input2, String str_input3) throws IOException Call SkyLogicSystem's service session by use POST method. The Input type is String.- Throws:
IOException
-
httpPostMethod2
Call SkyLogicSystem's service session by use POST method. The Input type is String.- Throws:
IOException
-
httpPostMethod
public String httpPostMethod(String url, org.apache.http.NameValuePair[] valuePair) throws IOException Call SkyLogicSystem's service session by use POST method. The input is values map.- Throws:
IOException
-
fileUpload
public String fileUpload(String url, okhttp3.MultipartReader.Part[] partValuePair) throws IOException Call SkyLogicSystem's service session by use File Upload method.- Throws:
IOException
-
httpPutMethod
Call SkyLogicSystem's service session by use PUT method.- Throws:
IOException
-
httpDeleteMethod
Call SkyLogicSystem's service session by use DELETE method.- Throws:
IOException
-