org.netbeans.modules.j2eeserver/4 1.89.0 1

org.netbeans.modules.j2ee.deployment.plugins.spi
Interface FindJSPServlet2

All Superinterfaces:
FindJSPServlet

public interface FindJSPServlet2
extends FindJSPServlet

Extends the functionality of FindJSPServlet by defining the package name of the compiled JSPs and the prefix of source path. In order to use it return implementation of this class from OptionalDeploymentManagerFactory.getFindJSPServlet(javax.enterprise.deploy.spi.DeploymentManager).

Since:
1.78

Method Summary
 String getServletBasePackageName(String moduleContextPath)
          Returns the package name of compiled JSPs.
 String getServletSourcePath(String moduleContextPath, String jspRelativePath)
          Returns the relative source of the JSP reported in class file.
 
Methods inherited from interface org.netbeans.modules.j2ee.deployment.plugins.spi.FindJSPServlet
getServletEncoding, getServletResourcePath, getServletTempDirectory
 

Method Detail

getServletBasePackageName

String getServletBasePackageName(String moduleContextPath)
Returns the package name of compiled JSPs.

Parameters:
moduleContextPath - the context path
Returns:
package name of compiled JSPs

getServletSourcePath

String getServletSourcePath(String moduleContextPath,
                            String jspRelativePath)
Returns the relative source of the JSP reported in class file. For example the JSP in web root is "index.jsp", but the server compile it as coming from "jsp_servlet/index.jsp". This method should return "jsp_servlet/index.jsp".

Parameters:
moduleContextPath - the context path
jspRelativePath - the relative path of the JSP
Returns:
prefix of the source path reported in class file

org.netbeans.modules.j2eeserver/4 1.89.0 1

Built on May 22 2012.  |  Portions Copyright 1997-2012 Oracle. All rights reserved.