|
What this is
Other links
The source code/* * Sun Public License Notice * * The contents of this file are subject to the Sun Public License * Version 1.0 (the "License"). You may not use this file except in * compliance with the License. A copy of the License is available at * http://www.sun.com/ * * The Original Code is NetBeans. The Initial Developer of the Original * Code is Sun Microsystems, Inc. Portions Copyright 1997-2004 Sun * Microsystems, Inc. All Rights Reserved. */ package org.netbeans.modules.j2ee.deployment.plugins.api; import java.io.File; import javax.enterprise.deploy.spi.TargetModuleID; /** This interface allows plugins to specify the location of servlets generated * for JSPs. * * @author Petr Jiricka */ public interface FindJSPServlet { /** Returns the temporary directory where the server writes servlets generated * from JSPs. The servlets placed in this directory must honor the Java * directory naming conventions, i.e. the servlet must be placed in subdirectories * of this directory corresponding to the servlet package name. * @param moduleContextPath web module for which the temporary directory is requested. * @return the root temp directory containing servlets generated from JSPs for this module. */ public File getServletTempDirectory(String moduleContextPath); /** Returns the resource path of the servlet generated for a particular JSP, relatively * to the main temporary directory. * @param moduleContextPath context path of web module in which the JSP is located. * @param jspResourcePath the path of the JSP for which the servlet is requested, e.g. * "pages/login.jsp". Never starts with a '/'. * @return the resource name of the servlet generated for the JSP in the module, e.g. * "org/apache/jsps/pages/login$jsp.java". Must never start with a '/'. * The servlet file itself does not need to exist at this point - * if this particular page was not compiled yet. */ public String getServletResourcePath(String moduleContextPath, String jspResourcePath); /** Returns the encoding of the generated servlet file. * @param moduleContextPath context path of web module in which the JSP is located. * @param jspResourcePath the path of the JSP for which the servlet is requested, e.g. * "pages/login.jsp". Never starts with a '/'. * @return the encoding of the servlet generated for the JSP in the module, * e.g. "UTF8". * The servlet file itself does not need to exist at this point - * if this particular page was not compiled yet. */ public String getServletEncoding(String moduleContextPath, String jspResourcePath); } |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.