managedObjectSource.addProperty(HttpSessionObjectManagedObjectSource.PROPERTY_CLASS_NAME, sectionClass.getName()); this.sectionClassManagedObject = managedObjectSource.addSectionManagedObject(objectName, ManagedObjectScope.PROCESS);
managedObjectSource.addProperty(HttpSessionObjectManagedObjectSource.PROPERTY_CLASS_NAME, sectionClass.getName()); this.sectionClassManagedObject = managedObjectSource.addSectionManagedObject(objectName, ManagedObjectScope.PROCESS);
officeServletContextMos.addProperty(OfficeServletContextManagedObjectSource.PROPERTY_SERVLET_CONTEXT_NAME, servletContextName); for (ContextParamModel contextParam : webApp.getContextParams()) { officeServletContextMos.addProperty( OfficeServletContextManagedObjectSource.PROPERTY_PREFIX_INIT_PARAMETER + contextParam.getName(), contextParam.getValue()); .addSectionManagedObject("OfficeServletContext", ManagedObjectScope.PROCESS); ManagedObjectDependency contextToServerDependency = officeServletContextMo .getManagedObjectDependency("SERVLET_SERVER"); .addProperty(OfficeServletContextManagedObjectSource.PROPERTY_PREFIX_FILE_EXTENSION_TO_MIME_TYPE + mimeMapping.getExtension(), mimeMapping.getMimeType()); String filterName = filter.getFilterName(); String filterClass = filter.getFilterClass().trim(); officeServletContextMos.addProperty( OfficeServletContextManagedObjectSource.PROPERTY_FILTER_INSTANCE_NAME_PREFIX + filterName, filterClass); for (InitParamModel initParam : filter.getInitParams()) { officeServletContextMos .addProperty(OfficeServletContextManagedObjectSource.PROPERTY_FILTER_INSTANCE_INIT_PREFIX + filterName + "." + initParam.getName(), initParam.getValue()); officeServletContextMos.addProperty( OfficeServletContextManagedObjectSource.PROPERTY_FILTER_MAPPING_INDEX_PREFIX + index, filterName); officeServletContextMos.addProperty( OfficeServletContextManagedObjectSource.PROPERTY_FILTER_MAPPING_URL_PREFIX + index, urlPattern);