Examples of removeAttribute()


Examples of de.iritgo.aktera.authentication.UserEnvironment.removeAttribute()

      Context context = req.getContext();
      UserEnvironment userEnv = (UserEnvironment) context.get(UserEnvironment.CONTEXT_KEY);

      if (userEnv != null)
      {
        userEnv.removeAttribute(key);
      }
    }
    catch (ContextException x)
    {
    }
View Full Code Here

Examples of de.iritgo.aktera.model.ModelResponse.removeAttribute()

      } /* else we're still on a valid sequence */
      //ACR: Here is the merge...if a condition has been met where
      //multiple models are run in this "pass", they are each merged here.
      if (mergeResponses)
      {
        theResponse.removeAttribute("forward");
        theResponse.removeAttribute("stylesheet");
        theResponse = SequenceContext.mergeResponse(theResponse, currentResponse);
      }
      else
      {
View Full Code Here

Examples of de.odysseus.calyxo.base.test.TestRequest.removeAttribute()

  public void testExtensionAction() throws ConfigException {
    ControlModuleMapping mapping = new ControlModuleMapping(null, ".test");
    TestRequest request = new TestRequest();
    request.setAttribute(INCLUDE_SERVLET_PATH, "/action.test");
    request.removeAttribute(INCLUDE_PATH_INFO);
    assertEquals("/action", mapping.getAction(request));
  }

  public void testPrefixExtensionAction() throws ConfigException {
    ControlModuleMapping mapping = new ControlModuleMapping("/test", ".do");
View Full Code Here

Examples of de.odysseus.calyxo.control.base.ControlModuleContext.removeAttribute()

    ControlModuleContext context = new ControlModuleContext(config, mapping, null);

    assertNull(context.getAttribute("foo"));
    context.setAttribute("foo", "bar");
    assertSame("bar", context.getAttribute("foo"));
    context.removeAttribute("foo");
    assertNull(context.getAttribute("foo"));
  }

  public void testInitParams() throws ConfigException {
    HashMap params = new HashMap();
View Full Code Here

Examples of fitnesse.wiki.PageData.removeAttribute()

  public void testAttributeButtons() throws Exception {
    WikiPageUtil.addPage(root, PathParser.parse("NormalPage"), "");
    final WikiPage noButtonsPage = WikiPageUtil.addPage(root, PathParser.parse("NoButtonPage"), "");
    for (final String attribute : PageData.NON_SECURITY_ATTRIBUTES) {
      final PageData data = noButtonsPage.getData();
      data.removeAttribute(attribute);
      noButtonsPage.commit(data);
    }

    SimpleResponse response = requestPage("NormalPage");
    assertSubString(">Edit</a>", response.getContent());
View Full Code Here

Examples of flex.messaging.FlexSession.removeAttribute()

  
    public void removeAttribute(String name)
    {
        FlexSession session = FlexContext.getFlexSession();
        if (session != null)
            session.removeAttribute(name);
    }
   
    public Collection getAttributeNames()
    {
        Collection c = new ArrayList();
View Full Code Here

Examples of flex2.compiler.CompilerContext.removeAttribute()

    Context cx = context.getAscContext();
    symbolTable.perCompileData.handler = cx.getHandler();

    // run ConstantEvaluator
    cx.pushScope(node.frame);
    ConstantEvaluator analyzer = (ConstantEvaluator) context.removeAttribute("ConstantEvaluator");
    node.evaluate(cx, analyzer);
    cx.popScope();

    if (ThreadLocalToolkit.errorCount() > 0)
    {
View Full Code Here

Examples of freenet.clients.http.SessionManager.Session.removeAttribute()

   *            The Sone to set as currently logged in
   */
  public void setCurrentSone(ToadletContext toadletContext, Sone sone) {
    Session session = getCurrentSession(toadletContext);
    if (sone == null) {
      session.removeAttribute("Sone.CurrentSone");
    } else {
      session.setAttribute("Sone.CurrentSone", sone.getId());
    }
  }

View Full Code Here

Examples of io.undertow.server.session.Session.removeAttribute()

    }

    protected void handleRedirectBack(final HttpServerExchange exchange) {
        final Session session = Sessions.getSession(exchange);
        if (session != null) {
            final String location = (String) session.removeAttribute(LOCATION_ATTRIBUTE);
            if(location != null) {
                exchange.addDefaultResponseListener(new DefaultResponseListener() {
                    @Override
                    public boolean handleDefaultResponse(final HttpServerExchange exchange) {
                        FormAuthenticationMechanism.sendRedirect(exchange, location);
View Full Code Here

Examples of io.undertow.servlet.spec.ServletContextImpl.removeAttribute()

        Assert.assertEquals(ServletContextTestListener.servletContextAttributeEvent.getName(), "test");
        Assert.assertEquals(ServletContextTestListener.servletContextAttributeEvent.getValue(), "1");
        sc.setAttribute("test", "3");
        Assert.assertEquals(ServletContextTestListener.servletContextAttributeEvent.getName(), "test");
        Assert.assertEquals(ServletContextTestListener.servletContextAttributeEvent.getValue(), "2");
        sc.removeAttribute("test");
        Assert.assertEquals(ServletContextTestListener.servletContextAttributeEvent.getName(), "test");
        Assert.assertEquals(ServletContextTestListener.servletContextAttributeEvent.getValue(), "3");
    }

View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.