/** * Public no argument constructor must be available. */ public ReIndexJob () { // Save to avoid global scope access m_aSC = WebScopeManager.getGlobalScope ().getServletContext (); }
/** * Returns the name of the HTTP method with which this request was made, for * example, GET, POST, or PUT. Same as the value of the CGI variable * REQUEST_METHOD. * * @return a <code>String</code> specifying the name of the method with which * this request was made */ default String getMethod () { return getRequest ().getMethod (); }
/** * Check if this request uses a Cookie based session handling (meaning cookies * are enabled) or whether the session ID needs to be appended to a URL. * * @return <code>true</code> if the session ID is passed via cookies. */ default boolean areCookiesEnabled () { // Just check whether the session ID is appended to the URL or not return "a".equals (encodeURL ("a")); }
/** * Check if the login process is in progress * * @param aRequestScope * Request scope * @return <code>true</code> if it is in progress * @since 3.4.0 */ @OverrideOnDemand protected boolean isLoginInProgress (@Nonnull final IRequestWebScopeWithoutResponse aRequestScope) { return CLogin.REQUEST_ACTION_VALIDATE_LOGIN_CREDENTIALS.equals (aRequestScope.params () .getAsString (CLogin.REQUEST_PARAM_ACTION)); }
public boolean isChecked () { return getParams ().isCheckBoxChecked (getFieldName (), m_bDefaultValue); }
public boolean isChecked () { return getParams ().hasCheckBoxValue (getFieldName (), m_sValue, m_bDefaultValue); }
/** * Returns the name of the scheme used to make this request, for example, * <code>http</code>, <code>https</code>, or <code>ftp</code>. Different * schemes have different rules for constructing URLs, as noted in RFC 1738. * * @return a <code>String</code> containing the name of the scheme used to * make this request */ default String getScheme () { return getRequest ().getScheme (); }
/** * Returns the host name of the server to which the request was sent. It is * the value of the part before ":" in the <code>Host</code> header value, if * any, or the resolved server name, or the server IP address. * * @return a <code>String</code> containing the name of the server */ default String getServerName () { return getRequest ().getServerName (); }
/** * Returns the port number to which the request was sent. It is the value of * the part after ":" in the <code>Host</code> header value, if any, or the * server port where the client connection was accepted on. * * @return an integer specifying the port number */ default int getServerPort () { return getRequest ().getServerPort (); }
/** * Returns a boolean indicating whether this request was made using a secure * channel, such as HTTPS. * * @return a boolean indicating if the request was made using a secure channel */ default boolean isSecure () { return getRequest ().isSecure (); }
/** * Returns the Internet Protocol (IP) address of the client or last proxy that * sent the request. For HTTP servlets, same as the value of the CGI variable * <code>REMOTE_ADDR</code>. * * @return a <code>String</code> containing the IP address of the client that * sent the request */ default String getRemoteAddr () { return getRequest ().getRemoteAddr (); }
/** * Returns the Internet Protocol (IP) source port of the client or last proxy * that sent the request. * * @return an integer specifying the port number */ default int getRemotePort () { return getRequest ().getRemotePort (); }
/** * Returns the Internet Protocol (IP) port number of the interface on which * the request was received. * * @return an integer specifying the port number */ default int getLocalPort () { return getRequest ().getLocalPort (); }
/** * Returns the MIME type of the body of the request, or <code>null</code> if * the type is not known. For HTTP servlets, same as the value of the CGI * variable CONTENT_TYPE. * * @return a <code>String</code> containing the name of the MIME type of the * request, or null if the type is not known */ default String getContentType () { return getRequest ().getContentType (); }
/** * Returns the Internet Protocol (IP) address of the interface on which the * request was received. * * @return a <code>String</code> containing the IP address on which the * request was received. */ default String getLocalAddr () { return getRequest ().getLocalAddr (); }
/** * Checks whether the requested session ID came in as a cookie. * * @return <code>true</code> if the session ID came in as a cookie; otherwise, * <code>false</code> * @see #getSession */ default boolean isRequestedSessionIdFromCookie () { return getRequest ().isRequestedSessionIdFromCookie (); }
/** * Checks whether the requested session ID came in as part of the request URL. * * @return <code>true</code> if the session ID came in as part of a URL; * otherwise, <code>false</code> * @see #getSession */ default boolean isRequestedSessionIdFromURL () { return getRequest ().isRequestedSessionIdFromURL (); }
/** * Returns the host name of the Internet Protocol (IP) interface on which the * request was received. * * @return a <code>String</code> containing the host name of the IP on which * the request was received. */ default String getLocalName () { return getRequest ().getLocalName (); }
/** * Returns the query string that is contained in the request URL after the * path. This method returns <code>null</code> if the URL does not have a * query string. Same as the value of the CGI variable QUERY_STRING. * * @return a <code>String</code> containing the query string or * <code>null</code> if the URL contains no query string. The value is * not decoded by the container. */ default String getQueryString () { return ServletHelper.getRequestQueryString (getRequest ()); }
/** * Returns the length, in bytes, of the request body and made available by the * input stream, or -1 if the length is not known. For HTTP servlets, same as * the value of the CGI variable CONTENT_LENGTH. * * @return an integer containing the length of the request body or -1 if the * length is not known */ default long getContentLength () { return RequestHelper.getContentLength (getRequest ()); }