Package org.apache.roller.weblogger.ui.rendering.util

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


       
        // extract page context
        this.pageContext = (PageContext) initData.get("pageContext");
       
        // we expect the init data to contain a weblogRequest object
        WeblogRequest weblogRequest = (WeblogRequest) initData.get("parsedRequest");
        if(weblogRequest == null) {
            throw new WebloggerException("expected weblogRequest from init data");
        }
       
        // CalendarModel only works on page requests, so cast weblogRequest
View Full Code Here


   
    public void init(Map initData) throws WebloggerException {
       
        // we expect the init data to contain a weblogRequest object
        WeblogRequest weblogRequest = (WeblogRequest) initData.get("parsedRequest");
        if(weblogRequest == null) {
            throw new WebloggerException("expected weblogRequest from init data");
        }
       
        if(weblogRequest instanceof WeblogFeedRequest) {
View Full Code Here

   
   
    public void init(Map initData) throws WebloggerException {
       
        // we expect the init data to contain a weblogRequest object
        WeblogRequest weblogRequest = (WeblogRequest) initData.get("parsedRequest");
        if(weblogRequest == null) {
            throw new WebloggerException("expected weblogRequest from init data");
        }
       
        // PageModel only works on page requests, so cast weblogRequest
View Full Code Here

    }
   
    public void init(Map initData) throws WebloggerException {
       
        // need a weblog request so that we can know the weblog and locale
        WeblogRequest weblogRequest = (WeblogRequest) initData.get("parsedRequest");
        if(weblogRequest == null) {
            throw new WebloggerException("Expected 'weblogRequest' init param!");
        }
       
        this.weblog = weblogRequest.getWeblog();
        this.locale = weblogRequest.getLocale();
       
        // look for url strategy
        urlStrategy = (URLStrategy) initData.get("urlStrategy");
        if(urlStrategy == null) {
            urlStrategy = WebloggerFactory.getWeblogger().getUrlStrategy();
View Full Code Here

            throw new WebloggerException("expected parsedRequest from init data");
        }
       
        // extract weblog object if possible
        if(parsedRequest instanceof WeblogRequest) {
            WeblogRequest weblogRequest = (WeblogRequest) parsedRequest;
            weblog = weblogRequest.getWeblog();
        }
    }
View Full Code Here

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

   
    public void init(Map initData) throws WebloggerException {
       
        // we expect the init data to contain a weblogRequest object
        WeblogRequest weblogRequest = (WeblogRequest) initData.get("parsedRequest");
        if(weblogRequest == null) {
            throw new WebloggerException("expected weblogRequest from init data");
        }
       
        if(weblogRequest instanceof WeblogFeedRequest) {
View Full Code Here

       
        log.debug("Entering");
       
        Weblog weblog = null;
       
        WeblogRequest weblogRequest = null;
        try {
            weblogRequest = new WeblogRequest(request);
           
            // now make sure the specified weblog really exists
            weblog = weblogRequest.getWeblog();
            if(weblog == null) {
                throw new WebloggerException("Unable to lookup weblog: "+
                        weblogRequest.getWeblogHandle());
            }
           
        } catch(Exception e) {
            // invalid rsd request format or weblog doesn't exist
            log.debug("error creating weblog request", e);
View Full Code Here

       
        // extract page context
        this.pageContext = (PageContext) initData.get("pageContext");
       
        // we expect the init data to contain a weblogRequest object
        WeblogRequest weblogRequest = (WeblogRequest) initData.get("parsedRequest");
        if(weblogRequest == null) {
            throw new WebloggerException("expected weblogRequest from init data");
        }
       
        // CalendarModel only works on page requests, so cast weblogRequest
View Full Code Here

   
   
    public void init(Map initData) throws WebloggerException {
       
        // need a weblog request so that we can know the weblog and locale
        WeblogRequest weblogRequest = (WeblogRequest) initData.get("parsedRequest");
        if(weblogRequest == null) {
            throw new WebloggerException("Expected 'weblogRequest' init param!");
        }
       
        // PreviewURLModel only works on preview requests, so cast weblogRequest
        // into a WeblogPreviewRequest and if it fails then throw exception
        if(weblogRequest instanceof WeblogPreviewRequest) {
            this.previewRequest = (WeblogPreviewRequest) weblogRequest;
        } else {
            throw new WebloggerException("weblogRequest is not a WeblogPreviewRequest."+
                    "  PreviewURLModel only supports preview requests.");
        }
       
        this.weblog = weblogRequest.getWeblog();
        this.locale = weblogRequest.getLocale();
       
        // look for url strategy
        urlStrategy = (URLStrategy) initData.get("urlStrategy");
        if(urlStrategy == null) {
            urlStrategy = WebloggerFactory.getWeblogger().getUrlStrategy();
View Full Code Here

TOP

Related Classes of org.apache.roller.weblogger.ui.rendering.util.WeblogRequest

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.