com.jdon.bussinessproxy.remote.http
Class HttpConnectionHelper

java.lang.Object
  extended by com.jdon.bussinessproxy.remote.http.HttpConnectionHelper

public class HttpConnectionHelper
extends java.lang.Object


Field Summary
static java.lang.String module
           
 
Constructor Summary
HttpConnectionHelper()
           
 
Method Summary
 java.net.HttpURLConnection connectLogin(HttpServerParam httpServerParam, java.lang.String UserPassword)
          连接Http Server? 准备传?HttpServletRequest
 java.net.HttpURLConnection connectService(HttpServerParam httpServerParam, java.lang.String userPassword)
          连接Http Server? 准备传?serialized-object
 java.lang.Object getObjectResponse(java.net.HttpURLConnection httpURLConnection)
          从回复中获取Object
 java.lang.String getStringResponse(java.net.HttpURLConnection httpURLConnection)
           
 void sendDataRequest(java.net.HttpURLConnection httpURLConnection, java.util.Hashtable param)
          将字符串发往Http
 void sendObjectRequest(java.net.HttpURLConnection httpURLConnection, java.lang.Object request)
          将可序列化Object发往Http Server
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

module

public static final java.lang.String module
Constructor Detail

HttpConnectionHelper

public HttpConnectionHelper()
Method Detail

connectService

public java.net.HttpURLConnection connectService(HttpServerParam httpServerParam,
                                                 java.lang.String userPassword)
                                          throws java.lang.Exception
连接Http Server? 准备传?serialized-object

Parameters:
httpServerParam -
Returns:
Throws:
java.lang.Exception

connectLogin

public java.net.HttpURLConnection connectLogin(HttpServerParam httpServerParam,
                                               java.lang.String UserPassword)
                                        throws java.lang.Exception
连接Http Server? 准备传?HttpServletRequest

Parameters:
httpServerParam -
Returns:
Throws:
java.lang.Exception

sendObjectRequest

public void sendObjectRequest(java.net.HttpURLConnection httpURLConnection,
                              java.lang.Object request)
                       throws java.lang.Exception
将可序列化Object发往Http Server

Parameters:
httpURLConnection -
request -
Throws:
java.lang.Exception

sendDataRequest

public void sendDataRequest(java.net.HttpURLConnection httpURLConnection,
                            java.util.Hashtable param)
                     throws java.lang.Exception
将字符串发往Http

Parameters:
httpURLConnection -
sendText -
Throws:
java.lang.Exception

getObjectResponse

public java.lang.Object getObjectResponse(java.net.HttpURLConnection httpURLConnection)
                                   throws java.lang.Exception
从回复中获取Object

Parameters:
httpURLConnection -
Returns:
Throws:
java.lang.Exception

getStringResponse

public java.lang.String getStringResponse(java.net.HttpURLConnection httpURLConnection)
                                   throws java.lang.Exception
Throws:
java.lang.Exception