Neolane - JavaScript API - v6.1.0

Unknown
HttpServletRequest

Represents the query of a client forwarded to a servlet.

There is only one instance of this address accessible via the request . variable.

Methods
getHeader Returns an attribute defined in the query header.
getParameter Returns the value of a query parameter.
getRemoteAddr Returns the IP address of the client or the last proxy to have sent a request.
getUTF8Parameter Returns the value (coded in UTF-8) of a parameter of the query.
getBodyAsString Returns the body of the query in the form of a string of characters using query coding.
forward Redirects the query towards another page without going via the client.
Properties
parameters Returns the query parameters.
cookies Returns the cookies of the query.
requestURI Returns the URL of the query.
queryString Returns the part of the query's URL which matches the parameters.
scheme Returns the name of the protocol used (HTTP, HTTPS, etc.) to access this page.
serverName Returns the name of the query server.
serverPort Returns the port number used to contact the server.
serverURL Returns the URL for accessing the server.
servletPath Returns the section of the query's URL which matches the servlet.
contextPath Returns the section of the query's URL which matches the context.
pathInfo Returns the additional information of the query's URL.
method Returns a string of characters containing the HTTP method used to call up this query (GET, HEAD, POST, etc.).
Features
Available in:
  • JSSP
  • WebApp

Table of contents

previous page start next page