Examples of removeAttribute()


Examples of org.apache.sling.api.SlingHttpServletRequest.removeAttribute()

          final Object newException = request
                    .getAttribute("javax.servlet.error.exception");

            // t==null means the attribute was not set.
            if ((newException != null) && (newException == t)) {
                request.removeAttribute("javax.servlet.error.exception");
            }

            // now clear the error code - to prevent double handling.
            request.removeAttribute("javax.servlet.error.status_code");
            request.removeAttribute("javax.servlet.error.request_uri");
View Full Code Here

Examples of org.apache.syncope.client.to.UserTO.removeAttribute()

                type = attr;
            }
        }
        assertNotNull(type);

        userTO.removeAttribute(type);

        MembershipTO membershipTO = new MembershipTO();
        membershipTO.setRoleId(8L);
        userTO.addMembership(membershipTO);
View Full Code Here

Examples of org.apache.syncope.common.to.UserTO.removeAttribute()

            if ("type".equals(attr.getSchema())) {
                type = attr;
            }
        }
        assertNotNull(type);
        userTO.removeAttribute(type);

        SyncopeClientException sce = null;
        try {
            userTO = createUser(userTO);
        } catch (SyncopeClientCompositeErrorException scce) {
View Full Code Here

Examples of org.apache.tapestry.IMarkupWriter.removeAttribute()

        mw.begin("span");
        mw.appendAttribute("class", "fred");
       
        assertTrue(mw.hasAttribute("class"));
       
        assertEquals(mw.removeAttribute("class").toString(), "fred");
       
        assertFalse(mw.hasAttribute("class"));
       
        mw.end();
       
View Full Code Here

Examples of org.apache.tapestry.IRequestCycle.removeAttribute()

        cycle.renderPage(builder);
        // only done to simulate a caught internal stale link / other exception that would cause a new renderPage() request
        expectLastCall().andThrow(new RedirectException("redir"));

        cycle.renderPage(builder);
        cycle.removeAttribute(TapestryUtils.PAGE_RENDER_SUPPORT_ATTRIBUTE);

        replay();

        try {
View Full Code Here

Examples of org.apache.tomcat.core.Context.removeAttribute()

    cm.addInterceptor( bi );
                ctxModules.addElement( bi );
      }
      cm.setNote"trustedLoader.currentContext", null );
      context.setClassLoader( null );
            context.removeAttribute("org.apache.tomcat.classloader");
  }
    }


    public void contextInit( Context ctx )
View Full Code Here

Examples of org.apache.tomcat.core.Request.removeAttribute()

  context.getContextManager().processRequest(realRequest);

  // unset "included" attribute if any - we may be in a servlet
  // included from another servlet,
  // in which case the attribute will create problems
  realRequest.removeAttribute( A_REQUEST_URI);
  realRequest.removeAttribute( A_SERVLET_PATH);

  // CM should have set the wrapper - call it
  Handler wr=realRequest.getHandler();
  if( wr!=null ) {
View Full Code Here

Examples of org.apache.tomcat.core.ServerSession.removeAttribute()


  if( username != null ) {
      // 401 with existing j_username - that means wrong credentials.
      // Next time we'll have a fresh start
      session.removeAttribute( "j_username");
      session.removeAttribute( "j_password");
      req.setAttribute("javax.servlet.error.message",
           errorPage );
      if( debug>0) log( "Redirecting to " + errorPage );
      contextM.handleStatus( req, res, 302 ); // redirect
View Full Code Here

Examples of org.apache.tools.ant.RuntimeConfigurable.removeAttribute()

            id = wrapper.getId();
            if (id == null) {
                throw new IllegalStateException(getTaskName() + " attribute 'id' unset");
            }
            wrapper.setAttribute("id", null);
            wrapper.removeAttribute("id");
            wrapper.setElementTag("augmented reference \"" + id + "\"");
        }
    }

    /**
 
View Full Code Here

Examples of org.apache.wiki.WikiPage.removeAttribute()

        engine.saveText( context, "test" );

        for( int i = 0; i < 5; i++ )
        {
            WikiPage p2 = (WikiPage)engine.getPage( NAME1 ).clone();
            p2.removeAttribute(WikiPage.CHANGENOTE);

            context.setPage( p2 );

            engine.saveText( context, "test"+i );
        }
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.