Examples of removeAttribute()


Examples of org.apache.jetspeed.portal.PortletInstance.removeAttribute()

                }
                // Remove duplicate parameters from psml
                if (psmlValue != null && psmlValue.equals(regValue))
                {
                    //System.out.println("removing attribute for [" + name + "]");
                    instance.removeAttribute(name);
                    madePsChange = true;
                }

            }
View Full Code Here

Examples of org.apache.jetspeed.security.SecurityAttributes.removeAttribute()

                        {
                            if (logger.isDebugEnabled())
                            {
                                logger.debug("Removing attribute "+principalAttr.getName()+" for principal "+principal.getName()+".");
                            }
                            principalAttrs.removeAttribute(principalAttr.getName());
                            updated = true;
                        }
                    }
                }
                else if (syncAll)
View Full Code Here

Examples of org.apache.jetspeed.services.statemanager.SessionState.removeAttribute()

    public void cleanupFromCustomization()
    {
        // get the customization state for this page
        SessionState customizationState = getPageSessionState();

        customizationState.removeAttribute("customize-stack");
        customizationState.removeAttribute("customize-paneName");
        customizationState.removeAttribute("customize-profile");
        //customizationState.removeAttribute("customize-type");
        customizationState.removeAttribute("customize-columns");
        customizationState.removeAttribute("customize-mode");
View Full Code Here

Examples of org.apache.mailet.Mail.removeAttribute()

        assertFalse("attributes initially empty", mail.getAttributeNames().hasNext());
        assertNull("not found on emtpy list", mail.getAttribute("test"));
        assertNull("no previous item with key", mail.setAttribute("testKey", "testValue"));
        assertEquals("item found", "testValue", mail.getAttribute("testKey"));
        assertTrue("has attribute", mail.hasAttributes());
        assertEquals("item removed", "testValue", mail.removeAttribute("testKey"));
        assertNull("item no longer found", mail.getAttribute("testKey"));
    }

}
View Full Code Here

Examples of org.apache.maven.doxia.sink.SinkEventAttributeSet.removeAttribute()

        if ( "figure".equals( divclass ) )
        {
            this.inFigure = true;
            SinkEventAttributeSet atts = new SinkEventAttributeSet( attribs );
            atts.removeAttribute( SinkEventAttributes.CLASS );
            sink.figure( atts );
        }
        else
        {
            visited = false;
View Full Code Here

Examples of org.apache.mina.common.IoSession.removeAttribute()

    public void onPreRemove(IoFilterChain parent, String name,
            NextFilter nextFilter) throws SSLException {
        IoSession session = parent.getSession();
        stopSSL(session);
        session.removeAttribute(NEXT_FILTER);
        session.removeAttribute(SSL_HANDLER);
    }

    // IoFilter impl.
    public void sessionClosed(NextFilter nextFilter, IoSession session)
View Full Code Here

Examples of org.apache.mina.core.session.IoSession.removeAttribute()

    @Override
    public void onPreRemove(IoFilterChain parent, String name,
            NextFilter nextFilter) throws SSLException {
        IoSession session = parent.getSession();
        stopSsl(session);
        session.removeAttribute(NEXT_FILTER);
        session.removeAttribute(SSL_HANDLER);
    }

    // IoFilter impl.
    @Override
View Full Code Here

Examples of org.apache.padaf.xmpbox.type.IntegerType.removeAttribute()

    integer.setAttribute(value2);
    Assert.assertEquals(value2, integer.getAttribute(value2
        .getQualifiedName()));

    integer.removeAttribute(value2.getQualifiedName());
    Assert
        .assertFalse(integer.containsAttribute(value2
            .getQualifiedName()));

    // Attribute with namespace Creation checking
View Full Code Here

Examples of org.apache.pluto.spi.optional.RequestAttributeService.removeAttribute()

    public void removeAttribute(String name) {
        ArgumentUtility.validateNotNull("attributeName", name);

        final OptionalContainerServices optionalContainerServices = container.getOptionalContainerServices();
        final RequestAttributeService requestAttributeService = optionalContainerServices.getRequestAttributeService();
        requestAttributeService.removeAttribute(this, this.getHttpServletRequest(), this.internalPortletWindow, name);
    }

    public String getRequestedSessionId() {
        return this.getHttpServletRequest().getRequestedSessionId();
    }
View Full Code Here

Examples of org.apache.shiro.session.Session.removeAttribute()


        //会话属性操作
        session.setAttribute("key", "123");
        Assert.assertEquals("123", session.getAttribute("key"));
        session.removeAttribute("key");
    }

}
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.