Examples of SimpleResource


Examples of com.bradmcevoy.http.SimpleResource

           
            if( path.endsWith( "index.html" ) ) {
                if( secureResource instanceof DigestResource ) {
                    return new SimpleDigestResource( "index.html", modDate, consolePageContent.getBytes(), "text/html", "console", (DigestResource) secureResource);
                } else {
                    return new SimpleResource( "index.html", modDate, consolePageContent.getBytes(), "text/html", "console", secureResource );
                }
            } else if( path.endsWith( "dojo.js" ) ) {
                if( secureResource instanceof DigestResource ) {
                    return new SimpleDigestResource( "dojo.js", modDate, dojoJsContent.getBytes(), "text/html", "console", (DigestResource) secureResource);
                } else {
                    return new SimpleResource( "dojo.js", modDate, dojoJsContent.getBytes(), "text/html", "console", secureResource );
                }
            } else if( path.endsWith( "console.json" ) ) {
                if( secureResource instanceof DigestResource ) {
                    return new DigestConsole( host, wrappedFactory, consoleName, (DigestResource) secureResource, modDate, mapOfFactories );
                } else {
View Full Code Here

Examples of com.sun.enterprise.transaction.api.SimpleResource

        }

        for (Map.Entry<EntityManagerFactory, SimpleResource> entry :
            getTxEntityManagerMap().entrySet()) {
           
            SimpleResource em = entry.getValue();
            if (em.isOpen()) {
                try {
                    em.close();
                } catch (Throwable th) {
                    if (_logger.isLoggable(Level.FINE)) {
                        _logger.log(Level.FINE, "Exception while closing em.", th);
                    }
                }
View Full Code Here

Examples of com.sun.enterprise.transaction.api.SimpleResource

        }

        for (Map.Entry<EntityManagerFactory, SimpleResource> entry :
            getTxEntityManagerMap().entrySet()) {
           
            SimpleResource em = entry.getValue();
            if (em.isOpen()) {
                try {
                    em.close();
                } catch (Throwable th) {
                    if (_logger.isLoggable(Level.FINE)) {
                        _logger.log(Level.FINE, "Exception while closing em.", th);
                    }
                }
View Full Code Here

Examples of org.beangle.packagekit.internal.SimpleResource

import org.beangle.packagekit.internal.SimpleResource;

public class MavenUtils {

  public static SimpleResource build(String id) {
    SimpleResource resource = new SimpleResource();
    String name = StringUtils.substringBeforeLast(id, "-");
    resource.setId(id);
    resource.setName(name);
    return resource;
  }
View Full Code Here

Examples of org.beangle.packagekit.internal.SimpleResource

@Test
public class MavenResolverTest {

  public void testResolve() {
    Resource resource = new SimpleResource("beangle-packagekit-1.0.0");
    Resolver resolver = new MavenResolver();
    List<Resource> requires = resolver.getRequires(resource);
    assertNotNull(requires);
    assertTrue(requires.size() == 1);
    Resource require = requires.get(0);
View Full Code Here

Examples of org.jfree.resourceloader.SimpleResource

          throw new ResourceCreationException("This is no 8Bit Encoding data");
        }
        final External8BitEncodingData encData = (External8BitEncodingData) ob;
        final External8BitEncodingCore encCore =
                new External8BitEncodingCore(encData);
        return new SimpleResource(data.getKey(), encCore, data.getVersion(manager));
      }
      finally
      {
        oin.close();
      }
View Full Code Here

Examples of org.jfree.resourceloader.SimpleResource

      }
      finally
      {
        stream.close();
      }
      return new SimpleResource (data.getKey(), properties, data.getVersion(manager));
    }
    catch (IOException e)
    {
      throw new ResourceLoadingException("Failed to load the properties file.",e);
    }
View Full Code Here

Examples of org.jfree.resourceloader.SimpleResource

          throws ResourceLoadingException
  {
    final long version = data.getVersion(caller);
    final Image image =
            Toolkit.getDefaultToolkit().createImage(data.getResource(caller));
    return new SimpleResource (data.getKey(), image, version);
  }
View Full Code Here

Examples of org.jfree.resourceloader.SimpleResource

          throws ResourceLoadingException
  {
    final long version = data.getVersion(caller);
    final Image image =
            Toolkit.getDefaultToolkit().createImage(data.getResource(caller));
    return new SimpleResource (data.getKey(), image, version);
  }
View Full Code Here

Examples of org.jfree.resourceloader.SimpleResource

          throws ResourceLoadingException
  {
    final long version = data.getVersion(caller);
    final Image image =
            Toolkit.getDefaultToolkit().createImage(data.getResource(caller));
    return new SimpleResource (data.getKey(), image, version);
  }
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.