Package com.alibaba.citrus.service.resource.support

Examples of com.alibaba.citrus.service.resource.support.URLResource


        }

        Resource resource = null;

        if (resourceURL != null) {
            resource = new URLResource(resourceURL);
        }

        // ����webapp��Դ��������ҵ������Կ϶���Դ���ڣ�����Ҫ�ټ��������ԡ�
        // Ȼ����httpunit�����£�����������ܲ�����ѭ��
        // Ϊ�˱��������ͬʱ���һ���ļ��Ĵ����ԡ�
View Full Code Here


        }

        URL resourceURL = cl.getResource(resourceName);

        if (resourceURL != null) {
            return new URLResource(resourceURL);
        } else {
            return null;
        }
    }
View Full Code Here

        }

        public com.alibaba.citrus.service.resource.Resource getResource(ResourceLoaderContext context,
                                                                        Set<ResourceLoadingOption> options) {
            try {
                return new URLResource(locationHolder.get().getURL());
            } catch (IOException e) {
                fail();
                return null;
            }
        }
View Full Code Here

        }

        public com.alibaba.citrus.service.resource.Resource getResource(ResourceLoaderContext context,
                                                                        Set<ResourceLoadingOption> options) {
            try {
                return new URLResource(locationHolder.get().getURL());
            } catch (IOException e) {
                fail();
                return null;
            }
        }
View Full Code Here

        }

        Resource resource = null;

        if (resourceURL != null) {
            resource = new URLResource(resourceURL);
        }

        // 对于webapp资源,如果被找到,可以肯定资源存在,不需要再检查其存在性。
        // 然而在httpunit环境下,上述规则可能不被遵循。
        // 为了保险起见,同时检查一下文件的存在性。
View Full Code Here

        }

        URL resourceURL = cl.getResource(resourceName);

        if (resourceURL != null) {
            return new URLResource(resourceURL);
        } else {
            return null;
        }
    }
View Full Code Here

        }

        Resource resource = null;

        if (resourceURL != null) {
            resource = new URLResource(resourceURL);
        }

        // ����webapp��Դ��������ҵ������Կ϶���Դ���ڣ�����Ҫ�ټ��������ԡ�
        // Ȼ����httpunit�����£�����������ܲ�����ѭ��
        // Ϊ�˱��������ͬʱ���һ���ļ��Ĵ����ԡ�
View Full Code Here

        }

        URL resourceURL = cl.getResource(resourceName);

        if (resourceURL != null) {
            return new URLResource(resourceURL);
        } else {
            return null;
        }
    }
View Full Code Here

TOP

Related Classes of com.alibaba.citrus.service.resource.support.URLResource

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.