Interface ServletConfigurator
public interface ServletConfigurator
Type for server configuration.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceGeneric configuration item.static enumSource of a configuration item: From a web.xml, web-fragment.xml or from annotations.static interface -
Method Summary
Modifier and TypeMethodDescriptionvoidaddErrorMessage(String errorMessage) voidaddToModuleCache(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) booleancom.ibm.wsspi.adaptable.module.Containerintboolean<T> voidvalidateDuplicateConfiguration(String parentElementName, String elementName, T newValue, ServletConfigurator.ConfigItem<T> currentConfigItem) voidvalidateDuplicateDefaultErrorPageConfiguration(String newLocationValue, ServletConfigurator.ConfigItem<String> currentLocationItem) <T> voidvalidateDuplicateKeyValueConfiguration(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
-