Issue #894
This commit is contained in:
parent
d43b9af428
commit
0d6667dc9f
|
@ -336,7 +336,7 @@ public class ServletContextHandler extends ContextHandler
|
|||
}
|
||||
|
||||
/* ------------------------------------------------------------ */
|
||||
/** conveniance method to add a servlet.
|
||||
/** convenience method to add a servlet.
|
||||
*/
|
||||
public ServletHolder addServlet(String className,String pathSpec)
|
||||
{
|
||||
|
@ -344,15 +344,15 @@ public class ServletContextHandler extends ContextHandler
|
|||
}
|
||||
|
||||
/* ------------------------------------------------------------ */
|
||||
/** conveniance method to add a servlet.
|
||||
/** convenience method to add a servlet.
|
||||
*/
|
||||
public ServletHolder addServlet(Class<? extends Servlet> servlet,String pathSpec)
|
||||
{
|
||||
return getServletHandler().addServletWithMapping(servlet.getName(), pathSpec);
|
||||
return getServletHandler().addServletWithMapping(servlet, pathSpec);
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------ */
|
||||
/** conveniance method to add a servlet.
|
||||
/** convenience method to add a servlet.
|
||||
*/
|
||||
public void addServlet(ServletHolder servlet,String pathSpec)
|
||||
{
|
||||
|
@ -360,7 +360,7 @@ public class ServletContextHandler extends ContextHandler
|
|||
}
|
||||
|
||||
/* ------------------------------------------------------------ */
|
||||
/** conveniance method to add a filter
|
||||
/** convenience method to add a filter
|
||||
*/
|
||||
public void addFilter(FilterHolder holder,String pathSpec,EnumSet<DispatcherType> dispatches)
|
||||
{
|
||||
|
|
|
@ -963,7 +963,7 @@ public class ServletHandler extends ScopedHandler
|
|||
}
|
||||
|
||||
/* ------------------------------------------------------------ */
|
||||
/** conveniance method to add a servlet.
|
||||
/** convenience method to add a servlet.
|
||||
* @return The servlet holder.
|
||||
*/
|
||||
public ServletHolder addServletWithMapping (Class<? extends Servlet> servlet,String pathSpec)
|
||||
|
@ -976,7 +976,7 @@ public class ServletHandler extends ScopedHandler
|
|||
}
|
||||
|
||||
/* ------------------------------------------------------------ */
|
||||
/** conveniance method to add a servlet.
|
||||
/** convenience method to add a servlet.
|
||||
* @param servlet servlet holder to add
|
||||
* @param pathSpec servlet mappings for the servletHolder
|
||||
*/
|
||||
|
|
|
@ -329,7 +329,7 @@ public class ContainerLifeCycle extends AbstractLifeCycle implements Container,
|
|||
|
||||
/* ------------------------------------------------------------ */
|
||||
/** Add a managed lifecycle.
|
||||
* <p>This is a conveniance method that uses addBean(lifecycle,true)
|
||||
* <p>This is a convenience method that uses addBean(lifecycle,true)
|
||||
* and then ensures that the added bean is started iff this container
|
||||
* is running. Exception from nested calls to start are caught and
|
||||
* wrapped as RuntimeExceptions
|
||||
|
|
|
@ -93,7 +93,7 @@ public class Constraint implements Cloneable, Serializable
|
|||
|
||||
/* ------------------------------------------------------------ */
|
||||
/**
|
||||
* Conveniance Constructor.
|
||||
* convenience Constructor.
|
||||
*
|
||||
* @param name
|
||||
* @param role
|
||||
|
|
Loading…
Reference in New Issue