锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲av乱码一区二区三区香蕉,亚洲六月丁香六月婷婷色伊人,亚洲成人免费电影http://m.tkk7.com/dongbule/category/47427.html寤洪犻珮鎬ц兘闂ㄦ埛緗?/description>zh-cnTue, 21 Dec 2010 20:41:31 GMTTue, 21 Dec 2010 20:41:31 GMT60鍒跺畾hessian鏈嶅姟绔殑璁塊棶鍒楄〃http://m.tkk7.com/dongbule/archive/2010/12/21/341246.html闄堜簬鍠?/dc:creator>闄堜簬鍠?/author>Tue, 21 Dec 2010 08:05:00 GMThttp://m.tkk7.com/dongbule/archive/2010/12/21/341246.htmlhttp://m.tkk7.com/dongbule/comments/341246.htmlhttp://m.tkk7.com/dongbule/archive/2010/12/21/341246.html#Feedback0http://m.tkk7.com/dongbule/comments/commentRss/341246.htmlhttp://m.tkk7.com/dongbule/services/trackbacks/341246.html
瀵筼rg.springframework.remoting.caucho.HessianServiceExporter榪涜閲嶅啓

/**
 * 閲嶅啓HessianServiceExporter.handleRequest(),鎷︽埅鑾峰彇榪滅璋冪敤淇℃伅
 * 
@author chenyz
 *
 
*/
public class HouseHessianServiceExporter extends HessianServiceExporter {
    
    
private static String[] entryIP = {"192.168.0.1","192.168.0.3","192.168.0.3"};
    
    
private static Log log = LogFactory.getLog("Myremote"); 
    
    @Override
    
public void handleRequest(HttpServletRequest request,
            HttpServletResponse response) 
throws ServletException, IOException {        
        log.info(
"try ==>remote 's IP:"+IpUtil.getIpAddr(request)+"remote 's host: "+request.getRemoteHost());
        
int call = 0;
        
for(String ip:entryIP){
            
if(ip.equals(IpUtil.getIpAddr(request)))
                call
++;
        }
        
if(call>0){
            log.info(
"call ==>remote 's IP:"+IpUtil.getIpAddr(request)+"remote 's host: "+request.getRemoteHost());
            
super.handleRequest(request, response);
        }
    }
}

   <bean id="shineLibWSImpl" class="com.***.shine.remote.ShineLibWSImpl"/>
    
<bean name="/remote/shineinfo" class="com.***.shine.hessian.service.HouseHessianServiceExporter">
        
<property name="service">
            
<ref bean="shineLibWSImpl"/>
        
</property>
        
<property name="serviceInterface">
            
<value>com.***.shine.remote.ShineLibWebService</value>
        
</property>
    
</bean>

閲嶅啓HessianServiceExporter.handleRequest(),鎷︽埅鑾峰彇榪滅璋冪敤淇℃伅,鎻愬彇鍑鴻皟鐢ㄧ鐨刬p淇℃伅涓庢湇鍔$鍒跺畾鐨刬p鍒楄〃榪涜瀵規瘮,騫跺皢鎵鏈夎皟鐢ㄤ俊鎭褰曟棩蹇?br />
濡傛灉鐩存帴浣跨敤hessian鐨刟pi鐨凥essianServlet,鐩存帴瀵笻essianServlet鐨剆ervice()閲嶅啓,鎷︽埅騫舵彁鍙栬繙绔皟鐢ㄤ俊鎭?br />
/**
 * 閲嶅啓HouseHessianServlet.service(),鎷︽埅鑾峰彇榪滅璋冪敤淇℃伅
 * 
@author chenyz
 *
 
*/
public class HouseHessianServlet extends HessianServlet{
    
    
private static String[] entryIP = {"192.168.0.1","192.168.0.3","192.168.0.3"};
    
    
private static Log log = LogFactory.getLog("Myremote"); 
    
