Examples of Resources


Examples of org.apache.tomcat.Resources

     *
     * @param path The path to the desired resource.
     */
    public InputStream getResourceAsStream(String path) {

  Resources resources = context.getResources();
  if (resources == null)
      return (null);
  else
      return (resources.getResourceAsStream(path));

    }
View Full Code Here

Examples of org.apache.tools.ant.types.resources.Resources

     */
    public synchronized void add(ResourceCollection c) {
        if (c == null) {
            return;
        }
        resources = (resources == null) ? new Resources() : resources;
        resources.add(c);
    }
View Full Code Here

Examples of org.apache.wink.server.internal.log.Resources

        if (!LoggerFactory.getLogger(Resources.class).isTraceEnabled()) {
            /*
             * if just debug or higher is enabled, then log only user
             * applications
             */
            new Resources(deploymentConfiguration.getResourceRegistry()).log();
        }

        if (!LoggerFactory.getLogger(Providers.class).isTraceEnabled()) {
            /*
             * if just debug or higher is enabled, then log only user
             * applications
             */
            new Providers(deploymentConfiguration.getProvidersRegistry()).log();
        }

        RequestProcessor requestProcessor = new RequestProcessor(deploymentConfiguration);
        logger.trace("Creating request processor {} for servlet {}", requestProcessor, this); //$NON-NLS-1$

        if (LoggerFactory.getLogger(Resources.class).isTraceEnabled()) {
            /*
             * if full trace is enabled, then log everything
             */

            new Resources(deploymentConfiguration.getResourceRegistry()).log();
        }

        if (LoggerFactory.getLogger(Providers.class).isTraceEnabled()) {
            /*
             * if full trace is enabled, then log everything
View Full Code Here

Examples of org.exoplatform.services.rest.wadl.research.Resources

   /**
    * {@inheritDoc}
    */
   public Resources createResources()
   {
      return new Resources();
   }
View Full Code Here

Examples of org.glassfish.admin.amx.intf.config.Resources

            result.put(REASON_FAILED_KEY, "Habitat is null");
            return result;
        }

        // check pool name
        final Resources resources = getDomainRootProxy().child(Domain.class).getResources();

        final Map<String, JdbcConnectionPool> pools = resources.childrenMap(JdbcConnectionPool.class);
        final JdbcConnectionPool cfg = pools.get(poolName);
        if (cfg == null)
        {
            result.put(REASON_FAILED_KEY, "The JdbcConnectionPool \"" + poolName + "\" does not exist");
            return result;
View Full Code Here

Examples of org.jacoco.report.html.resources.Resources

      final Collection<ExecutionData> executionData) throws IOException {
    if (output == null) {
      throw new IllegalStateException("No report output set.");
    }
    final ReportOutputFolder root = new ReportOutputFolder(output);
    resources = new Resources(root);
    resources.copyResources();
    index = new ElementIndex(root);
    final GroupPage rootpage = new GroupPage(rootNode, null, root, this) {
      @Override
      protected String getElementStyle() {
View Full Code Here

Examples of org.jacoco.report.internal.html.resources.Resources

  @Before
  public void setup() throws IOException {
    output = new MemoryMultiReportOutput();
    root = new ReportOutputFolder(output);
    resources = new Resources(root);
    doc = new HTMLDocument(root.createFile("Test.html"), "UTF-8");
    doc.head().title();
    body = doc.body();
    table = new Table();
  }
View Full Code Here

Examples of org.jboss.testharness.impl.packaging.Resources

                    resources.put(resourceAnn.destination().replaceFirst("WEB-INF/classes/", ""), resource);
                }
            }

            if (clazz.isAnnotationPresent(Resources.class)) {
                Resources resourcesAnn = clazz.getAnnotation(Resources.class);
                for (Resource resourceAnn : resourcesAnn.value()) {
                    final URL resource = getResource(clazz, resourceAnn.source());
                    if (resource != null) {
                        resources.put(resourceAnn.destination().replaceFirst("WEB-INF/classes/", ""), resource);
                    }
                }
View Full Code Here

Examples of org.openswing.swing.internationalization.java.Resources

        pstmt.close();
      }


      ServerResourcesFactory factory = (ServerResourcesFactory)context.getAttribute(Controller.RESOURCES_FACTORY);
      Resources resources = factory.getResources(userSessionPars.getLanguageId());
      String title = callOutType.getDescriptionSYS10();
      String y = resources.getResource("nr");
      String x = resources.getResource("months");
      String opened = resources.getResource("opened");
      String closed = resources.getResource("closed");
      if (month!=null)
        x = resources.getResource("days");
      byte[] graph = calloutRequestsGraph(openedRows,closedRows,title,x,y,opened,closed);
      return new VOResponse(graph);
    }
    catch (Throwable ex) {
      Logger.error(userSessionPars.getUsername(),this.getClass().getName(),"executeCommand","Error while fetching data",ex);
View Full Code Here

Examples of org.openswing.swing.internationalization.java.Resources

    HashMap map = (HashMap)inputPar;
    try {

      // retrieve internationalization settings (Resources object)...
      ServerResourcesFactory factory = (ServerResourcesFactory)context.getAttribute(Controller.RESOURCES_FACTORY);
      Resources resources = factory.getResources(userSessionPars.getLanguageId());
      String t1 = resources.getDateMask(Consts.TYPE_DATE);
      String t2 = resources.getResource("endorse vat from register");
      String t3 = resources.getResource("period");

      VatRegisters bean = (VatRegisters)JAIOBeanFactory.getInstance().getBean(VatRegisters.class);
      Response answer = bean.vatEndorse(map,t1,t2,t3,((JAIOUserSessionParameters)userSessionPars).getServerLanguageId(),userSessionPars.getUsername());

      return answer;
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.