Want more features on Pastebin? Sign Up, it's FREE!
Guest

webharvest log, GUI errors

By: a guest on May 31st, 2010  |  syntax: XML  |  size: 2.42 KB  |  views: 319  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <beans xmlns="http://www.springframework.org/schema/beans"
  2.         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3.         xmlns:context="http://www.springframework.org/schema/context"
  4.         xmlns:util="http://www.springframework.org/schema/util"
  5.         xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
  6.                 http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd
  7.                 http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.0.xsd">
  8.  
  9. <bean id="httpParams" class="org.apache.http.params.BasicHttpParams" scope="singleton"/>
  10.  
  11. <bean id="httpParamBean" class="org.apache.http.params.HttpProtocolParamBean" depends-on="httpParams">
  12.          <constructor-arg ref="#{httpParams}"/>
  13.          <property name="contentCharset" value="UTF-8"/>
  14.          <property name="userAgent" value="Mozilla/5.0 (Windows; U; Windows NT 6.1; ru; rv:1.9.2.4) Gecko/20100513 Firefox/3.6.4"/>
  15.          <property name="useExpectContinue" value="true"/>
  16.          <property name="version">
  17.                          <util:constant static-field="org.apache.http.HttpVersion.HTTP_1_1"/>
  18.          </property>
  19. </bean>
  20.  
  21. <bean id="scheme" class="org.apache.http.conn.scheme.Scheme">
  22.         <constructor-arg value="http"/>
  23.         <constructor-arg value="#{T(org.apache.http.conn.scheme.PlainSocketFactory).getSocketFactory()}"/>
  24.         <constructor-arg type="int" value="80" />
  25. </bean>
  26.          
  27. <bean id="schemeReg" class="org.apache.http.conn.scheme.SchemeRegistry" depends-on="httpParamBean"/>
  28.          
  29. <bean id="configurator" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean" depends-on="schemeReg">
  30.         <property name="targetClass" value="schemeReg"/>
  31.         <property name="targetMethod" value="register"/>
  32.         <property name="arguments">
  33.                 <list>
  34.                         <value>1</value>
  35.                         <ref bean="scheme"/>
  36.                 </list>
  37.         </property>
  38. </bean>
  39.          
  40.          
  41. <bean id="tsccManager" class="org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager" depends-on="configurator">
  42.         <constructor-arg ref="#{httpParams}"/>
  43.         <constructor-arg ref="#{schemeReg}"/>
  44. </bean>
  45.  
  46. <bean id="httpClient" class="org.apache.http.impl.client.DefaultHttpClient" depends-on="tsccManager">
  47.         <constructor-arg ref="#{tsccManager}"/>
  48.         <constructor-arg ref="#{httpParams}"/>
  49. </bean>
  50.  
  51. <bean id="threadManager" class="tools.proxies.ThreadManager">
  52.         <constructor-arg ref="#{httpClient}"/>
  53.         <constructor-arg value="5"/>
  54. </bean>
  55.  
  56. </beans>
clone this paste RAW Paste Data