sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From k...@apache.org
Subject svn commit: r1730070 - /sling/site/trunk/content/documentation/the-sling-engine/request-parameters.mdtext
Date Fri, 12 Feb 2016 16:53:11 GMT
Author: kwin
Date: Fri Feb 12 16:53:11 2016
New Revision: 1730070

URL: http://svn.apache.org/viewvc?rev=1730070&view=rev
Log:
fix some formatting

Modified:
    sling/site/trunk/content/documentation/the-sling-engine/request-parameters.mdtext

Modified: sling/site/trunk/content/documentation/the-sling-engine/request-parameters.mdtext
URL: http://svn.apache.org/viewvc/sling/site/trunk/content/documentation/the-sling-engine/request-parameters.mdtext?rev=1730070&r1=1730069&r2=1730070&view=diff
==============================================================================
--- sling/site/trunk/content/documentation/the-sling-engine/request-parameters.mdtext (original)
+++ sling/site/trunk/content/documentation/the-sling-engine/request-parameters.mdtext Fri
Feb 12 16:53:11 2016
@@ -45,9 +45,18 @@ As of Sling Engine 2.1.0 the order or re
 
 Be warned: Only rely on request parameter ordering `multipart/form-data` POST requests without
a query part in the request URL.
 
-### Implications of Sling on Servlet API methods
+### Effects of Sling on Servlet API parameter methods
 
-From within Sling servlets/scripts you can no longer rely on the original semantics of the
Servlet API methods for dealing with parameters as `ServletRequest.getParameter(String)`,
`ServletRequest.getParameterValues(String)`, `ServletRequest.getParameterMap()`,`ServletRequest.getParameterNames()`,`ServletRequest.getParts()`,`ServletRequest.getPart(String)`
internally use the Sling parameter support (and therefore have the same implications on e.g.
encoding). You should preferably use the Sling methods `getRequestParameter*` instead.
+From within Sling servlets/scripts you can no longer rely on the original semantics of the
Servlet API methods for dealing with parameters as
+
+* `ServletRequest.getParameter(String)`
+* `ServletRequest.getParameterValues(String)`
+* `ServletRequest.getParameterMap()`
+* `ServletRequest.getParameterNames()`
+* `ServletRequest.getParts()` and
+* `ServletRequest.getPart(String)` 
+
+internally use the Sling parameter support (and therefore have the same implications on e.g.
encoding). You should preferably use the Sling methods `getRequestParameter*` instead.
 
 Calling `ServletRequest.getInputStream()` is not supported, nor relying on some 3rd party
libraries which are internally using that method like [Apache Commons Fileupload](https://commons.apache.org/proper/commons-fileupload/).
This is because the Sling parameter support needs exclusive access to the request's input
stream.
 



Mime
View raw message