]> granicus.if.org Git - apache/commitdiff
xml validation issues
authorAndré Malo <nd@apache.org>
Fri, 15 Oct 2004 21:16:25 +0000 (21:16 +0000)
committerAndré Malo <nd@apache.org>
Fri, 15 Oct 2004 21:16:25 +0000 (21:16 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105467 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/mod/mod_filter.xml
docs/manual/mod/mod_isapi.xml.ko
docs/manual/mod/mod_proxy_ajp.xml

index 0b7acbc4fd47445a4d325520e26eef20aaeefc2e..73a7b3e28b62df9c945c8187d7e801d0e6035be4 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version="1.0"?>
 <!DOCTYPE modulesynopsis SYSTEM "../style/modulesynopsis.dtd">
 <?xml-stylesheet type="text/xsl" href="../style/manual.en.xsl"?>
-<!-- $Revision: 1.3 $ -->
+<!-- $Revision: 1.4 $ -->
 
 <!--
  Copyright 2004 The Apache Software Foundation
@@ -61,13 +61,20 @@ Variables offers the full flexibility of configuration with
 
 </section>
 <section id="terms"><title>Filter Declarations, Providers and Chains</title>
-<img src="../images/mod_filter_old.gif" alt=""/>
+<p class="figure">
+<img src="../images/mod_filter_old.gif" width="160" height="310"
+alt="[This image displays the traditional filter model]"/><br />
+<dfn>Figure 1:</dfn> The traditional filter model</p>
+
 <p>In the traditional model, output filters are a simple chain
 from the content generator (handler) to the client.  This works well
 provided the filter chain can be correctly configured, but presents
 problems when the filters need to be configured dynamically based on
 the outcome of the handler.</p>
-<img src="../images/mod_filter_new.gif" alt=""/>
+<p class="figure">
+<img src="../images/mod_filter_new.gif" width="423" height="331"
+alt="[This image shows the mod_filter model]"/><br />
+<dfn>Figure 2:</dfn> The <module>mod_filter</module> model</p>
 <p>mod_filter works by introducing indirection into the filter
 chain.  Instead of inserting filters in the chain, we insert
 a filter harness which in turn dispatches conditionally
index b525dd8cd23e1a88af46baee8150aed1ef62d655..b03d621b2e010d9d7e5041eb647969699ac72661 100644 (file)
       <dt><code>HSE_REQ_SEND_URL_REDIRECT_RESP</code></dt>
       <dd>»ç¿ëÀÚ¸¦ ´Ù¸¥ À§Ä¡·Î ¸®´ÙÀÌ·º¼ÇÇÑ´Ù.<br />
       ¿ÏÀüÇÑ URLÀ» »ç¿ëÇØ¾ß ÇÑ´Ù (<em>¿¹¸¦ µé¾î,</em>
-      <code>http://server/location</code>).</dd>.
+      <code>http://server/location</code>).</dd>
 
       <dt><code>HSE_REQ_SEND_URL</code></dt>
       <dd>»ç¿ëÀÚ¸¦ ´Ù¸¥ À§Ä¡·Î ¸®´ÙÀÌ·º¼ÇÇÑ´Ù.<br />
index 1571107f00cd4b68459b15ad4ff4cc31ca19a04b..496ae74ac8a1bf96c8151008feae89d9eb5de636 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version="1.0"?>
 <!DOCTYPE modulesynopsis SYSTEM "../style/modulesynopsis.dtd">
 <?xml-stylesheet type="text/xsl" href="../style/manual.en.xsl"?>
-<!-- $Revision: 1.3 $ -->
+<!-- $Revision: 1.4 $ -->
 
 <!--
  Copyright 2002-2004 The Apache Software Foundation
@@ -47,6 +47,8 @@
     </note>
 </summary>
 
+<seealso><module>mod_proxy</module></seealso>
+
 <section id="overviewprotocol"><title>Overview of the protocol</title>
     <p>The <code>AJP13</code> protocol is packet-oriented.  A binary format
     was presumably chosen over the more readable plain text for reasons of
     cause more connections to be open at once.</p>
     <p>Once the web server has opened a connection to the servlet container,
     the connection can be in one of the following states:</p>
-    <p><ul>
+    <ul>
     <li> Idle <br/> No request is being handled over this connection. </li>
     <li> Assigned <br/> The connecton is handling a specific request.</li>
-    </ul></p>
+    </ul>
     <p>Once a connection is assigned to handle a particular request, the basic
     request informaton (e.g. HTTP headers, etc) is sent over the connection in
     a highly condensed form (e.g. common strings are encoded as integers).
@@ -74,7 +76,7 @@
     separate packet immediately after.</p>
     <p>At this point, the servlet container is presumably ready to start
     processing the request.  As it does so, it can send the
-    following messages back to the web server:
+    following messages back to the web server:</p>
     <ul>
     <li>SEND_HEADERS <br/>Send a set of headers back to the browser.</li>
     <li>SEND_BODY_CHUNK <br/>Send a chunk of body data back to the browser.
@@ -85,7 +87,7 @@
     request (for uploaded files, for example).  (Note: this is unrelated to
     HTTP chunked tranfer).</li>
     <li>END_RESPONSE <br/> Finish the request-handling cycle.</li>
-    </ul></p>
+    </ul>
     <p>Each message is accompanied by a differently formatted packet of data.
     See Response Packet Structures below for details.</p>
 </section>
     making that so (on the C side).  If anyone with a better knowledge of
     socket calls can step in, that would be great.</p>
     <p>There are four data types in the protocol: bytes, booleans,
-    integers and strings.
+    integers and strings.</p>
     <dl>
     <dt><strong>Byte</strong></dt><dd>A single byte.</dd>
     <dt><strong>Boolean</strong></dt>
       C code can pass around references into a single buffer, without copying.
       if the \0 was missing, the C code would have to copy things out in order
       to get its notion of a string.</dd>
-    </dl></p>
+    </dl>
 
   <section><title>Packet Size</title>
     <p>According to much of the code, the max packet size is <code>
     ASCII code for B).  After those first two bytes, there is an integer
     (encoded as above) with the length of the payload.  Although this might
     suggest that the maximum payload could be as large as 2^16, in fact, the
-    code sets the maximum to be 8K.
+    code sets the maximum to be 8K.</p>
     <table>
       <tr>
         <td colspan="6"><em>Packet Format (Server->Container)</em></td>
         <td colspan="2">Data Length (n)</td>
         <td>Data</td>
       </tr>
-    </table></p>
+    </table>
     <p>For most packets, the first byte of the payload encodes the type of
      message.  The exception is for request body packets sent from the server to
      the container -- they are sent with a standard packet header (<code>
      0x1234</code> and then length of the packet), but without any prefix code
      after that.</p>
-     <p>The web server can send the following messages to the servlet container:
+     <p>The web server can send the following messages to the servlet
+     container:</p>
     <table>
       <tr>
         <td>Code</td>
         <td>Data</td>
         <td>Size (2 bytes) and corresponding body data.</td>
       </tr>
-    </table></p>
+    </table>
     <p>To ensure some basic security, the container will only actually do the
     <code>Shutdown</code> if the request comes from the same machine on which
     it's hosted.</p>
     <p>The first <code>Data</code> packet is send immediatly after the
     <code>Forward Request</code> by the web server.</p>
     <p>The servlet container can send the following types of messages to the
-    webserver:
+    webserver:</p>
     <table>
       <tr>
         <td>Code</td>
         <td>CPong Reply</td>
         <td>The reply to a CPing request</td>
       </tr>
-    </table></p>
+    </table>
     <p>Each of the above messages has a different internal structure, detailed
     below.</p>
   </section>
@@ -311,7 +314,7 @@ attribute_value := (string)
   </section>
   <section><title>Method</title>
     <p>The HTTP method, encoded as a single byte:</p>
-    <p><table>
+    <table>
       <tr><td>Command Name</td><td>Code</td></tr>
       <tr><td>OPTIONS</td><td>1</td></tr>
       <tr><td>GET</td><td>2</td></tr>
@@ -340,7 +343,7 @@ attribute_value := (string)
       <tr><td>MERGE</td><td>25</td></tr>
       <tr><td>BASELINE_CONTROL</td><td>26</td></tr>
       <tr><td>MKACTIVITY</td><td>27</td></tr>
-    </table></p>
+    </table>
     <p>Later version of ajp13, will transport 
     additional methods, even if they are not in this list.</p>
   </section>
@@ -359,7 +362,7 @@ attribute_value := (string)
     it is encoded normally (as a string, with prefixed length).  The list of
     common headers <code>sc_req_header_name</code>and their codes
     is as follows (all are case-sensitive):</p>
-    <p><table>
+    <table>
       <tr><td>Name</td><td>Code value</td><td>Code name</td></tr>
       <tr><td>accept</td><td>0xA001</td><td>SC_REQ_ACCEPT</td></tr>
       <tr><td>accept-charset</td><td>0xA002</td><td>SC_REQ_ACCEPT_CHARSET
@@ -381,7 +384,7 @@ attribute_value := (string)
       <tr><td>pragma</td><td>0xA00C</td><td>SC_REQ_PRAGMA</td></tr>
       <tr><td>referer</td><td>0xA00D</td><td>SC_REQ_REFERER</td></tr>
       <tr><td>user-agent</td><td>0xA00E</td><td>SC_REQ_USER_AGENT</td></tr>
-    </table></p>
+    </table>
     <p>The Java code that reads this grabs the first two-byte integer and if
     it sees an <code>'0xA0'</code> in the most significant
     byte, it uses the integer in the second byte as an index into an array of
@@ -405,7 +408,7 @@ attribute_value := (string)
     sends them in the order listed below).  A special terminating code is
     sent to signal the end of the list of optional attributes. The list of
     byte codes is:</p>