    @Override
    
public void service(ServletRequest request, ServletResponse response)
            
throws IOException, ServletException {
        HttpServletRequest req 
= (HttpServletRequest) request;
        log.info(
"try ==>remote 's IP:"+IpUtil.getIpAddr(req)+"remote 's host: "+request.getRemoteHost());
        
int call = 0;
        
for(String ip:entryIP){
            
if(ip.equals(IpUtil.getIpAddr(request)))
                call
++;
        }
        
if(call>0){
            log.info(
"call ==>remote 's IP:"+IpUtil.getIpAddr(req)+"remote 's host: "+request.getRemoteHost());
            
super.service(request, response);
        }
    }
}

web.xml

   <servlet>   
    
<servlet-name>HessianServlet</servlet-name>   
    
<servlet-class>   
        com.***.product.remote.Htest
    
</servlet-class>   
  
</servlet>  

  
<servlet-mapping>   
    
<servlet-name>HessianServlet</servlet-name>   
    
<url-pattern>/service/hession</url-pattern>   
  
</servlet-mapping>  

com.***.product.remote.Htest

public class Htest extends HouseHessianServlet implements IHtest{
    
    
public hello(){
        System.out.println(
"hello");
    }
}




]]>
瑙e喅hessian榪滅▼璋冪敤榪炴帴瓚呮椂鐨勯棶棰?/title><link>http://m.tkk7.com/dongbule/archive/2010/12/16/340894.html</link><dc:creator>闄堜簬鍠?/dc:creator><author>闄堜簬鍠?/author><pubDate>Thu, 16 Dec 2010 06:46:00 GMT</pubDate><guid>http://m.tkk7.com/dongbule/archive/2010/12/16/340894.html</guid><wfw:comment>http://m.tkk7.com/dongbule/comments/340894.html</wfw:comment><comments>http://m.tkk7.com/dongbule/archive/2010/12/16/340894.html#Feedback</comments><slash:comments>3</slash:comments><wfw:commentRss>http://m.tkk7.com/dongbule/comments/commentRss/340894.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/dongbule/services/trackbacks/340894.html</trackback:ping><description><![CDATA[鐩墠鍑犲緋葷粺涓富瑕佷嬌鐢ㄧ殑hessian榪涜榪滅▼璋冪敤webservice鏈嶅姟鐨勬湁hessian鐨凥essianProxyFactory(com.caucho.hessian.client.HessianProxyFactory)鍜宻pring鐨凥essianProxyFactoryBean(org.springframework.remoting.caucho.HessianProxyFactoryBean).<br /> <br /> <strong>1.HessianProxyFactory</strong><br /> 鏌ョ湅HessianProxyFactory婧愮爜鍚庡彂鐜?hessian鍦ㄥ垱寤篽ttp璇鋒眰榪炴帴webservice鏈嶅姟騫舵病鏈夊榪炴帴瓚呮椂榪涜鐩稿叧鐨勫弬鏁拌緗?鎵浠ュ綋緗戠粶鍑虹幇闂灝變細閫犳垚鏁翠釜hessian澶勭悊鐨勯樆濉?榪涜岄樆濉炴暣涓嚎紼嬪悗緇殑澶勭悊<br /> 浠ヤ笅鏄疕essianProxyFactory瀵硅繛鎺ュ鐞嗙殑婧愮爜<br /> <br /> <div style="background-color: rgb(238, 238, 238); font-size: 13px; border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; width: 98%;"><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><span style="color: rgb(0, 0, 255);">protected</span><span style="color: rgb(0, 0, 0);"> URLConnection openConnection(URL url)<br />     </span><span style="color: rgb(0, 0, 255);">throws</span><span style="color: rgb(0, 0, 0);"> IOException<br />   {<br />     URLConnection conn </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> url.openConnection();<br /> <br />     conn.setDoOutput(</span><span style="color: rgb(0, 0, 255);">true</span><span style="color: rgb(0, 0, 0);">);<br /> <br />     </span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);"> (_readTimeout </span><span style="color: rgb(0, 0, 0);">></span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">0</span><span style="color: rgb(0, 0, 0);">) {<br />       </span><span style="color: rgb(0, 0, 255);">try</span><span style="color: rgb(0, 0, 0);"> {<br />     conn.setReadTimeout((</span><span style="color: rgb(0, 0, 255);">int</span><span style="color: rgb(0, 0, 0);">) _readTimeout);<br />       } </span><span style="color: rgb(0, 0, 255);">catch</span><span style="color: rgb(0, 0, 0);"> (Throwable e) {<br />       }<br />     }<br /> <br />     conn.setRequestProperty(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">Content-Type</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">, </span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">x-application/hessian</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">);<br /> <br />     </span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);"> (_basicAuth </span><span style="color: rgb(0, 0, 0);">!=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">null</span><span style="color: rgb(0, 0, 0);">)<br />       conn.setRequestProperty(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">Authorization</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">, _basicAuth);<br />     </span><span style="color: rgb(0, 0, 255);">else</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);"> (_user </span><span style="color: rgb(0, 0, 0);">!=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">null</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">&&</span><span style="color: rgb(0, 0, 0);"> _password </span><span style="color: rgb(0, 0, 0);">!=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">null</span><span style="color: rgb(0, 0, 0);">) {<br />       _basicAuth </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">Basic </span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);"> base64(_user </span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">:</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);"> _password);<br />       conn.setRequestProperty(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">Authorization</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">, _basicAuth);<br />     }<br /> <br />     </span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);"> conn;<br />   }</span></div> <br /> 鎵浠ユ垜浠拡瀵規閫昏緫緇ф壙騫墮噸鍐欒openConnection鏂規硶,鍦ㄥ垱寤篽ttp榪炴帴鐨勬椂鍊欓氳繃璁劇疆榪炴帴瓚呮椂鏃墮棿鏉ヨВ鍐沖洜緗戠粶闂闃誨紼嬪簭緇х畫鐨勯棶棰?br /> <br /> <div style="background-color: rgb(238, 238, 238); font-size: 13px; border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; width: 98%;"><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">class</span><span style="color: rgb(0, 0, 0);"> MyHessianProxyFactory </span><span style="color: rgb(0, 0, 255);">extends</span><span style="color: rgb(0, 0, 0);"> HessianProxyFactory {<br /> <br />     </span><span style="color: rgb(0, 0, 255);">private</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">int</span><span style="color: rgb(0, 0, 0);"> connectTimeOut </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">10000</span><span style="color: rgb(0, 0, 0);">;<br /> <br />     </span><span style="color: rgb(0, 0, 255);">private</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">int</span><span style="color: rgb(0, 0, 0);"> readTimeOut </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">10000</span><span style="color: rgb(0, 0, 0);">;<br /> <br />     </span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">int</span><span style="color: rgb(0, 0, 0);"> getConnectTimeOut() {<br />         </span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);"> connectTimeOut;<br />     }<br /> <br />     </span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">void</span><span style="color: rgb(0, 0, 0);"> setConnectTimeOut(</span><span style="color: rgb(0, 0, 255);">int</span><span style="color: rgb(0, 0, 0);"> connectTimeOut) {<br />         </span><span style="color: rgb(0, 0, 255);">this</span><span style="color: rgb(0, 0, 0);">.connectTimeOut </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> connectTimeOut;<br />     }<br /> <br />     </span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">int</span><span style="color: rgb(0, 0, 0);"> getReadTimeOut() {<br />         </span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);"> readTimeOut;<br />     }<br /> <br />     </span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">void</span><span style="color: rgb(0, 0, 0);"> setReadTimeOut(</span><span style="color: rgb(0, 0, 255);">int</span><span style="color: rgb(0, 0, 0);"> readTimeOut) {<br />         </span><span style="color: rgb(0, 0, 255);">this</span><span style="color: rgb(0, 0, 0);">.readTimeOut </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> readTimeOut;<br />     }<br /> <br />     </span><span style="color: rgb(0, 0, 255);">protected</span><span style="color: rgb(0, 0, 0);"> URLConnection openConnection(URL url) </span><span style="color: rgb(0, 0, 255);">throws</span><span style="color: rgb(0, 0, 0);"> IOException {<br />         URLConnection conn </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> url.openConnection();<br />         conn.setDoOutput(</span><span style="color: rgb(0, 0, 255);">true</span><span style="color: rgb(0, 0, 0);">);<br />         </span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);"> (</span><span style="color: rgb(0, 0, 255);">this</span><span style="color: rgb(0, 0, 0);">.connectTimeOut </span><span style="color: rgb(0, 0, 0);">></span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">0</span><span style="color: rgb(0, 0, 0);">) {<br />             conn.setConnectTimeout(</span><span style="color: rgb(0, 0, 255);">this</span><span style="color: rgb(0, 0, 0);">.connectTimeOut);<br />         }<br />         </span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);"> (</span><span style="color: rgb(0, 0, 255);">this</span><span style="color: rgb(0, 0, 0);">.readTimeOut </span><span style="color: rgb(0, 0, 0);">></span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">0</span><span style="color: rgb(0, 0, 0);">) {<br />             conn.setReadTimeout(</span><span style="color: rgb(0, 0, 255);">this</span><span style="color: rgb(0, 0, 0);">.readTimeOut);<br />         }<br />         conn.setRequestProperty(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">Content-Type</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">, </span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">x-application/hessian</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">);<br />             </span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);"> (_basicAuth </span><span style="color: rgb(0, 0, 0);">!=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">null</span><span style="color: rgb(0, 0, 0);">)<br />                   conn.setRequestProperty(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">Authorization</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">, _basicAuth);<br />             </span><span style="color: rgb(0, 0, 255);">else</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);"> (_user </span><span style="color: rgb(0, 0, 0);">!=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">null</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">&&</span><span style="color: rgb(0, 0, 0);"> _password </span><span style="color: rgb(0, 0, 0);">!=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">null</span><span style="color: rgb(0, 0, 0);">) {<br />                   _basicAuth </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">Basic </span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);"> base64(_user </span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">:</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);"> _password);<br />                   conn.setRequestProperty(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">Authorization</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">, _basicAuth);<br />             }<br />         </span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);"> conn;<br />     }<br /> }</span></div> <br /> <strong>2.HessianProxyFactoryBean</strong><br /> 鏌ョ湅spring鐨凥essianProxyFactoryBean婧愮爜鍙戠幇,瀹冨湪灝佽hessian鏄洿鎺ュ垱寤轟竴涓狧essianProxyFactory瀹炰緥,鐒跺悗鍒╃敤璇ュ疄渚嬪畬鎴愬垱寤鴻繙紼嬫湇鍔?br /> <br /> <div style="background-color: rgb(238, 238, 238); font-size: 13px; border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; width: 98%;"><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">class</span><span style="color: rgb(0, 0, 0);"> HessianProxyFactoryBean </span><span style="color: rgb(0, 0, 255);">extends</span><span style="color: rgb(0, 0, 0);"> HessianClientInterceptor </span><span style="color: rgb(0, 0, 255);">implements</span><span style="color: rgb(0, 0, 0);"> FactoryBean {<br /> <br />     </span><span style="color: rgb(0, 0, 255);">private</span><span style="color: rgb(0, 0, 0);"> Object serviceProxy;<br /> <br /> <br />     </span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">void</span><span style="color: rgb(0, 0, 0);"> afterPropertiesSet() {<br />         </span><span style="color: rgb(0, 0, 255);">super</span><span style="color: rgb(0, 0, 0);">.afterPropertiesSet();<br />         </span><span style="color: rgb(0, 0, 255);">this</span><span style="color: rgb(0, 0, 0);">.serviceProxy </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> ProxyFactory.getProxy(getServiceInterface(), </span><span style="color: rgb(0, 0, 255);">this</span><span style="color: rgb(0, 0, 0);">);<br />     }<br />     <br /> <br />     </span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);"> Object getObject() {<br />         </span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">this</span><span style="color: rgb(0, 0, 0);">.serviceProxy;<br />     }<br /> <br />     </span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);"> Class getObjectType() {<br />         </span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);"> getServiceInterface();<br />     }<br />     <br />     </span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">boolean</span><span style="color: rgb(0, 0, 0);"> isSingleton() {<br />         </span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">true</span><span style="color: rgb(0, 0, 0);">;<br />     }<br /> <br /> }</span></div> <br /> 鎵浠ュ姝ょ殑瑙e喅鏂規硶涓庝笂闈㈠樊涓嶅,緇ф壙HessianProxyFactoryBean鐒跺悗鍔犲叆鐩稿簲鐨勮繛鎺ヨ秴鏃跺拰璇誨彇瓚呮椂鐨勫彉閲?閲嶅啓afterPropertiesSet鏂規硶,騫朵笖鍚屾椂瀹屾垚涓婇潰絎竴姝ュHessianProxyFactory鐨勬敼閫?榪欐牱灝辮兘淇濊瘉榪炴帴榪滅▼webserver鏈嶅姟鍣ㄦ椂涓嶄細鍥犱負緗戠粶鍘熷洜闃誨紼嬪簭鐨勬墽琛?br /> <br /> <div style="background-color: rgb(238, 238, 238); font-size: 13px; border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; width: 98%;"><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">class</span><span style="color: rgb(0, 0, 0);"> MyHessianProxyFactoryBean </span><span style="color: rgb(0, 0, 255);">extends</span><span style="color: rgb(0, 0, 0);"> HessianProxyFactoryBean {<br /> <br />     </span><span style="color: rgb(0, 0, 255);">private</span><span style="color: rgb(0, 0, 0);"> MyHessianProxyFactory proxyFactory </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">new</span><span style="color: rgb(0, 0, 0);"> MyHessianProxyFactory();<br /> <br />     </span><span style="color: rgb(0, 0, 255);">private</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">int</span><span style="color: rgb(0, 0, 0);"> readTimeOut </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">10000</span><span style="color: rgb(0, 0, 0);">;<br /> <br />     </span><span style="color: rgb(0, 0, 255);">private</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">int</span><span style="color: rgb(0, 0, 0);"> connectTimeOut </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">10000</span><span style="color: rgb(0, 0, 0);">;<br /> <br />     </span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">int</span><span style="color: rgb(0, 0, 0);"> getReadTimeOut() {<br />         </span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);"> readTimeOut;<br />     }<br /> <br />     </span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">void</span><span style="color: rgb(0, 0, 0);"> setReadTimeOut(</span><span style="color: rgb(0, 0, 255);">int</span><span style="color: rgb(0, 0, 0);"> readTimeOut) {<br />         </span><span style="color: rgb(0, 0, 255);">this</span><span style="color: rgb(0, 0, 0);">.readTimeOut </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> readTimeOut;<br />     }<br /> <br />     </span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">int</span><span style="color: rgb(0, 0, 0);"> getConnectTimeOut() {<br />         </span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);"> connectTimeOut;<br />     }<br /> <br />     </span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">void</span><span style="color: rgb(0, 0, 0);"> setConnectTimeOut(</span><span style="color: rgb(0, 0, 255);">int</span><span style="color: rgb(0, 0, 0);"> connectTimeOut) {<br />         </span><span style="color: rgb(0, 0, 255);">this</span><span style="color: rgb(0, 0, 0);">.connectTimeOut </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> connectTimeOut;<br />     }<br /> <br />     </span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">void</span><span style="color: rgb(0, 0, 0);"> afterPropertiesSet() {<br />         proxyFactory.setReadTimeout(readTimeOut);<br />         proxyFactory.setConnectTimeOut(connectTimeOut);<br />         setProxyFactory(proxyFactory);<br />         </span><span style="color: rgb(0, 0, 255);">super</span><span style="color: rgb(0, 0, 0);">.afterPropertiesSet();<br />     }<br /> }</span></div> <br /> <br /> <img src ="http://m.tkk7.com/dongbule/aggbug/340894.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/dongbule/" target="_blank">闄堜簬鍠?/a> 2010-12-16 14:46 <a href="http://m.tkk7.com/dongbule/archive/2010/12/16/340894.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <p>感谢您访问我们的网站,您可能还对以下资源感兴趣:</p> <a href="http://m.tkk7.com/" title="亚洲av成人片在线观看">亚洲av成人片在线观看</a> <div class="friend-links"> </div> </div> </footer> 主站蜘蛛池模板: <a href="http://www-ttyx.com" target="_blank">亚洲免费黄色网址</a>| <a href="http://k9l4.com" target="_blank">91精品手机国产免费</a>| <a href="http://yy6653.com" target="_blank">无人在线观看免费高清视频 </a>| <a href="http://bjbf99.com" target="_blank">亚洲精品久久无码av片俺去也</a>| <a href="http://tsxyhq.com" target="_blank">9420免费高清在线视频</a>| <a href="http://1212777.com" target="_blank">亚洲尹人九九大色香蕉网站</a>| <a href="http://manghuo365.com" target="_blank">久久er国产精品免费观看2</a>| <a href="http://zengzeyu.com" target="_blank">亚洲日韩精品A∨片无码</a>| <a href="http://22222xxx.com" target="_blank">国产免费黄色无码视频</a>| <a href="http://91vk.com" target="_blank">国产∨亚洲V天堂无码久久久</a>| <a href="http://www-188588.com" target="_blank">国产精品免费视频观看拍拍</a>| <a href="http://watchmini.com" target="_blank">亚洲午夜福利精品无码</a>| <a href="http://sh-shule.com" target="_blank">久久毛片免费看一区二区三区</a>| <a href="http://shaonvfushi.com" target="_blank">亚洲精品国产精品乱码不卡</a>| <a href="http://xjscr.com" target="_blank">久久av免费天堂小草播放</a>| <a href="http://8mav938.com" target="_blank">在线观看国产区亚洲一区成人</a>| <a href="http://zhuanjiao521.com" target="_blank">国产无遮挡又黄又爽免费网站</a>| <a href="http://18736374.com" target="_blank">最新国产AV无码专区亚洲</a>| <a href="http://khushkhush.com" target="_blank">青柠影视在线观看免费高清</a>| <a href="http://www-8908.com" target="_blank">亚洲免费精彩视频在线观看</a>| <a href="http://zygwkqf.com" target="_blank">16女性下面无遮挡免费</a>| <a href="http://u6u6u6.com" target="_blank">亚洲久悠悠色悠在线播放</a>| <a href="http://www-456446.com" target="_blank">大陆一级毛片免费视频观看i</a>| <a href="http://yuejiju.com" target="_blank">亚洲妇女无套内射精</a>| <a href="http://xiaojiejieav.com" target="_blank">亚洲А∨精品天堂在线</a>| <a href="http://fsszx888.com" target="_blank">久久成人18免费网站</a>| <a href="http://xjyzz.com" target="_blank">老汉色老汉首页a亚洲</a>| <a href="http://qvod-player.com" target="_blank">国产91色综合久久免费分享</a>| <a href="http://jpvv8.com" target="_blank">亚洲一卡2卡三卡4卡无卡下载</a>| <a href="http://xjyzz.com" target="_blank">国产免费卡一卡三卡乱码 </a>| <a href="http://wwwav800.com" target="_blank">拍拍拍无挡视频免费观看1000</a>| <a href="http://yy9977.com" target="_blank">久久精品亚洲一区二区</a>| <a href="http://www1616hh.com" target="_blank">黄色成人免费网站</a>| <a href="http://wogool.com" target="_blank">国产精品久久久久久亚洲小说</a>| <a href="http://nibayuan.com" target="_blank">亚洲午夜成人精品电影在线观看</a>| <a href="http://jufandev.com" target="_blank">久久这里只精品热免费99</a>| <a href="http://m0808dy.com" target="_blank">亚洲最大的黄色网</a>| <a href="http://cswsfz.com" target="_blank">亚洲精品国产自在久久</a>| <a href="http://fsweicheng.com" target="_blank">99ee6热久久免费精品6</a>| <a href="http://aaa99999.com" target="_blank">亚洲GV天堂无码男同在线观看</a>| <a href="http://jimeng-99.com" target="_blank">亚洲成A∨人片天堂网无码</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>