Codota Logo
CmsJspLoginBean.getResponse
Code IndexAdd Codota to your IDE (free)

How to use
getResponse
method
in
org.opencms.jsp.CmsJspLoginBean

Best Java code snippets using org.opencms.jsp.CmsJspLoginBean.getResponse (Showing top 4 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
OutputStreamWriter o =
  • Codota IconOutputStream out;new OutputStreamWriter(out)
  • Codota IconOutputStream out;String charsetName;new OutputStreamWriter(out, charsetName)
  • Codota IconHttpURLConnection connection;new OutputStreamWriter(connection.getOutputStream())
  • Smart code suggestions by Codota
}
origin: org.opencms/opencms-solr

/**
 * Logs a system user in to OpenCms.<p>
 * 
 * Note that if a login project name is provided, this project must exist,
 * otherwise the login is regarded as a failure even if the user data was correct.<p>
 * 
 * @param userName the users name
 * @param password the password
 * @param projectName the project to switch to after login (if null project is not switched)
 * @param redirectUri the URI to redirect to after login (if null the current URI is used)
 * 
 * @throws IOException in case redirect after login was not successful
 */
public void login(String userName, String password, String projectName, String redirectUri) throws IOException {
  login(userName, password, projectName);
  if (m_loginException == null) {
    if (redirectUri != null) {
      getResponse().sendRedirect(
        OpenCms.getLinkManager().substituteLink(getCmsObject(), redirectUri, null, true));
    } else {
      getResponse().sendRedirect(getFormLink());
    }
  }
}
origin: org.opencms/opencms-core

/**
 * Logs a system user in to OpenCms.<p>
 *
 * Note that if a login project name is provided, this project must exist,
 * otherwise the login is regarded as a failure even if the user data was correct.<p>
 *
 * @param userName the users name
 * @param password the password
 * @param projectName the project to switch to after login (if null project is not switched)
 * @param redirectUri the URI to redirect to after login (if null the current URI is used)
 *
 * @throws IOException in case redirect after login was not successful
 */
public void login(String userName, String password, String projectName, String redirectUri) throws IOException {
  login(userName, password, projectName);
  if (m_loginException == null) {
    if (redirectUri != null) {
      getResponse().sendRedirect(
        OpenCms.getLinkManager().substituteLink(getCmsObject(), redirectUri, null, true));
    } else {
      getResponse().sendRedirect(getFormLink());
    }
  }
}
origin: org.opencms/opencms-solr

  /**
   * Logs a user out, i.e. destroys the current users session,
   * after that the current page will be redirected to itself one time to ensure that
   * the users session is truly destroyed.<p>
   * 
   * @throws IOException if redirect after logout fails
   */
  public void logout() throws IOException {

    HttpSession session = getRequest().getSession(false);
    if (session != null) {
      session.invalidate();
    }
    // logout was successful
    if (LOG.isInfoEnabled()) {
      LOG.info(Messages.get().getBundle().key(
        Messages.LOG_LOGOUT_SUCCESFUL_3,
        getRequestContext().currentUser().getName(),
        getRequestContext().addSiteRoot(getRequestContext().getUri()),
        getRequestContext().getRemoteAddress()));
    }
    getResponse().sendRedirect(getFormLink());
  }
}
origin: org.opencms/opencms-core

  /**
   * Logs a user out, i.e. destroys the current users session,
   * after that the current page will be redirected to itself one time to ensure that
   * the users session is truly destroyed.<p>
   *
   * @throws IOException if redirect after logout fails
   */
  public void logout() throws IOException {

    String loggedInUserName = getRequestContext().getCurrentUser().getName();
    HttpSession session = getRequest().getSession(false);
    if (session != null) {
      session.invalidate();
      /* we need this because a new session might be created after this method,
       but before the session info is updated in OpenCmsCore.showResource. */
      getCmsObject().getRequestContext().setUpdateSessionEnabled(false);
    }
    // logout was successful
    if (LOG.isInfoEnabled()) {
      LOG.info(
        Messages.get().getBundle().key(
          Messages.LOG_LOGOUT_SUCCESFUL_3,
          loggedInUserName,
          getRequestContext().addSiteRoot(getRequestContext().getUri()),
          getRequestContext().getRemoteAddress()));
    }
    getResponse().sendRedirect(getFormLink());
  }
}
org.opencms.jspCmsJspLoginBeangetResponse

Popular methods of CmsJspLoginBean

  • getFormLink
    Returns the link to the form that contains the login element.
  • getCmsObject
  • getRequest
  • getRequestContext
  • init
  • link
  • login
    Logs a system user in to OpenCms. Note that if a login project name is provided, this project must e
  • logLoginException
    Logs any login exception.
  • logout
    Logs a user out, i.e. destroys the current users session, after that the current page will be redire

Popular in Java

  • Updating database using SQL prepared statement
  • requestLocationUpdates (LocationManager)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • runOnUiThread (Activity)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • PrintWriter (java.io)
    Prints formatted representations of objects to a text-output stream. This class implements all of th
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Stack (java.util)
    The Stack class represents a last-in-first-out (LIFO) stack of objects. It extends class Vector with
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Logger (org.slf4j)
    The main user interface to logging. It is expected that logging takes place through concrete impleme
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now