Examples of PlanetRequest


Examples of org.apache.roller.planet.ui.rendering.util.PlanetRequest

       
        // parent gets to go first
        super.init(initData);
       
        // we expect the init data to contain a weblogRequest object
        PlanetRequest planetRequest = (PlanetRequest) initData.get("planetRequest");
        if(planetRequest == null) {
            throw new PlanetException("expected planetRequest from init data");
        }
       
        // PageModel only works on page requests, so cast planetRequest
View Full Code Here

Examples of org.apache.roller.planet.ui.rendering.util.PlanetRequest

       
        // parent gets to go first
        super.init(initData);
       
        // we expect the init data to contain a weblogRequest object
        PlanetRequest planetRequest = (PlanetRequest) initData.get("planetRequest");
        if(planetRequest == null) {
            throw new PlanetException("expected planetRequest from init data");
        }
       
        // PageModel only works on page requests, so cast planetRequest
View Full Code Here

Examples of org.apache.roller.planet.ui.rendering.util.PlanetRequest

       
        // grab a reference to the url strategy
        this.urlStrategy = PlanetFactory.getPlanet().getURLStrategy();
       
        // need a weblog request so that we can know the weblog and locale
        PlanetRequest planetRequest = (PlanetRequest) initData.get("planetRequest");
        if(planetRequest == null) {
            throw new PlanetException("Expected 'planetRequest' init param!");
        }
       
        this.planet = planetRequest.getPlanet();
    }
View Full Code Here

Examples of org.apache.roller.planet.ui.rendering.util.PlanetRequest

     * Init page model based on request.
     */
    public void init(Map initData) throws PlanetException {
       
        // we expect the init data to contain a planetRequest object
        PlanetRequest planetRequest = (PlanetRequest) initData.get("planetRequest");
        if(planetRequest == null) {
            throw new PlanetException("expected planetRequest from init data");
        }
       
        // only works on planet group requests, so cast planetRequest
View Full Code Here

Examples of org.apache.roller.presentation.PlanetRequest

        mLogger.debug("entering");
       
        HttpServletRequest request = (HttpServletRequest) req;
        HttpServletResponse response = (HttpServletResponse) res;
       
        PlanetRequest planetRequest = null;
        try {
            planetRequest = new PlanetRequest(request);
        } catch(Exception e) {
            // some kind of error parsing the request
            mLogger.error("error creating planet request", e);
            response.sendError(HttpServletResponse.SC_NOT_FOUND);
            return;
        }
       
        String key = "planetCache:"+this.generateKey(planetRequest);
       
        try {
            ResponseContent respContent = null;
            if(!this.excludeOwnerPages || !planetRequest.isLoggedIn()) {
                respContent = (ResponseContent) this.mCache.get(key);
            }
           
            if(respContent == null) {

                mLogger.debug("MISS "+key);
                this.misses++;
               
                CacheHttpServletResponseWrapper cacheResponse =
                        new CacheHttpServletResponseWrapper(response);
               
                chain.doFilter(request, cacheResponse);
               
                cacheResponse.flushBuffer();
               
                // only cache if we didn't get an exception
                if (request.getAttribute("DisplayException") == null) {
                    ResponseContent rc = cacheResponse.getContent();
                   
                    // only cache if this is not a logged in user?
                    if(!this.excludeOwnerPages || !planetRequest.isLoggedIn()) {
                        this.mCache.put(key, rc);
                    } else {
                        mLogger.debug("SKIPPED "+key);
                        this.skips++;
                    }
View Full Code Here

Examples of org.apache.roller.presentation.PlanetRequest

            throws IOException, ServletException {
       
        HttpServletRequest request = (HttpServletRequest) req;
        HttpServletResponse response = (HttpServletResponse) res;
       
        PlanetRequest planetRequest = null;
        try {
            planetRequest = new PlanetRequest(request);
        } catch(Exception e) {
            mLogger.error("error creating planet request", e);
            response.sendError(HttpServletResponse.SC_NOT_FOUND);
            return;
        }
View Full Code Here

Examples of org.apache.roller.ui.rendering.util.PlanetRequest

            log.error("Unable to get planet manager", ex);
            response.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
            return;
        }
       
        PlanetRequest planetRequest = null;
        try {
            planetRequest = new PlanetRequest(request);
        } catch (Exception e) {
            // some kind of error parsing the request
            log.debug("error creating planet request", e);
            response.sendError(HttpServletResponse.SC_NOT_FOUND);
            return;
View Full Code Here

Examples of org.apache.roller.ui.rendering.util.PlanetRequest

            log.error("Unable to get planet manager", ex);
            response.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
            return;
        }
       
        PlanetRequest planetRequest = null;
        try {
            planetRequest = new PlanetRequest(request);
        } catch (Exception e) {
            // some kind of error parsing the request
            log.debug("error creating planet request", e);
            response.sendError(HttpServletResponse.SC_NOT_FOUND);
            return;
View Full Code Here

Examples of org.apache.roller.weblogger.ui.rendering.util.PlanetRequest

        log.debug("Entering");

        PlanetManager planet = PlanetFactory.getPlanet().getPlanetManager();

        PlanetRequest planetRequest = null;
        try {
            planetRequest = new PlanetRequest(request);
        } catch (Exception e) {
            // some kind of error parsing the request
            log.debug("error creating planet request", e);
            response.sendError(HttpServletResponse.SC_NOT_FOUND);
            return;
View Full Code Here

Examples of org.apache.roller.weblogger.ui.rendering.util.PlanetRequest

        log.debug("Entering");

        PlanetManager planet = PlanetFactory.getPlanet().getPlanetManager();

        PlanetRequest planetRequest = null;
        try {
            planetRequest = new PlanetRequest(request);
        } catch (Exception e) {
            // some kind of error parsing the request
            log.debug("error creating planet request", e);
            response.sendError(HttpServletResponse.SC_NOT_FOUND);
            return;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.