Package freenet.clients.http

Examples of freenet.clients.http.RedirectException


      if(!mFreetalk.wotConnected())
        return new WoTIsMissingPage(webInterface, req, mFreetalk.wotOutdated(), l10n());
      // TODO: Secure log out against malicious links (by using POST with form password instead of GET)
      // At the moment it is just a link and unsecured i.e. no form password check etc.
      mSessionManager.deleteSession(context);
      throw new RedirectException(logIn);
    }
View Full Code Here


      try {
        OwnIdentity ownIdentity = mFreetalk.getIdentityManager().getOwnIdentity(request.getPartAsString("OwnIdentityID", 64));
        mSessionManager.createSession(ownIdentity.getID(), ctx);
      } catch(NoSuchIdentityException e) {
        throw new RedirectException(logIn);
      }

      writeTemporaryRedirect(ctx, "Login successful, redirecting to home page", Freetalk.PLUGIN_URI + "/");
    }
View Full Code Here

        super(myWebInterface, viewer, request, _baseL10n);
    }

    public void make() throws RedirectException {
        if (mOwnIdentity == null) {
            throw new RedirectException(logIn);
        }
       
        makeBreadcrumbs();
       
        if (mRequest.isPartSet("submit") && mRequest.getMethod().equals("POST")) {
View Full Code Here

    super(myWebInterface, viewer, request, _baseL10n);
  }

  public void make() throws RedirectException {
    if(mOwnIdentity == null)
      throw new RedirectException(logIn);

    makeBreadcrumbs();
   
    if(mRequest.isPartSet("ReallyDeleteEmptyBoards")) {
      final List<String> deletedBoards = mFreetalk.getMessageManager().deleteEmptyBoards();
View Full Code Here

    super(myWebInterface, viewer, request, _baseL10n);
  }

  public final void make() throws RedirectException {
    if(mOwnIdentity == null)
      throw new RedirectException(logIn);

    makeBreadcrumbs();
    makeBoardsList();
  }
View Full Code Here

    super(myWebInterface, viewer, request, _baseL10n);
  }

  public final void make() throws RedirectException {
    if(mOwnIdentity == null)
      throw new RedirectException(logIn);
    makeOwnIdentitiesBox();
    makeKnownIdentitiesBox();
  }
View Full Code Here

  private OwnIdentity getLoggedInOwnIdentity(ToadletContext context) throws RedirectException {
    try {
      Session session = mSessionManager.useSession(context);
     
      if(session == null)
        throw new RedirectException(logIn);
     
      return mFreetalk.getIdentityManager().getOwnIdentity(session.getUserID());
    } catch(NoSuchIdentityException e) {
      Logger.warning(this, "Session is invalid, the own identity was deleted already.", e);
      mSessionManager.deleteSession(context);
      throw new RedirectException(logIn);
    }
  }
View Full Code Here

    WebPage makeWebPage(HTTPRequest req, ToadletContext context) throws RedirectException {
      if(!mFreetalk.wotConnected())
        return new WoTIsMissingPage(webInterface, req, mFreetalk.wotOutdated(), l10n());
     
      if(!mSessionManager.sessionExists(context))
        throw new RedirectException(logIn);
     
      return new Welcome(webInterface, getLoggedInOwnIdentity(context), req, l10n());
    }
View Full Code Here

    super(myWebInterface, viewer, request, _baseL10n);
  }

  public final void make() throws RedirectException {
    if(mOwnIdentity == null) {
      throw new RedirectException(logIn);
    }
    makeWelcomeBox();
    makeOverviewBox();
    new BoardsPage(mWebInterface, mOwnIdentity, mRequest, l10n()).addToPage(mContentNode);
  }
View Full Code Here

    super(myWebInterface, viewer, request, _baseL10n);
  }

  public void make() throws RedirectException {
    if(mOwnIdentity == null) {
      throw new RedirectException(logIn);
    }
   
    String boardLanguage = "";
    String boardName = "";
   
View Full Code Here

TOP

Related Classes of freenet.clients.http.RedirectException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.