Class AdditionalServlets
- java.lang.Object
-
- org.apache.pulsar.broker.web.plugin.servlet.AdditionalServlets
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class AdditionalServlets extends java.lang.Object implements java.lang.AutoCloseableA collection of loaded additional servlets.
-
-
Constructor Summary
Constructors Constructor Description AdditionalServlets(java.util.Map<java.lang.String,AdditionalServletWithClassLoader> servlets)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()static AdditionalServletsload(PulsarConfiguration conf)Load the additional servlet for the given servlet name list.
-
-
-
Constructor Detail
-
AdditionalServlets
public AdditionalServlets(java.util.Map<java.lang.String,AdditionalServletWithClassLoader> servlets)
-
-
Method Detail
-
load
public static AdditionalServlets load(PulsarConfiguration conf) throws java.io.IOException
Load the additional servlet for the given servlet name list.- Parameters:
conf- the pulsar service configuration- Returns:
- the collection of additional servlet
- Throws:
java.io.IOException
-
close
public void close()
- Specified by:
closein interfacejava.lang.AutoCloseable
-
-