Examples of Attachments


Examples of org.apache.wss4j.policy.model.Attachments

                    } catch (WSSecurityException e) {
                        ai.setNotAsserted(h.getNamespace() + ":" + h.getName() + " not + " + type);
                    }
                }
               
                Attachments attachments = p.getAttachments();
                if (attachments != null) {
                    try {
                        CoverageScope scope = CoverageScope.ELEMENT;
                        if (attachments.isContentSignatureTransform()) {
                            scope = CoverageScope.CONTENT;
                        }
                        CryptoCoverageUtil.checkAttachmentsCoverage(msg.getAttachments(), signed,
                                                                type, scope);
                    } catch (WSSecurityException e) {
View Full Code Here

Examples of org.apache.wss4j.policy.model.Attachments

                                                            head.getNamespace(),
                                                            "Element");
                signedParts.add(wep);
            }
           
            Attachments attachments = parts.getAttachments();
            if (attachments != null) {
                WSEncryptionPart wep = new WSEncryptionPart("cid:Attachments", "Element");
                signedParts.add(wep);
            }
        }
View Full Code Here

Examples of org.apache.wss4j.policy.model.Attachments

                WSEncryptionPart wep = new WSEncryptionPart(head.getName(),
                                                            head.getNamespace(),
                                                            "Element");
                signedParts.add(wep);
            }
            Attachments attachments = parts.getAttachments();
            if (attachments != null) {
                String modifier = "Element";
                if (attachments.isContentSignatureTransform()) {
                    modifier = "Content";
                }
                WSEncryptionPart wep = new WSEncryptionPart("cid:Attachments", modifier);
                signedParts.add(wep);
            }
View Full Code Here

Examples of org.codehaus.xfire.attachments.Attachments

        msg.setBody(STAXUtils.createXMLStreamReader(getResourceAsReader("GetPicture.xml")));
       
        // MTOM shouldn't work locally, but things should still work...
        InMessage res = invokeService(msg, HttpTransport.HTTP_BINDING);

        Attachments atts = res.getAttachments();
        Iterator parts = atts.getParts();
        assertTrue(parts.hasNext());
        Attachment att = (Attachment) parts.next();
       
        Document response = (Document) res.getProperty(RESPONSE);
        addNamespace("m", "http://xfire.codehaus.org/mtom");
View Full Code Here

Examples of org.codehaus.xfire.attachments.Attachments

                NormalizedMessage outMsg = exchange.getMessage("out");
                if (outMsg == null) {
                    outMsg = exchange.createMessage();
                    exchange.setMessage(outMsg, "out");
                }
                Attachments attachments = ctx.getCurrentMessage().getAttachments();
                if (attachments != null) {
                    for (Iterator it = attachments.getParts(); it.hasNext();) {
                        Attachment att = (Attachment) it.next();
                        outMsg.addAttachment(att.getId(), att.getDataHandler());
                    }
                }
                outMsg.setContent(new StringSource(out.toString(charSet)));
View Full Code Here

Examples of org.fakereplace.api.Attachments

                    buffer[j] = (byte) input.read();
                }
                replacedResources.put(resourceName, buffer);
            }

            final Attachments attachments = new Attachments();
            attachments.set(AttachmentKeys.DEPLOYMENT_NAME, archiveName);

            Agent.redefine(classDefinitions.toArray( new ClassDefinition[classDefinitions.size()]), addedClassList.toArray(new AddedClass[addedClassList.size()]), attachments);
            CurrentEnvironment.getEnvironment().updateResource(archiveName, replacedResources);
            output.writeInt(0);
        } catch (Exception e) {
View Full Code Here

Examples of org.jboss.deployers.spi.attachments.Attachments

      if (context == null)
         throw new IllegalArgumentException("Null context");

      MutableAttachments mutable;
     
      Attachments attachments = context.getPredeterminedManagedObjects();

      // Nothing predetermined yet
      if (attachments == null)
      {
         mutable = AttachmentsFactory.createMutableAttachments();
         context.setPredeterminedManagedObjects(mutable);
      }
      // Some predetermined but needs to be made mutable
      else if (attachments instanceof MutableAttachments == false)
      {
         mutable = AttachmentsFactory.createMutableAttachments();
         Map<String, Object> map = attachments.getAttachments();
         if (map != null)
            mutable.setAttachments(map);
         context.setPredeterminedManagedObjects(mutable);
      }
      else
View Full Code Here

Examples of org.jboss.deployers.spi.attachments.Attachments

               context.addChild(childContext);
               childContext.setParent(context);

               applyContextInfo(childContext, child);

               Attachments attachments = child.getPredeterminedManagedObjects();
               if (attachments != null)
               {
                  StructureMetaData childStructure = attachments.getAttachment(StructureMetaData.class);
                  if (childStructure != null)
                     populateContext(childContext, childStructure);
               }
            }
         }
View Full Code Here

Examples of org.jboss.deployers.spi.attachments.Attachments

    * @param contextInfo the contextInfo
    * @throws Exception for any error
    */
   protected void applyContextInfo(DeploymentContext context, ContextInfo contextInfo) throws Exception
   {
      Attachments attachments = contextInfo.getPredeterminedManagedObjects();
      if (attachments != null)
         context.setPredeterminedManagedObjects(attachments);

      context.setRelativeOrder(contextInfo.getRelativeOrder());
      applyComparator(context, contextInfo);
View Full Code Here

Examples of org.jboss.deployers.spi.attachments.Attachments

      if (context == null)
         throw new IllegalArgumentException("Null context");

      MutableAttachments mutable;
     
      Attachments attachments = context.getPredeterminedManagedObjects();

      // Nothing predetermined yet
      if (attachments == null)
      {
         mutable = AttachmentsFactory.createMutableAttachments();;
         context.setPredeterminedManagedObjects(mutable);
      }
      // Some predetermined but needs to be made mutable
      else if (attachments instanceof MutableAttachments == false)
      {
         mutable = AttachmentsFactory.createMutableAttachments();
         Map<String, Object> map = attachments.getAttachments();
         if (map != null)
            mutable.setAttachments(map);
         context.setPredeterminedManagedObjects(mutable);
      }
      else
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.