-<page xmlns:xsp-request="http://apache.org/xsp/request/2.0">
<h1>xsp-request logicsheet output</h1>
-<table border="1">
-<tr>
<th>Logicsheet tag</th>
<th>Output</th>
<th>Java method</th>
<th>Output</th>
</tr>
-<tr>
<td>get-uri</td>
<td>/cocoon21/samples/blocks/xsp/java/request</td>
<td>getRequestURI</td>
<td>/cocoon21/samples/blocks/xsp/java/request</td>
</tr>
-<tr>
<td>get-sitemap-uri</td>
<td>java/request</td>
</tr>
-<tr>
<td>get-scheme</td>
<td>http</td>
<td>getScheme</td>
<td>http</td>
</tr>
-<tr>
<td>get-character-encoding</td>
<td>UTF-8</td>
<td>getCharacterEncoding</td>
<td>UTF-8</td>
</tr>
-<tr>
<td>get-content-length</td>
<td>-1</td>
<td>getContentLength</td>
<td>-1</td>
</tr>
-<tr>
<td>get-content-type</td>
<td/>
<td>getContentType</td>
<td/>
</tr>
-<tr>
<td>get-locale</td>
<td>en_US</td>
<td>getLocale</td>
<td>en_US</td>
</tr>
-<tr>
<td>get-locales</td>
<td>[Ljava.util.Locale;@44b300a7</td>
<td>getLocales</td>
<td>java.util.Collections$2@43eff72d</td>
</tr>
-<tr>
<td>get-parameter</td>
<td/>
<td>getParameter</td>
<td/>
</tr>
-<tr>
<td>get-parameter with default </td>
<td>default</td>
</tr>
-<tr>
<td>get-parameter-values (as array)</td>
<td>null</td>
<td>getParameterValues</td>
<td>null</td>
</tr>
-<tr>
<td>get-parameter-names (as array)</td>
<td>[Ljava.lang.String;@3f4cce33</td>
<td>getParameterNames</td>
<td>java.util.Collections$2@4b7596bc</td>
</tr>
-<tr>
<td>get-header accept</td>
<td>text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8</td>
<td>getHeader</td>
<td>text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8</td>
</tr>
-<tr>
<td>get-header user-agent</td>
<td>CCBot/2.0</td>
<td>getHeader</td>
<td>CCBot/2.0</td>
</tr>
-<tr>
<td>get-headers accept-language (as array)</td>
<td>[Ljava.lang.String;@14fb3758</td>
<td>getHeaders</td>
<td>org.apache.tomcat.util.http.ValuesEnumerator@78ee7d2a</td>
</tr>
-<tr>
<td>get-header-names (as array)</td>
<td>[Ljava.lang.String;@31e38e98</td>
<td>getHeaderNames</td>
<td>org.apache.tomcat.util.http.NamesEnumerator@52a6b6be</td>
</tr>
-<tr>
<td>get-attribute attr</td>
<td>Test Attribute Value!!!</td>
<td>getAttribute</td>
<td>Test Attribute Value!!!</td>
</tr>
-<tr>
<td>get-attribute-names (as array)</td>
<td>[Ljava.lang.String;@3f279e56</td>
<td>getAttributeNames</td>
<td>java.util.Collections$2@420c407e</td>
</tr>
-<tr>
<td>get-requested-url</td>
<td>http://localhost:8080/cocoon21/samples/blocks/xsp/java/request</td>
</tr>
-<tr>
<td>get-remote-address</td>
<td>140.211.11.204</td>
<td>getRemoteAddr</td>
<td>140.211.11.204</td>
</tr>
-<tr>
<td>get-remote-user</td>
<td/>
<td>getRemoteUser</td>
<td/>
</tr>
-<tr>
<td>get-context-path</td>
<td>/cocoon21</td>
<td>getContextPath</td>
<td>/cocoon21</td>
</tr>
-<tr>
<td>get-path-info</td>
<td/>
<td>getPathInfo</td>
<td/>
</tr>
-<tr>
<td>get-server-name</td>
<td>localhost</td>
<td>getServerName</td>
<td>localhost</td>
</tr>
-<tr>
<td>get-server-port</td>
<td>8080</td>
<td>getServerPort</td>
<td>8080</td>
</tr>
-<tr>
<td>get-method</td>
<td>GET</td>
<td>getMethod</td>
<td>GET</td>
</tr>
-<tr>
<td>get-query-string</td>
<td>cocoon-view=pretty-content</td>
<td>getQueryString</td>
<td>cocoon-view=pretty-content</td>
</tr>
-<tr>
<td>get-protocol</td>
<td>HTTP/1.1</td>
<td>getProtocol</td>
<td>HTTP/1.1</td>
</tr>
-<tr>
<td>get-remote-host</td>
<td>140.211.11.204</td>
<td>getRemoteHost</td>
<td>140.211.11.204</td>
</tr>
-<tr>
<td>is-secure</td>
<td>false</td>
<td>isSecure</td>
<td>false</td>
</tr>
-<tr>
<td>get-servlet-path</td>
<td>/samples/blocks/xsp/java/request</td>
<td>getServletPath</td>
<td>/samples/blocks/xsp/java/request</td>
</tr>
-<tr>
<td>get-user-principal</td>
<td/>
<td>getUserPrincipal</td>
<td/>
</tr>
-<tr>
<td>get-auth-type</td>
<td/>
<td>getAuthType</td>
<td/>
</tr>
-<tr>
<td>is-user-in-role</td>
<td>false</td>
<td>isUserInRole</td>
<td>false</td>
</tr>
-<tr>
<td>get-requested-session-id</td>
<td/>
<td>getRequestedSessionId</td>
<td/>
</tr>
-<tr>
<td>get-session-id</td>
<td>DC110648A78B6B54978EAFC860FF5D01</td>
<td>getSession.getId</td>
<td>DC110648A78B6B54978EAFC860FF5D01</td>
</tr>
</table>
<h1>xsp-request logicsheet output (as xml)</h1>
-<textarea cols="100" rows="30">
get-uri
<xsp-request:uri>/cocoon21/samples/blocks/xsp/java/request</xsp-request:uri>
get-sitemap-uri
<xsp-request:sitemap-uri>java/request</xsp-request:sitemap-uri>
get-scheme
<xsp-request:scheme>http</xsp-request:scheme>
get-character-encoding
<xsp-request:character-encoding>UTF-8</xsp-request:character-encoding>
get-content-length
<xsp-request:content-length>-1</xsp-request:content-length>
get-content-type
<xsp-request:content-type/>
get-locale
-<xsp-request:locale>
<xsp-request:language>en</xsp-request:language>
<xsp-request:country>US</xsp-request:country>
<xsp-request:variant/>
</xsp-request:locale>
get-locales
-<xsp-request:locales>
-<xsp-request:locale>
<xsp-request:language>en</xsp-request:language>
<xsp-request:country>US</xsp-request:country>
<xsp-request:variant/>
</xsp-request:locale>
-<xsp-request:locale>
<xsp-request:language>en</xsp-request:language>
<xsp-request:country>GB</xsp-request:country>
<xsp-request:variant/>
</xsp-request:locale>
-<xsp-request:locale>
<xsp-request:language>en</xsp-request:language>
<xsp-request:country/>
<xsp-request:variant/>
</xsp-request:locale>
</xsp-request:locales>
get-parameter
<xsp-request:parameter name="param">null</xsp-request:parameter>
get-parameter with default
<xsp-request:parameter name="param">default</xsp-request:parameter>
get-parameter-values
<xsp-request:parameter-values name="param"/>
get-parameter-names
-<xsp-request:parameter-names>
<xsp-request:name>cocoon-view</xsp-request:name>
</xsp-request:parameter-names>
get-header accept
<xsp-request:header name="accept">text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8</xsp-request:header>
get-header user-agent
<xsp-request:header name="user-agent">CCBot/2.0</xsp-request:header>
get-header-names
-<xsp-request:header-names>
<xsp-request:name>host</xsp-request:name>
<xsp-request:name>accept-encoding</xsp-request:name>
<xsp-request:name>user-agent</xsp-request:name>
<xsp-request:name>accept-language</xsp-request:name>
<xsp-request:name>accept</xsp-request:name>
<xsp-request:name>x-forwarded-for</xsp-request:name>
<xsp-request:name>x-forwarded-host</xsp-request:name>
<xsp-request:name>x-forwarded-server</xsp-request:name>
<xsp-request:name>connection</xsp-request:name>
</xsp-request:header-names>
get-int-header - no sample get-date-header - no sample get-headers
-<xsp-request:header-values>
<xsp-request:value>en-us,en-gb,en;q=0.7,*;q=0.3</xsp-request:value>
</xsp-request:header-values>
get-attribute attr
<xsp-request:attribute name="attr">Test Attribute Value!!!</xsp-request:attribute>
get-attribute-names
-<xsp-request:attribute-names>
<xsp-request:name>attr</xsp-request:name>
</xsp-request:attribute-names>
get-requested-url
<xsp-request:requested-url>http://localhost:8080/cocoon21/samples/blocks/xsp/java/request</xsp-request:requested-url>
get-remote-address
<xsp-request:remote-address>140.211.11.204</xsp-request:remote-address>
get-remote-user
<xsp-request:remote-user/>
get-context-path
<xsp-request:context-path>/cocoon21</xsp-request:context-path>
get-path-info
<xsp-request:path-info/>
get-server-name
<xsp-request:server-name>localhost</xsp-request:server-name>
get-server-port
<xsp-request:server-port>8080</xsp-request:server-port>
get-method
<xsp-request:method>GET</xsp-request:method>
get-query-string
<xsp-request:query-string>cocoon-view=pretty-content</xsp-request:query-string>
get-protocol
<xsp-request:protocol>HTTP/1.1</xsp-request:protocol>
get-remote-host
<xsp-request:remote-host>140.211.11.204</xsp-request:remote-host>
is-secure
<xsp-request:secure>false</xsp-request:secure>
get-path-translated
<xsp-request:path-translated/>
get-servlet-path
<xsp-request:servlet-path>/samples/blocks/xsp/java/request</xsp-request:servlet-path>
get-user-principal
<xsp-request:user-principal/>
get-auth-type
<xsp-request:auth-type/>
is-user-in-role
<xsp-request:user-in-role role="admin">false</xsp-request:user-in-role>
get-requested-session-id
<xsp-request:requested-session-id/>
get-session-id
<xsp-request:session-id>DC110648A78B6B54978EAFC860FF5D01</xsp-request:session-id>
</textarea>
<h2>Links</h2>
<a href="request?param=value&a=b&x=y">Get</a>
<br/>
-<form method="post" action="request">
<input name="param"/>
<input type="submit" value="Post"/>
</form>
</page>