Uses of Interface
org.craftercms.core.service.Context
Packages that use Context
Package
Description
-
Uses of Context in org.craftercms.core.processors
Methods in org.craftercms.core.processors with parameters of type Context -
Uses of Context in org.craftercms.core.processors.impl
Methods in org.craftercms.core.processors.impl with parameters of type ContextModifier and TypeMethodDescriptionprotected ItemIncludeDescriptorsProcessor.getItemToInclude(Context context, CachingOptions cachingOptions, String includeSrcPath) protected voidIncludeDescriptorsProcessor.includeDescriptors(Context context, CachingOptions cachingOptions, Item item) AbstractTaggingProcessor.process(Context context, CachingOptions cachingOptions, Item item) AttributeAddingProcessor.process(Context context, CachingOptions cachingOptions, Item item) FieldRenamingProcessor.process(Context context, CachingOptions cachingOptions, Item item) IncludeDescriptorsProcessor.process(Context context, CachingOptions cachingOptions, Item item) Replaces special include tags found in a descriptor document with the document tree of descriptors specified in these include tags.ItemProcessorPipeline.process(Context context, CachingOptions cachingOptions, Item item) Processes the givenItem, by calling a pipeline of processors.ItemUrlTransformingProcessor.process(Context context, CachingOptions cachingOptions, Item item) SkipAllItemProcessor.process(Context context, CachingOptions cachingOptions, Item item) TextMetaDataCollectionExtractingProcessor.process(Context context, CachingOptions cachingOptions, Item item) For every XPath query provided inmetaDataNodesXPathQueries, a list of nodes is selected and for each one of these nodes its text value is extracted and added to a list that is later put in the item's properties.TextMetaDataExtractingProcessor.process(Context context, CachingOptions cachingOptions, Item item) For every XPath query provided inmetaDataNodesXPathQueries, a single node is selected and its text value is extracted and put in the item's properties. -
Uses of Context in org.craftercms.core.processors.impl.template
Methods in org.craftercms.core.processors.impl.template with parameters of type ContextModifier and TypeMethodDescriptionTemplateProcessor.process(Context context, CachingOptions cachingOptions, Item item) Processes the content of certain nodes (found by theNodeScannerin the item's descriptor as templates, by compiling the node text templates through thetemplateCompilerand then processing the compiled template with a model returned bymodelFactory. -
Uses of Context in org.craftercms.core.service
Classes in org.craftercms.core.service that implement ContextMethods in org.craftercms.core.service that return ContextModifier and TypeMethodDescriptionContext.clone()ContextImpl.clone()ContentStoreService.getContext(String contextId) Returns the openContextfor the given ID, or null if no context found for the ID.ContentStoreService.getContext(String tag, String storeType, String rootFolderPath, boolean mergingOn, boolean cacheOn, int maxAllowedItemsInCache, boolean ignoreHiddenFiles) Returns a context with the specified parameters, if the context doesn't exist it will be created.Methods in org.craftercms.core.service with parameters of type ContextModifier and TypeMethodDescriptionvoidAdds a new scope to the cache for the given context.voidCacheService.clearScope(Context context) Clears the contents of the scope of the given context.booleanContentStoreService.destroyContext(Context context) Destroys the specified context, login out of any remote repository (if a login was issued) and destroying the cache scope associated to the context.booleanReturns true if the file or folder at the specified URL existsbooleanContentStoreService.exists(Context context, CachingOptions cachingOptions, String url) Returns true if the file or folder at the specified URL existsContentStoreService.findChildren(Context context, String url) Returns the children of the folder at the given url, returning null if the folder can't be found.ContentStoreService.findChildren(Context context, CachingOptions cachingOptions, String url, ItemFilter filter, ItemProcessor processor) Returns the children of the folder at the given url, returning null if the folder can't be found.ContentStoreService.findChildren(Context context, CachingOptions cachingOptions, String url, ItemFilter filter, ItemProcessor processor, boolean flatten) Returns the children of the folder at the given url, returning null if the folder can't be found.default ContentContentStoreService.findContent(Context context, String url) Returns the content of the file for the given url, returning null if not found.ContentStoreService.findContent(Context context, CachingOptions cachingOptions, String url) Returns the content of the file for the given url, returning null if not found.default ItemReturns the content store item for the given url, returning null if not found.default ItemContentStoreService.findItem(Context context, CachingOptions cachingOptions, String url, ItemProcessor processor) Returns the content store item for the given url, returning null if not found.ContentStoreService.findItem(Context context, CachingOptions cachingOptions, String url, ItemProcessor processor, boolean flatten) Returns the content store item for the given url, returning null if not found.default TreeReturns the folder at the given url as a tree, or null if the folder wasn't found.default TreeReturns the folder at the given url as a tree, or null if the folder wasn't found.default TreeContentStoreService.findTree(Context context, CachingOptions cachingOptions, String url, int depth, ItemFilter filter, ItemProcessor processor) Returns the folder at the given url as a tree, or null if the folder wasn't found.ContentStoreService.findTree(Context context, CachingOptions cachingOptions, String url, int depth, ItemFilter filter, ItemProcessor processor, boolean flatten) Returns the folder at the given url as a tree, or null if the folder wasn't found.Retrieves an item's value from the scope of the given context, or null if not found.ContentStoreService.getChildren(Context context, String url) Returns the children of the folder at the given url.ContentStoreService.getChildren(Context context, CachingOptions cachingOptions, String url, ItemFilter filter, ItemProcessor processor) Returns the children of the folder at the given url.ContentStoreService.getChildren(Context context, CachingOptions cachingOptions, String url, ItemFilter filter, ItemProcessor processor, boolean flatten) Returns the children of the folder at the given url.default ContentContentStoreService.getContent(Context context, String url) Returns the content of the file for the given url.ContentStoreService.getContent(Context context, CachingOptions cachingOptions, String url) Returns the content of the file for the given url.Retrieves an item from the scope of the given context, or null if not found.default ItemReturns the content store item for the given url.default ItemContentStoreService.getItem(Context context, CachingOptions cachingOptions, String url, ItemProcessor processor) Returns the content store item for the given url.ContentStoreService.getItem(Context context, CachingOptions cachingOptions, String url, ItemProcessor processor, boolean flatten) Returns the content store item for the given url.Collection<?>Returns a list of the keys of the items present in the scope of the given context.intReturns the quantity of items present in scope of the given context.CacheService.getStatistics(Context context) Returns the statistics for the scope of the given context.default TreeReturns the folder at the given url as a tree.default TreeReturns the folder at the given url as a tree.default TreeContentStoreService.getTree(Context context, CachingOptions cachingOptions, String url, int depth, ItemFilter filter, ItemProcessor processor) Returns the folder at the given url as a tree.ContentStoreService.getTree(Context context, CachingOptions cachingOptions, String url, int depth, ItemFilter filter, ItemProcessor processor, boolean flatten) Returns the folder at the given url as a tree.booleanReturns true if there's and item with the specified key in the scope of the given context.booleanReturns true if the scope of the given context exists.voidPuts an item in the scope of the given context.voidCacheService.put(Context context, Object key, Object value, CachingOptions cachingOptions, CacheLoader loader, Object... loaderParams) Puts and item in the scope of the given context.booleanRemoves an item from the scope of the given context.voidCacheService.removeScope(Context context) Removes the scope associated to the given contextbooleanReturns true if the specified context is still valid and usable. -
Uses of Context in org.craftercms.core.service.impl
Fields in org.craftercms.core.service.impl with type parameters of type ContextMethods in org.craftercms.core.service.impl that return ContextModifier and TypeMethodDescriptionContentStoreServiceImpl.getContext(String contextId) Returns the openContextfor the given ID, or null if no context found for the ID.ContentStoreServiceImpl.getContext(String tag, String storeType, String rootFolderPath, boolean mergingOn, boolean cacheOn, int maxAllowedItemsInCache, boolean ignoreHiddenFiles) Returns a context with the specified parameters, if the context doesn't exist it will be created.Methods in org.craftercms.core.service.impl with parameters of type ContextModifier and TypeMethodDescriptionvoidvoidCacheServiceImpl.clearScope(Context context) booleanContentStoreServiceImpl.destroyContext(Context context) Destroys the specified context, login out of any remote repository (if a login was issued) and destroying the cache scope associated to the context.protected abstract booleanAbstractCachedContentStoreService.doExists(Context context, CachingOptions cachingOptions, String url) booleanContentStoreServiceImpl.doExists(Context context, CachingOptions cachingOptions, String url) AbstractCachedContentStoreService.doFindChildren(Context context, CachingOptions cachingOptions, String url, ItemFilter filter, ItemProcessor processor, boolean flatten) ContentStoreServiceImpl.doFindChildren(Context context, CachingOptions cachingOptions, String url, Integer depth, ItemFilter filter, ItemProcessor processor, boolean flatten) Does the following: Retrieves the children from the underlying repository (without their descriptors). Filters the returned list ifItemFilter.runBeforeProcessing()returnstrue. CallsContentStoreService.getTree(Context, String)orContentStoreService.getItem(Context, String)for each item in the list (depending on whether the item is a folder or not, and ifdepthis not null), to obtain the merged and processed version of each item. Filters the processed list ifItemFilter.runAfterProcessing()returnstrue. Returns the final list of processed items.ContentStoreServiceImpl.doFindChildren(Context context, CachingOptions cachingOptions, String url, ItemFilter filter, ItemProcessor processor, boolean flatten) protected abstract ItemAbstractCachedContentStoreService.doFindItem(Context context, CachingOptions cachingOptions, String url, ItemProcessor processor) protected ItemContentStoreServiceImpl.doFindItem(Context context, CachingOptions cachingOptions, String url, ItemProcessor processor) Returns the content store item for the given url, returning null if not found.protected abstract TreeAbstractCachedContentStoreService.doFindTree(Context context, CachingOptions cachingOptions, String url, int depth, ItemFilter filter, ItemProcessor processor, boolean flatten) protected TreeContentStoreServiceImpl.doFindTree(Context context, CachingOptions cachingOptions, String url, int depth, ItemFilter filter, ItemProcessor processor, boolean flatten) protected ItemContentStoreServiceImpl.doMerging(Context context, CachingOptions cachingOptions, Item item) Executes merging for the specifiedItem: Gets theDescriptorMergeStrategyfor the item's descriptor from theDescriptorMergeStrategyResolver. Gets the actual descriptors to merge from the returned merge strategy. Retrieves the descriptor documents from the underlying repository. Merges the descriptor documents. Returns the item with the merged descriptor document.protected ItemContentStoreServiceImpl.doProcessing(Context context, CachingOptions cachingOptions, Item item, ItemProcessor additionalProcessor) Executes processing for the specifiedItem: Gets the mainItemProcessorfor the item from theItemProcessorResolver. Calls the main processor'sprocessmethod to process the item. If an additional processor was passed to this method, the additional processor is also called. Returns the processed item.booleanbooleanAbstractCachedContentStoreService.exists(Context context, CachingOptions cachingOptions, String url) AbstractCachedContentStoreService.findChildren(Context context, CachingOptions cachingOptions, String url, ItemFilter filter, ItemProcessor processor, boolean flatten) ContentStoreServiceImpl.findContent(Context context, CachingOptions cachingOptions, String url) AbstractCachedContentStoreService.findItem(Context context, CachingOptions cachingOptions, String url, ItemProcessor processor, boolean flatten) AbstractCachedContentStoreService.findTree(Context context, CachingOptions cachingOptions, String url, int depth, ItemFilter filter, ItemProcessor processor, boolean flatten) AbstractCachedContentStoreService.getChildren(Context context, CachingOptions cachingOptions, String url, ItemFilter filter, ItemProcessor processor, boolean flatten) ContentStoreServiceImpl.getChildrenInternal(Context context, CachingOptions cachingOptions, String url, ItemProcessor processor, boolean flatten) This method is meant to be overridden when the children need to be further processed/filteredContentStoreServiceImpl.getContent(Context context, CachingOptions cachingOptions, String url) Returns the content of the file for the given url.AbstractCachedContentStoreService.getItem(Context context, CachingOptions cachingOptions, String url, ItemProcessor processor, boolean flatten) Collection<?>intCacheServiceImpl.getStatistics(Context context) AbstractCachedContentStoreService.getTree(Context context, CachingOptions cachingOptions, String url, int depth, ItemFilter filter, ItemProcessor processor, boolean flatten) booleanbooleanvoidvoidCacheServiceImpl.put(Context context, Object key, Object value, CachingOptions cachingOptions, CacheLoader loader, Object... loaderParams) booleanvoidCacheServiceImpl.removeScope(Context context) boolean -
Uses of Context in org.craftercms.core.store
Methods in org.craftercms.core.store that return ContextModifier and TypeMethodDescriptionContentStoreAdapter.createContext(String id, String rootFolderPath, boolean mergingOn, boolean cacheOn, int maxAllowedItemsInCache, boolean ignoreHiddenFiles) Methods in org.craftercms.core.store with parameters of type ContextModifier and TypeMethodDescriptionvoidContentStoreAdapter.destroyContext(Context context) booleanContentStoreAdapter.exists(Context context, CachingOptions cachingOptions, String path) ContentStoreAdapter.findContent(Context context, CachingOptions cachingOptions, String path) ContentStoreAdapter.findItem(Context context, CachingOptions cachingOptions, String path, boolean withDescriptor) ContentStoreAdapter.findItems(Context context, CachingOptions cachingOptions, String path) boolean -
Uses of Context in org.craftercms.core.store.impl
Methods in org.craftercms.core.store.impl with parameters of type ContextModifier and TypeMethodDescriptionprotected abstract booleanAbstractCachedContentStoreAdapter.doExists(Context context, CachingOptions cachingOptions, String path) booleanAbstractFileBasedContentStoreAdapter.doExists(Context context, CachingOptions cachingOptions, String path) protected abstract ContentAbstractCachedContentStoreAdapter.doFindContent(Context context, CachingOptions cachingOptions, String path) protected ContentAbstractFileBasedContentStoreAdapter.doFindContent(Context context, CachingOptions cachingOptions, String path) protected abstract ItemAbstractCachedContentStoreAdapter.doFindItem(Context context, CachingOptions cachingOptions, String path, boolean withDescriptor) protected ItemAbstractFileBasedContentStoreAdapter.doFindItem(Context context, CachingOptions cachingOptions, String path, boolean withDescriptor) AbstractCachedContentStoreAdapter.doFindItems(Context context, CachingOptions cachingOptions, String path) AbstractFileBasedContentStoreAdapter.doFindItems(Context context, CachingOptions cachingOptions, String path) booleanAbstractCachedContentStoreAdapter.exists(Context context, CachingOptions cachingOptions, String path) AbstractCachedContentStoreAdapter.findContent(Context context, CachingOptions cachingOptions, String path) protected abstract FileAbstractFileBasedContentStoreAdapter.findFile(Context context, CachingOptions cachingOptions, String path) Returns theFileat the given path, returning null if not found.AbstractCachedContentStoreAdapter.findItem(Context context, CachingOptions cachingOptions, String path, boolean withDescriptor) AbstractCachedContentStoreAdapter.findItems(Context context, CachingOptions cachingOptions, String path) AbstractFileBasedContentStoreAdapter.getChildren(Context context, CachingOptions cachingOptions, File dir) Returns the list of children of the given directory.protected abstract ContentAbstractFileBasedContentStoreAdapter.getContent(Context context, CachingOptions cachingOptions, File file) Returns theContentfor the given file. -
Uses of Context in org.craftercms.core.store.impl.filesystem
Classes in org.craftercms.core.store.impl.filesystem that implement ContextModifier and TypeClassDescriptionclassExtension of context that adds properties used by theFileSystemContentStoreAdapter.Methods in org.craftercms.core.store.impl.filesystem that return ContextModifier and TypeMethodDescriptionFileSystemContentStoreAdapter.createContext(String id, String rootFolderPath, boolean mergingOn, boolean cacheOn, int maxAllowedItemsInCache, boolean ignoreHiddenFiles) Methods in org.craftercms.core.store.impl.filesystem with parameters of type ContextModifier and TypeMethodDescriptionvoidFileSystemContentStoreAdapter.destroyContext(Context context) protected FileFileSystemContentStoreAdapter.findFile(Context context, CachingOptions cachingOptions, String path) FileSystemContentStoreAdapter.getChildren(Context context, CachingOptions cachingOptions, File dir) protected ContentFileSystemContentStoreAdapter.getContent(Context context, CachingOptions cachingOptions, File file) boolean -
Uses of Context in org.craftercms.core.url
Methods in org.craftercms.core.url with parameters of type ContextModifier and TypeMethodDescriptionUrlTransformationEngine.transformUrl(Context context, String transformerName, String url) UrlTransformationEngine.transformUrl(Context context, CachingOptions cachingOptions, String transformerName, String url) UrlTransformer.transformUrl(Context context, CachingOptions cachingOptions, String url) -
Uses of Context in org.craftercms.core.url.impl
Methods in org.craftercms.core.url.impl with parameters of type ContextModifier and TypeMethodDescriptionprotected abstract StringAbstractCachedUrlTransformationEngine.doTransformUrl(Context context, CachingOptions cachingOptions, String transformerName, String url) protected StringUrlTransformationEngineImpl.doTransformUrl(Context context, CachingOptions cachingOptions, String transformerName, String url) protected StringShortToLongUrlTransformer.getLongName(Context context, CachingOptions cachingOptions, String folderPath, String shortName) protected StringShortToLongUrlTransformer.getLongUrl(Context context, CachingOptions cachingOptions, String shortUrl, boolean useShortNameIfLongNameNotFound) AbstractCachedUrlTransformationEngine.transformUrl(Context context, String transformerName, String url) AbstractCachedUrlTransformationEngine.transformUrl(Context context, CachingOptions cachingOptions, String transformerName, String url) AddContextPathUrlTransformer.transformUrl(Context context, CachingOptions cachingOptions, String url) AddDebugParamUrlTransformer.transformUrl(Context context, CachingOptions cachingOptions, String url) AddPrefixAndSuffixUrlTransformer.transformUrl(Context context, CachingOptions cachingOptions, String url) AddSchemeAndDomainAndServerPortUrlTransformer.transformUrl(Context context, CachingOptions cachingOptions, String url) AddServletPathUrlTransformer.transformUrl(Context context, CachingOptions cachingOptions, String url) ContentBundleShortToLongUrlTransformer.transformUrl(Context context, CachingOptions cachingOptions, String url) ExtractRequestAttributesUrlTransformer.transformUrl(Context context, CachingOptions cachingOptions, String url) LongToShortUrlTransformer.transformUrl(Context context, CachingOptions cachingOptions, String url) RemovePrefixAndSuffixUrlTransformer.transformUrl(Context context, CachingOptions cachingOptions, String url) ReplacePatternAllUrlTransformer.transformUrl(Context context, CachingOptions cachingOptions, String url) ReplaceSubstringUrlTransformer.transformUrl(Context context, CachingOptions cachingOptions, String url) ShortToLongUrlTransformer.transformUrl(Context context, CachingOptions cachingOptions, String url) UrlTransformerPipeline.transformUrl(Context context, CachingOptions cachingOptions, String url) -
Uses of Context in org.craftercms.core.util.cache
Methods in org.craftercms.core.util.cache with parameters of type ContextModifier and TypeMethodDescription<T> TCacheTemplate.getObject(Context context, org.craftercms.commons.lang.Callback<T> callback, Object... keyElements) Executes the template, using the specified callback to load the object to cache, if it's not already in the cache.<T> TCacheTemplate.getObject(Context context, CachingOptions cachingOptions, org.craftercms.commons.lang.Callback<T> callback, Object... keyElements) Executes the template, using the specified callback to load the object to cache, if it's not already in the cache.booleanReturns true if the cache contains an object for the specified key elements -
Uses of Context in org.craftercms.core.util.cache.impl
Methods in org.craftercms.core.util.cache.impl with parameters of type ContextModifier and TypeMethodDescriptionprotected <T> TDefaultCacheTemplate.doGet(Context context, org.craftercms.commons.lang.Callback<T> callback, Object key) protected <T> TDefaultCacheTemplate.doPut(Context context, CachingOptions cachingOptions, org.craftercms.commons.lang.Callback<T> callback, Object key, T obj) <T> TDefaultCacheTemplate.getObject(Context context, org.craftercms.commons.lang.Callback<T> callback, Object... keyElements) <T> TDefaultCacheTemplate.getObject(Context context, CachingOptions cachingOptions, org.craftercms.commons.lang.Callback<T> callback, Object... keyElements) <T> TNoopCacheTemplate.getObject(Context context, CachingOptions options, org.craftercms.commons.lang.Callback<T> callback, Object... keyElements) booleanprotected <T> TDefaultCacheTemplate.loadAndPutInCache(Context context, CachingOptions cachingOptions, org.craftercms.commons.lang.Callback<T> callback, Object key) protected <T> TNonLockingCacheTemplate.loadAndPutInCache(Context context, CachingOptions options, org.craftercms.commons.lang.Callback<T> callback, Object key) protected voidDefaultCacheTemplate.logGetFailure(Context context, org.craftercms.commons.lang.Callback<?> callback, Object key, Exception e) protected voidDefaultCacheTemplate.logPutFailure(Context context, org.craftercms.commons.lang.Callback<?> callback, Object key, Object obj, Exception e) -
Uses of Context in org.craftercms.core.xml.mergers
Methods in org.craftercms.core.xml.mergers with parameters of type ContextModifier and TypeMethodDescriptionDescriptorMergeStrategy.getDescriptors(Context context, CachingOptions cachingOptions, String mainDescriptorUrl, org.dom4j.Document mainDescriptorDom) Returns the list of descriptors in the order they should be merged, given the URI of the primary descriptor.DescriptorMergeStrategy.getDescriptors(Context context, CachingOptions cachingOptions, String mainDescriptorUrl, org.dom4j.Document mainDescriptorDom, boolean mainDescriptorOptional) Returns the list of descriptors in the order they should be merged, given the URI of the primary descriptor. -
Uses of Context in org.craftercms.core.xml.mergers.impl.strategies
Methods in org.craftercms.core.xml.mergers.impl.strategies with parameters of type ContextModifier and TypeMethodDescriptionprotected abstract voidAbstractInheritFromHierarchyMergeStrategy.addInheritedDescriptorsInFolder(Context context, CachingOptions cachingOptions, List<MergeableDescriptor> inheritedDescriptors, String folder, String mainDescriptorUrl, org.dom4j.Document mainDescriptorDom) protected voidCompositeInheritFromHierarchyMergeStrategy.addInheritedDescriptorsInFolder(Context context, CachingOptions cachingOptions, List<MergeableDescriptor> inheritedDescriptors, String folder, String mainDescriptorUrl, org.dom4j.Document mainDescriptorDom) protected voidInheritLevelsMergeStrategy.addInheritedDescriptorsInFolder(Context context, CachingOptions cachingOptions, List<MergeableDescriptor> inheritedDescriptors, String folder, String mainDescriptorUrl, org.dom4j.Document mainDescriptorDom) protected voidInheritVersionsMergeStrategy.addInheritedDescriptorsInFolder(Context context, CachingOptions cachingOptions, List<MergeableDescriptor> inheritedDescriptors, String folder, String mainDescriptorUrl, org.dom4j.Document mainDescriptorDom) protected org.dom4j.DocumentContentBundleMergeStrategy.getDescriptorDom(Context context, CachingOptions cachingOptions, String url) protected org.dom4j.DocumentExplicitParentMergeStrategy.getDescriptorDom(Context context, CachingOptions cachingOptions, String url) AbstractInheritFromHierarchyMergeStrategy.getDescriptors(Context context, CachingOptions cachingOptions, String mainDescriptorUrl, org.dom4j.Document mainDescriptorDom) AbstractInheritFromHierarchyMergeStrategy.getDescriptors(Context context, CachingOptions cachingOptions, String mainDescriptorUrl, org.dom4j.Document mainDescriptorDom, boolean mainDescriptorOptional) ContentBundleMergeStrategy.getDescriptors(Context context, CachingOptions cachingOptions, String mainDescriptorUrl, org.dom4j.Document mainDescriptorDom) ContentBundleMergeStrategy.getDescriptors(Context context, CachingOptions cachingOptions, String mainDescriptorUrl, org.dom4j.Document mainDescriptorDom, boolean mainDescriptorOptional) ExplicitParentMergeStrategy.getDescriptors(Context context, CachingOptions cachingOptions, String mainDescriptorUrl, org.dom4j.Document mainDescriptorDom) ExplicitParentMergeStrategy.getDescriptors(Context context, CachingOptions cachingOptions, String mainDescriptorUrl, org.dom4j.Document mainDescriptorDom, boolean mainDescriptorOptional) SingleFileMergeStrategy.getDescriptors(Context context, CachingOptions cachingOptions, String mainDescriptorUrl, org.dom4j.Document mainDescriptorDom) SingleFileMergeStrategy.getDescriptors(Context context, CachingOptions cachingOptions, String mainDescriptorUrl, org.dom4j.Document mainDescriptorDom, boolean mainDescriptorOptional)