Package org.stringtree.fetcher

Examples of org.stringtree.fetcher.PeelbackFetcher


                String type = mimetype(leaf);
                req.put(HTTPConstants.RESPONSE_CONTENT_TYPE, type);
                res.write((byte[])file);
            } else {
                Object application = common.getObject(MojasefConstants.HTTP_APPLICATION);
                Mojasef.delegateAndExpand(res, new FetcherStringFinder(new PeelbackFetcher(context)), application, dfl);
            }
        } catch (IOException e) {
            e.printStackTrace();
        } finally {
            res.finish();
View Full Code Here


    }

    @SuppressWarnings("unchecked")
    private void setApplicationContext() {
        Repository original = realRepository();
        Fetcher peelback = new PeelbackFetcher(original);
        Object object = peelback.getObject("http.application.context");
        if (null != object) {
            if (object instanceof Fetcher) {
                setOther(new FallbackRepository((Fetcher)object, original));
            } else if (object instanceof Map) {
                setOther(new FallbackRepository(new MapFetcher((Map<String, Object>)object), original));
View Full Code Here

TOP

Related Classes of org.stringtree.fetcher.PeelbackFetcher

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.