Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * Copyright 2012 Red Hat, Inc. and/or its affiliates.
  *
  * Licensed under the Eclipse Public License version 1.0, available at
  * http://www.eclipse.org/legal/epl-v10.html
  */
 package org.jboss.forge.addon.javaee.servlet;
 
 import java.util.List;
import  org.jboss.forge.addon.facets.constraints.FacetConstraint;
import  org.jboss.forge.addon.facets.constraints.FacetConstraintType;
import  org.jboss.forge.addon.facets.constraints.FacetConstraints;
import  org.jboss.forge.addon.projects.Project;
import  org.jboss.forge.addon.projects.ProjectFacet;
import  org.jboss.forge.addon.projects.facets.WebResourcesFacet;
import  org.jboss.forge.addon.resource.DirectoryResource;
import  org.jboss.forge.addon.resource.Resource;
import  org.jboss.forge.addon.resource.ResourceFilter;
If installed, this Project supports features from the Servlet specification.

Author(s):
Lincoln Baxter, III
George Gastaldi
@SuppressWarnings("rawtypes")
@FacetConstraints({
         @FacetConstraint(value = WebResourcesFacet.class, type = FacetConstraintType.REQUIRED)
})
public interface ServletFacet<DESCRIPTOR extends WebAppCommonDescriptorextends JavaEEFacetConfigurable<DESCRIPTOR>,
         ProjectFacet
{
   
List all files in this Project's WebContent directory, recursively.
   List<Resource<?>> getResources();

   
List all files in this Project's WebContent directory, recursively, only if they match the given ResourceFilter.
   List<Resource<?>> getResources(final ResourceFilter filter);

   
Return a reference to the WEB-INF directory of this project.
   DirectoryResource getWebInfDirectory();
New to GrepCode? Check out our FAQ X