avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hamm...@apache.org
Subject cvs commit: jakarta-avalon-cornerstone/apps/httpproxy/src/conf httpproxy-assembly.xml httpproxy-config.xml httpproxy-environment.xml
Date Wed, 21 Nov 2001 17:03:32 GMT
hammant     01/11/21 09:03:32

  Added:       apps/httpproxy/src/conf httpproxy-assembly.xml
                        httpproxy-config.xml httpproxy-environment.xml
  Log:
  start of removal of httpproxy from demo
  
  Revision  Changes    Path
  1.1                  jakarta-avalon-cornerstone/apps/httpproxy/src/conf/httpproxy-assembly.xml
  
  Index: httpproxy-assembly.xml
  ===================================================================
  <?xml version="1.0"?>
  
  <assembly>
  
    <block-listener class="org.apache.avalon.cornerstone.demos.simpleserver.SimpleBlockListener"

                    name="simple-listener" />
  
    <!-- The Storage block -->
    <block class="org.apache.avalon.cornerstone.blocks.masterstore.RepositoryManager" 
           name="objectstorage" />
     
    <!-- The Packet Manager block -->
    <block class="org.apache.avalon.cornerstone.blocks.packet.DefaultPacketManager" 
           name="packet-manager">
      <provide name="thread-manager" 
               role="org.apache.avalon.cornerstone.services.threads.ThreadManager" />
    </block>
   
    <!-- The ThreadManager block -->
    <block class="org.apache.avalon.cornerstone.blocks.threads.DefaultThreadManager" 
           name="thread-manager" />
   
    <!-- The Connection Manager block -->
    <block class="org.apache.avalon.cornerstone.blocks.connection.DefaultConnectionManager"

           name="connections">
      <provide name="thread-manager" 
               role="org.apache.avalon.cornerstone.services.threads.ThreadManager" />
    </block>
  
    <!-- The Socket Manager block -->
    <block class="org.apache.avalon.cornerstone.blocks.sockets.DefaultSocketManager" name="sockets"
/>
  
    <!-- The TimeScheduler block -->
    <block class="org.apache.avalon.cornerstone.blocks.scheduler.DefaultTimeScheduler"
name="scheduler">
      <provide name="thread-manager" 
               role="org.apache.avalon.cornerstone.services.threads.ThreadManager" />
    </block>
  
    <!--                                        -->
    <!-- Below this section are the demo blocks -->
    <!--                                        -->
  
    <block class="org.apache.avalon.cornerstone.demos.httpproxy.DefaultHttpAuditingProxyServer"

           name="httpproxyserver-Auditing" >
      <provide name="sockets" role="org.apache.avalon.cornerstone.services.sockets.SocketManager"/>
      <provide name="connections" 
               role="org.apache.avalon.cornerstone.services.connection.ConnectionManager"
/>
    </block>
      
    <block class="org.apache.avalon.cornerstone.demos.httpproxy.DefaultHttpFilteringProxyServer"

           name="httpproxyserver-Filtering" >
      <provide name="sockets" role="org.apache.avalon.cornerstone.services.sockets.SocketManager"/>
      <provide name="connections" 
               role="org.apache.avalon.cornerstone.services.connection.ConnectionManager"
