Examples of Bundle


Examples of ca.uhn.fhir.model.api.Bundle

  public Object invokeClient(String theResponseMimeType, Reader theResponseReader, int theResponseStatusCode, Map<String, List<String>> theHeaders) throws IOException {
    IParser parser = createAppropriateParser(theResponseMimeType, theResponseReader, theResponseStatusCode);

    switch (getReturnType()) {
    case BUNDLE: {
      Bundle bundle = parser.parseBundle(theResponseReader);
      switch (getMethodReturnType()) {
      case BUNDLE:
        return bundle;
      case LIST_OF_RESOURCES:
        return bundle.toListOfResources();
      case RESOURCE:
        List<IResource> list = bundle.toListOfResources();
        if (list.size() == 0) {
          return null;
        } else if (list.size() == 1) {
          return list.get(0);
        } else {
View Full Code Here

Examples of com.aaspring.util.locale.Bundle

      while (keys.hasMoreElements()) {
        String key = keys.nextElement();
        Map<Locale, String> values = new LinkedHashMap<Locale, String>(
            bundles.size());
        for (int j = 0; j < bundles.size(); j++) {
          Bundle bundle = bundles.get(j);
          values.put(bundle.getBundleProps()
              .getFileAccessorProperties().getLocale(), bundle
              .getValue(key));
        }
        itemProcessor.processItem(new LocaleItem(key, values, lf));
      }
    }
View Full Code Here

Examples of com.addthis.bundle.core.Bundle

        FieldIndexMap fieldMap = createFieldIndexMap();

        try {
            long rows = Bytes.readLength(in);
            while (rows-- > 0) {
                Bundle row = result.createBundle();
                decodeBundle(row, in, fieldMap, classMap);
                result.append(row);
            }
        } catch (Exception ex) {
            ex.printStackTrace();
View Full Code Here

Examples of com.aragost.javahg.Bundle

        if (this.bundleFile == null) {
            this.bundleFile = Utils.createTempFile(".bundle");
            cmdAppend("--bundle", this.bundleFile.getPath());
        }
        HgInputStream stream = launchStream(src);
        Bundle bundle = new Bundle(getRepository().getBaseRepository(), this.bundleFile, true);
        List<Changeset> changesets = Changeset.readListFromStream(bundle.getOverlayRepository(), stream);
        if (changesets.isEmpty()) {
            bundle.close();
            return null;
        }
        bundle.init(changesets);
        return bundle;
    }
View Full Code Here

Examples of com.dotcms.publisher.bundle.bean.Bundle

                form.field("AUTH_TOKEN",
                    retriveKeyString(
                        PublicEncryptionFactory.decryptString(endpoint.getAuthKey().toString())));

                form.field("GROUP_ID", UtilMethods.isSet(endpoint.getGroupId()) ? endpoint.getGroupId() : endpoint.getId());
                Bundle b=APILocator.getBundleAPI().getBundleById(config.getId());
                form.field("BUNDLE_NAME", b.getName());
                form.field("ENDPOINT_ID", endpoint.getId());
                form.bodyPart(new FileDataBodyPart("bundle", bundle, MediaType.MULTIPART_FORM_DATA_TYPE));


                //Sending bundle to endpoint
View Full Code Here

Examples of com.dotcms.repackage.org.osgi.framework.Bundle

        String jar = request.getParameter( "jar" );
        String bundleId = request.getParameter( "bundleId" );

        //First uninstall the bundle
        Bundle bundle;
        try {
            try {
                bundle = OSGIUtil.getInstance().getBundleContext().getBundle( new Long( bundleId ) );
            } catch ( NumberFormatException e ) {
                bundle = OSGIUtil.getInstance().getBundleContext().getBundle( bundleId );
            }

            bundle.uninstall();
        } catch ( BundleException e ) {
            Logger.error( OSGIAJAX.class, "Unable to undeploy bundle [" + e.getMessage() + "]", e );
        }

        //Then move the bundle from the load folder to the undeployed folder
View Full Code Here

Examples of com.dubture.symfony.core.model.Bundle

    public static Bundle unpackBundle(String metadata) {

        try {
            JSONObject json = (JSONObject) parser.parse(metadata);
            Bundle bundle = new Bundle(null, (String) json.get(Bundle.NAME));
            bundle.setPath((String) json.get(Bundle.PATH));

            return bundle;
        } catch (ParseException e) {

            Logger.logException(e);
View Full Code Here

Examples of com.rackspacecloud.blueflood.inputs.handlers.wrappers.Bundle

            timerContext.stop();
        }
    }
   
    public static Bundle createBundle(String json) {
        Bundle bundle = new Gson().fromJson(json, Bundle.class);
        return bundle;
    }
View Full Code Here

Examples of com.volantis.shared.metadata.jpox.Bundle

    public void destroy() {
        persistence.destroy();
    }

    public Object persistObject(MetaDataObject object) {
        Bundle bundle = PersistenceConvertor.
            getDefaultInstance().convertToBundleDAO(object);
        return persistence.persistObject(bundle);
    }
View Full Code Here

Examples of edu.uga.galileo.voci.bo.Bundle

      collection.setActive(active);
      vbo = collection;
    }
    if (type == ContentType.BUNDLE)
    {
      Bundle bundle = new Bundle();
      bundle.setBundleId(-1);
      bundle.setProjectId(projectId);
      bundle.setActive(active);
      vbo = bundle;
    }
    if (type == ContentType.ITEM)
    {
      Item item = new Item();
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.