-    <p><table>
+    <table>
       <tr><td>Information</td><td>Code Value</td><td>Note</td></tr>
       <tr><td>?context</td><td>0x01</td><td>Not currently implemented
       </td></tr>
@@ -422,7 +425,7 @@ attribute_value := (string)
       attribute follows)</td></tr>
       <tr><td>?ssl_key_size</td><td>0x0B</td><td></td></tr>
       <tr><td>are_done</td><td>0xFF</td><td>request_terminator</td></tr>
-    </table></p>
+    </table>
     <p>The <code>context</code> and <code>servlet_path</code> are not
     currently set by the C code, and most of the Java code completely ignores
     whatever is sent over for those fields (and some of it will actually break
@@ -493,7 +496,7 @@ AJP13_GET_BODY_CHUNK :=
     encoded the same way the request header names are. See header_encoding above
     for details about how the the codes are distinguished from the strings.<br />
     The codes for common headers are:</p>
-    <p><table>
+    <table>
       <tr><td>Name</td><td>Code value</td></tr>
       <tr><td>Content-Type</td><td>0xA001</td></tr>
       <tr><td>Content-Language</td><td>0xA002</td></tr>
@@ -506,7 +509,7 @@ AJP13_GET_BODY_CHUNK :=
       <tr><td>Servlet-Engine</td><td>0xA009</td></tr>
       <tr><td>Status</td><td>0xA00A</td></tr>
       <tr><td>WWW-Authenticate</td><td>0xA00B</td></tr>
-    </table></p>
+    </table>
     <p> After the code or the string header name, the header value is
     immediately encoded.</p>
   </section>
@@ -531,6 +534,5 @@ AJP13_GET_BODY_CHUNK :=
   </section>
 </section>
 
-<seealso><module>mod_proxy</module></seealso>
 
 </modulesynopsis>