/>
    </block>    
  
  </assembly>
  
  
  
  1.1                  jakarta-avalon-cornerstone/apps/httpproxy/src/conf/httpproxy-config.xml
  
  Index: httpproxy-config.xml
  ===================================================================
  <?xml version="1.0"?>
  <!--
                                  README!
  
      All blocks have full defaults so nothing is needed to make them run.
  
  -->
  <config>
  
    <thread-manager>
        <thread-group>
          <name>default</name>
  
          <!-- normal priority == 5, max-priority = 10 -->
          <priority>5</priority> 
  
          <!-- are threads deamon threads ? -->
          <is-daemon>false</is-daemon>
  
          <max-threads>40</max-threads>
          <!-- these are ignored at the moment but will be fixed in later revisions -->
          <min-threads>20</min-threads>
          <min-spare-threads>20</min-spare-threads>
        </thread-group>
    </thread-manager>
  
    <!-- The Storage block -->
    <objectstorage>
        <repositories>
          <repository class="org.apache.avalon.cornerstone.blocks.masterstore.File_Persistent_Object_Repository">
            <protocols>
              <protocol>file</protocol>
            </protocols>
            <types>
              <type>OBJECT</type>
            </types>
            <models>
              <model>SYNCHRONOUS</model>
              <model>ASYNCHRONOUS</model>
              <model>CACHE</model>
            </models>
          </repository>
          <repository class="org.apache.avalon.cornerstone.blocks.masterstore.File_Persistent_Stream_Repository">
            <protocols>
              <protocol>file</protocol>
            </protocols>
            <types>
              <type>STREAM</type>
            </types>
            <models>
              <model>SYNCHRONOUS</model>
              <model>ASYNCHRONOUS</model>
              <model>CACHE</model>
            </models>
          </repository>
        </repositories>
    </objectstorage>
     
    <sockets>
        <server-sockets>
          <factory name="plain"
                   class="org.apache.avalon.cornerstone.blocks.sockets.DefaultServerSocketFactory"
/>
        </server-sockets>
  
        <client-sockets>
          <factory name="plain" 
                   class="org.apache.avalon.cornerstone.blocks.sockets.DefaultSocketFactory"
/>
        </client-sockets>
    </sockets>
  
    <simple-listener>
     <!-- dummy configuration to make sure  listener configure is called-->
    </simple-listener>
  
    <httpproxyserver-Auditing>
        <listen-port>9997</listen-port>
        <bind>127.0.0.1</bind>
        <httpproxyhandler-Auditing>
          <connectiontimeout>360000</connectiontimeout>
        </httpproxyhandler-Auditing>
    </httpproxyserver-Auditing>
      
    <httpproxyserver-Filtering>
        <listen-port>9998</listen-port>
        <fforward-to-another-proxy>localhost:9997</fforward-to-another-proxy>
 
        <bind>127.0.0.1</bind>
        <httpproxyhandler-Filtering>
          <connectiontimeout>360000</connectiontimeout>
        </httpproxyhandler-Filtering>
            
        <blocked-domains>
          <blocked-domain domain-name="doubleclick.net" />
          <blocked-domain domain-name="akamai.net" />
        </blocked-domains>
        <cookies-allowed-domains>
          <cookies-allowed-domain domain-name="yahoo.co.uk" />
          <cookies-allowed-domain domain-name="yahoo.com" />
        </cookies-allowed-domains>              
    </httpproxyserver-Filtering>
  
  </config>
  
  
  
  1.1                  jakarta-avalon-cornerstone/apps/httpproxy/src/conf/httpproxy-environment.xml
  
  Index: httpproxy-environment.xml
  ===================================================================
  <?xml version="1.0"?>
  <!--
                                  README!
  
      Basic config file that sets up context for server application.
  
  -->
  <environment>
  
      <logs>
  
        <category name="" target="default" priority="DEBUG" />
        <category name="objectstorage" target="objectstorage-target" priority="DEBUG" />
        <category name="simple-server" target="simple-server" priority="DEBUG" />
        <log-target name="default" location="/logs/avalon-demo.log" />
        <log-target name="objectstorage-target" location="/logs/objectstorage.log" />
        <log-target name="simple-server" location="/logs/simple-server.log" />
      </logs>
  
      <policy>
        <grant code-base="file:${app.home}${/}SAR-INF${/}lib${/}*">
          <permission class="java.security.AllPermission" />
        </grant>
      </policy>
  
  </environment>
  
  
  

--
To unsubscribe, e-mail:   <mailto:avalon-cvs-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-cvs-help@jakarta.apache.org>


Mime
View raw message