Interface ServletConfigurator
public interface ServletConfigurator
Type for server configuration.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
Generic configuration item.static enum
Source of a configuration item: From a web.xml, web-fragment.xml or from annotations.static interface
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addErrorMessage
(String errorMessage) void
addToModuleCache
(Class<?> owner, Object data) createConfigItem
(T value) createConfigItem
(T value, ServletConfigurator.MergeComparator<T> comparator) long
<T> Map<String,
ServletConfigurator.ConfigItem<T>> getConfigItemMap
(String key) <T> Set<T>
getContextSet
(String key) getFromModuleCache
(Class<?> owner) boolean
com.ibm.wsspi.adaptable.module.Container
int
boolean
<T> void
validateDuplicateConfiguration
(String parentElementName, String elementName, T newValue, ServletConfigurator.ConfigItem<T> currentConfigItem) void
validateDuplicateDefaultErrorPageConfiguration
(String newLocationValue, ServletConfigurator.ConfigItem<String> currentLocationItem) <T> void
validateDuplicateKeyValueConfiguration
(String parentElementName, String keyElementName, String keyElementValue, String valueElementName, T newValue, ServletConfigurator.ConfigItem<T> currentConfigItem)
-
Method Details
-
getModuleContainer
com.ibm.wsspi.adaptable.module.Container getModuleContainer() -
getFromModuleCache
-
addToModuleCache
-
getServletVersion
int getServletVersion() -
isMetadataComplete
boolean isMetadataComplete() -
getConfigSource
ServletConfigurator.ConfigSource getConfigSource() -
getLibraryURI
String getLibraryURI() -
getMetadataCompleted
boolean getMetadataCompleted() -
getWebAnnotations
WebAnnotations getWebAnnotations() -
getConfigItemMap
-
generateUniqueId
long generateUniqueId() -
getContextSet
-
createConfigItem
-
createConfigItem
<T> ServletConfigurator.ConfigItem<T> createConfigItem(T value, ServletConfigurator.MergeComparator<T> comparator) -
validateDuplicateConfiguration
<T> void validateDuplicateConfiguration(String parentElementName, String elementName, T newValue, ServletConfigurator.ConfigItem<T> currentConfigItem) -
validateDuplicateKeyValueConfiguration
<T> void validateDuplicateKeyValueConfiguration(String parentElementName, String keyElementName, String keyElementValue, String valueElementName, T newValue, ServletConfigurator.ConfigItem<T> currentConfigItem) -
validateDuplicateDefaultErrorPageConfiguration
void validateDuplicateDefaultErrorPageConfiguration(String newLocationValue, ServletConfigurator.ConfigItem<String> currentLocationItem) -
addErrorMessage
-
getContextRootFromServerConfig
String getContextRootFromServerConfig()- Returns:
- the context-root from
<web-ext> if specified. Otherwise null
-