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>>
Provides registration information for a
Servlet, and is used to programmatically register Servlets.
This class only provides information used at registration time, and as such differs slightly from DTOs like, ServletDTO.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor for Http ServiceServletInfo(ResourceInfo resource) ServletInfo(org.osgi.framework.ServiceReference<jakarta.servlet.Servlet> ref) -
Method Summary
Modifier and TypeMethodDescription@NotNull StringgetClassName(@NotNull jakarta.servlet.Servlet servlet) Get the class name of the servletString[]Returns an unmodifiable map of the init parameters.getName()String[]@NotNull StringgetType()Get the type represented by this infobooleanbooleanbooleanisSame(AbstractInfo<jakarta.servlet.Servlet> other) Compare two info objectsbooleanisValid()Methods inherited from class org.apache.felix.http.base.internal.runtime.WhiteboardServiceInfo
getContextSelection, getContextSelectionFilterMethods 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
-
Constructor Details
-
ServletInfo
public ServletInfo(org.osgi.framework.ServiceReference<jakarta.servlet.Servlet> ref) -
ServletInfo
-
ServletInfo
Constructor for Http Service- Parameters:
name- The servlet namepattern- The patterninitParams- The init parameters
-
-
Method Details
-
isValid
public boolean isValid()- Overrides:
isValidin classWhiteboardServiceInfo<jakarta.servlet.Servlet>
-
getName
-
getPatterns
-
getErrorPage
-
isAsyncSupported
public boolean isAsyncSupported() -
getInitParameters
Returns an unmodifiable map of the init parameters.- Returns:
- The init parameters
-
isResource
public boolean isResource() -
getPrefix
-
getMultipartConfig
-
getType
Description copied from class:AbstractInfoGet the type represented by this info- Specified by:
getTypein classAbstractInfo<jakarta.servlet.Servlet>- Returns:
- The type
-
getClassName
Get the class name of the servlet- Parameters:
servlet- The servlet- Returns:
- The class name
-
isSame
Description copied from class:AbstractInfoCompare two info objects- Overrides:
isSamein classWhiteboardServiceInfo<jakarta.servlet.Servlet>- Parameters:
other- The other info object- Returns:
trueif the objects are the same
-