Examples of ResourceInfo


Examples of org.glassfish.resource.common.ResourceInfo

    public void deployResources(Collection<Resource> resources){
        for(Resource resource : resources){
            if(resource instanceof BindableResource){
                BindableResource bindableResource = (BindableResource)resource;
                if(isBindableResourceEnabled(bindableResource.getJndiName())){
                    ResourceInfo resourceInfo = new ResourceInfo(bindableResource.getJndiName());
                    resourcesBinder.deployResource(resourceInfo, resource);
                }
            } else if (resource instanceof ResourcePool) {
                // ignore, as they are loaded lazily
            } else{
View Full Code Here

Examples of org.glassfish.resourcebase.resources.api.ResourceInfo

     * {@inheritDoc}
     */
    public synchronized void deployResource(Object resource, String applicationName, String moduleName) throws Exception {
        ExternalJndiResource jndiRes =
                (ExternalJndiResource) resource;
        ResourceInfo resourceInfo = new ResourceInfo(jndiRes.getJndiName(), applicationName, moduleName);
        createExternalJndiResource(jndiRes, resourceInfo);
    }
View Full Code Here

Examples of org.linkedin.util.io.resource.ResourceInfo

        finally
        {
          fos.close();
        }

        ResourceInfo info = _resource.getInfo();

        _localFile = file;
        _resourceInfo = new StaticInfo(info.getContentLength(), info.getLastModified());
        _ioException = null;
      }
      finally
      {
        is.close();
View Full Code Here

Examples of org.sonatype.nexus.security.auth.ResourceInfo

    final Action action = Action.valueOf(getHttpMethodAction(request));

    final ClientInfo clientInfo =
        new ClientInfo(String.valueOf(subject.getPrincipal()),
            RemoteIPFinder.findIP((HttpServletRequest) request), "n/a");
    final ResourceInfo resInfo =
        new ResourceInfo("HTTP", ((HttpServletRequest) request).getMethod(), action,
            ((HttpServletRequest) request).getRequestURI());

    eventBus.post(new NexusAuthorizationEvent(this, clientInfo, resInfo, false));
  }
View Full Code Here

Examples of org.springframework.batch.admin.web.util.ResourceInfo

  private View standard;

  @Test
  public void testDefaultJsonView() throws Exception {
    List<ResourceInfo> resources = new ArrayList<ResourceInfo>();
    resources.add(new ResourceInfo("/local", RequestMethod.GET));
    resources.add(new ResourceInfo("/jobs/{jobName}.json", RequestMethod.GET, "foo"));
    model.put("resources", resources);
    model.put("baseUrl", "http://localhost:8080/springsource");
    standard.render(model, request, response);
    String content = response.getContentAsString();
    // System.err.println(content);
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.