Class ServletInfo
- java.lang.Object
-
- org.apache.felix.http.base.internal.runtime.AbstractInfo<T>
-
- org.apache.felix.http.base.internal.runtime.WhiteboardServiceInfo<jakarta.servlet.Servlet>
-
- org.apache.felix.http.base.internal.runtime.ServletInfo
-
- All Implemented Interfaces:
Comparable<AbstractInfo<jakarta.servlet.Servlet>>
public class ServletInfo extends WhiteboardServiceInfo<jakarta.servlet.Servlet>
Provides registration information for aServlet, and is used to programmatically registerServlets.This class only provides information used at registration time, and as such differs slightly from
DTOs like,ServletDTO.
-
-
Constructor Summary
Constructors Constructor Description ServletInfo(String name, String pattern, Map<String,String> initParams)Constructor for Http ServiceServletInfo(ResourceInfo resource)ServletInfo(org.osgi.framework.ServiceReference<jakarta.servlet.Servlet> ref)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull StringgetClassName(@NotNull jakarta.servlet.Servlet servlet)Get the class name of the servletString[]getErrorPage()Map<String,String>getInitParameters()Returns an unmodifiable map of the init parameters.MultipartConfiggetMultipartConfig()StringgetName()String[]getPatterns()StringgetPrefix()@NotNull StringgetType()Get the type represented by this infobooleanisAsyncSupported()booleanisResource()booleanisSame(AbstractInfo<jakarta.servlet.Servlet> other)Compare two info objectsbooleanisValid()-
Methods inherited from class org.apache.felix.http.base.internal.runtime.WhiteboardServiceInfo
getContextSelection, getContextSelectionFilter
-
Methods inherited from class org.apache.felix.http.base.internal.runtime.AbstractInfo
compareTo, equals, getBooleanProperty, getInitParams, getRanking, getService, getServiceId, getServiceReference, getStringArrayProperty, getStringProperty, getTarget, hashCode, isEmpty, isEmpty, ungetService
-
-
-
-
Method Detail
-
isValid
public boolean isValid()
- Overrides:
isValidin classWhiteboardServiceInfo<jakarta.servlet.Servlet>
-
getName
public String getName()
-
getPatterns
public String[] getPatterns()
-
getErrorPage
public String[] getErrorPage()
-
isAsyncSupported
public boolean isAsyncSupported()
-
getInitParameters
public Map<String,String> getInitParameters()
Returns an unmodifiable map of the init parameters.- Returns:
-
isResource
public boolean isResource()
-
getPrefix
public String getPrefix()
-
getMultipartConfig
public MultipartConfig getMultipartConfig()
-
getType
@NotNull public @NotNull String getType()
Description copied from class:AbstractInfoGet the type represented by this info- Specified by:
getTypein classAbstractInfo<jakarta.servlet.Servlet>- Returns:
- The type
-
getClassName
@NotNull public @NotNull String getClassName(@NotNull @NotNull jakarta.servlet.Servlet servlet)
Get the class name of the servlet- Parameters:
servlet- The servlet- Returns:
- The class name
-
isSame
public boolean isSame(AbstractInfo<jakarta.servlet.Servlet> other)
Description copied from class:AbstractInfoCompare two info objects- Overrides:
isSamein classWhiteboardServiceInfo<jakarta.servlet.Servlet>
-
-