Examples of removeAttribute()


Examples of javax.servlet.http.HttpServletRequest.removeAttribute()

    expect(request.getSession()).andReturn(session);
    session.setAttribute("name2", "value2");
    context.setAttribute("name3", "value3");

    // 2.
    request.removeAttribute("name1");
    expect(request.getSession(false)).andReturn(session);
    session.removeAttribute("name2");
    context.removeAttribute("name3");

    // 3.
View Full Code Here

Examples of javax.servlet.http.HttpSession.removeAttribute()

      rowId = request.getParameterValues("marketingListID");
    } //end of else if statement (request.getParameterValues("marketingListID") != null)
  else if (session.getAttribute("marketingListID") != null)
  {
     row = (String) session.getAttribute("marketingListID");
     session.removeAttribute("marketingListID");
  } //end of else if statement (getAttribute("marketingListID") != null)   
  else if (request.getParameterValues("listid") != null)
  {
    rowId = request.getParameterValues("listid");
  } //end of else if statement (getAttribute("marketingListID") != null) 
View Full Code Here

Examples of javax.servlet.jsp.JspContext.removeAttribute()

                break;
        }
        try {
            worker.invoke(null);
        } finally {
            context.removeAttribute(DISABLED);
        }
    }

    public void setPersistentProperty(PersistentProperty persistentProperty) {
        this.persistentProperty = persistentProperty;
View Full Code Here

Examples of javax.servlet.jsp.PageContext.removeAttribute()

        try {
            pageContext.include(jspPath, true);
        } catch (ServletException e) {
            throw new JspException(e);
        } finally {
            pageContext.removeAttribute("field", REQUEST_SCOPE);
            pageContext.removeAttribute("attributeMetadata", REQUEST_SCOPE);
        }
    }

    protected void addAttribute(String name, Object value) {
View Full Code Here

Examples of javax.swing.text.MutableAttributeSet.removeAttribute()

        MutableAttributeSet att = config.getAttributeSet( attributeId );

        // make sure we don't add it twice
        if ( att.isDefined( id ) )
        {
            att.removeAttribute( id );
        }

        att.addAttribute( id, name );

        writeEOL();
View Full Code Here

Examples of javax.swing.text.SimpleAttributeSet.removeAttribute()

    private void checkWithoutlModel(final int offset, final String id,
                                    final String type) {
        elem = doc.getElement(id);
        MutableAttributeSet attrs = new SimpleAttributeSet();
        attrs.addAttributes(elem.getAttributes());
        attrs.removeAttribute(StyleConstants.ModelAttribute);
        doc.setCharacterAttributes(offset, 1, attrs, true);
   
        assertNull(elem.getAttributes().getAttribute(StyleConstants
                                                     .ModelAttribute));
        createFormView(id);
View Full Code Here

Examples of javax.xml.soap.SOAPBody.removeAttribute()

            SOAPEnvelope envelope = msg.getSOAPPart().getEnvelope();
            SOAPBody body = envelope.getBody();
            Name name = envelope.createName("MyAttr1");
            String value = "MyValue1";
            body.addAttribute(name, value);
            boolean b = body.removeAttribute(name);
            assertTrue("removeAttribute() did not return true", b);
            b = body.removeAttribute(name);
            assertFalse("removeAttribute() did not return false", b);
            assertNull(body.getAttributeValue(name));
        } catch (Exception e) {
View Full Code Here

Examples of javax.xml.soap.SOAPElement.removeAttribute()

            removeNSAttribute(ele, prefixes);
            for (String str : prefixes)
            {
               Attr attr = ele.getAttributeNode("xmlns:" + str);
               if (attr != null)
                  ele.removeAttribute("xmlns:" + str);

            }
         }

      }
View Full Code Here

Examples of net.floodlightcontroller.core.IOFSwitch.removeAttribute()

        }

        for (IOFSwitch sw : updated_switches) {
            // Set SWITCH_IS_CORE_SWITCH to it's inverse value
            if (sw.hasAttribute(IOFSwitch.SWITCH_IS_CORE_SWITCH)) {
                sw.removeAttribute(IOFSwitch.SWITCH_IS_CORE_SWITCH);
                if (log.isTraceEnabled()) {
                    log.trace("SWITCH_IS_CORE_SWITCH set to False for {}",
                              sw);
                }
                updates.add(new LDUpdate(sw.getId(),
View Full Code Here

Examples of net.sf.rej.java.attribute.Attributes.removeAttribute()

        }

        Attributes attrs = method.getAttributes();
        ExceptionsAttribute ea = new ExceptionsAttribute(exAttrNameIndex, this.cp, exceptionList);
        if (this.oldExAttr != null) {
          attrs.removeAttribute(this.oldExAttr);
        }
        attrs.addAttribute(ea);
    }

    public void undo() {
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.