当前位置: 首页>>代码示例>>Java>>正文


Java SlingPostProcessor类代码示例

本文整理汇总了Java中org.apache.sling.servlets.post.SlingPostProcessor的典型用法代码示例。如果您正苦于以下问题:Java SlingPostProcessor类的具体用法?Java SlingPostProcessor怎么用?Java SlingPostProcessor使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


SlingPostProcessor类属于org.apache.sling.servlets.post包,在下文中一共展示了SlingPostProcessor类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: process

import org.apache.sling.servlets.post.SlingPostProcessor; //导入依赖的package包/类
public void process(SlingHttpServletRequest request, List<Modification> changes) throws Exception {
    if (AssetsFolderPropertiesSupportRequest.isMarked(request)) {
        log.trace("Sending the the wrapped dam.folder.share request to the AEM Assets dam.folder.share PostOperation for final processing");

        final AssetsFolderPropertiesSupportRequest wrappedRequest = new AssetsFolderPropertiesSupportRequest(request, DAM_FOLDER_SHARE_OPERATION);

        folderShareHandler.run(wrappedRequest, new DummyPostResponse(), new SlingPostProcessor[]{});

        log.trace("Processed the the wrapped dam.folder.share request with the AEM Assets dam.folder.share PostOperation");
    }
}
 
开发者ID:Adobe-Consulting-Services,项目名称:acs-aem-commons,代码行数:12,代码来源:AssetsFolderPropertiesSupport.java

示例2: process

import org.apache.sling.servlets.post.SlingPostProcessor; //导入依赖的package包/类
@Test
public void process() throws Exception {
    assetsFolderPropertiesSupport.process(new AssetsFolderPropertiesSupport.AssetsFolderPropertiesSupportRequest(request, null), new ArrayList<>());

    verify(postOperation, times(1)).run(any(AssetsFolderPropertiesSupport.AssetsFolderPropertiesSupportRequest.class), any(PostResponse.class), any(SlingPostProcessor[].class));
}
 
开发者ID:Adobe-Consulting-Services,项目名称:acs-aem-commons,代码行数:7,代码来源:AssetsFolderPropertiesSupportTest.java

示例3: process_skips

import org.apache.sling.servlets.post.SlingPostProcessor; //导入依赖的package包/类
@Test
public void process_skips() throws Exception {
    assetsFolderPropertiesSupport.process(request, new ArrayList<>());

    verify(postOperation, never()).run(eq(request), any(PostResponse.class), any(SlingPostProcessor[].class));
}
 
开发者ID:Adobe-Consulting-Services,项目名称:acs-aem-commons,代码行数:7,代码来源:AssetsFolderPropertiesSupportTest.java


注:本文中的org.apache.sling.servlets.post.SlingPostProcessor类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。