Package org.apache.cocoon.sunshine.context

Examples of org.apache.cocoon.sunshine.context.SessionContextProvider


     * Get a reserved context
     */
    protected boolean existsReservedContext(String name) {
        // synchronized (not needed)
        SessionContext context = null;
        SessionContextProvider provider = (SessionContextProvider)contextProvider.get(name);
        if (provider != null) {
            if ( null != this.deliveredContexts ) {
                context = (SessionContext)this.deliveredContexts.get(name);
            }
        }
View Full Code Here


     */
    protected SessionContext getReservedContext(String name)
    throws ProcessingException {
        // synchronized (not needed)
        SessionContext context = null;
        SessionContextProvider provider = (SessionContextProvider)contextProvider.get(name);
        if (provider != null) {
            if ( null != this.deliveredContexts ) {
                context = (SessionContext)this.deliveredContexts.get(name);
            }
            if (context == null) {
                if ( null == this.deliveredContexts ) {
                    this.deliveredContexts = new HashMap(5);
                }
                context = provider.getSessionContext(name,
                                                     this.objectModel,
                                                     this.resolver,
                                                     this.manager);
                if (context != null) this.deliveredContexts.put(name, context);
            }
View Full Code Here

     * Get a reserved context
     */
    protected boolean existsReservedContext(String name) {
        // synchronized (not needed)
        SessionContext context = null;
        SessionContextProvider provider = (SessionContextProvider)contextProvider.get(name);
        if (provider != null) {
            if ( null != this.deliveredContexts ) {
                context = (SessionContext)this.deliveredContexts.get(name);
            }
        }
View Full Code Here

     */
    protected SessionContext getReservedContext(String name)
    throws ProcessingException {
        // synchronized (not needed)
        SessionContext context = null;
        SessionContextProvider provider = (SessionContextProvider)contextProvider.get(name);
        if (provider != null) {
            if ( null != this.deliveredContexts ) {
                context = (SessionContext)this.deliveredContexts.get(name);
            }
            if (context == null) {
                if ( null == this.deliveredContexts ) {
                    this.deliveredContexts = new HashMap(5);
                }
                context = provider.getSessionContext(name,
                                                     this.objectModel,
                                                     this.resolver,
                                                     this.manager);
                if (context != null) this.deliveredContexts.put(name, context);
            }
View Full Code Here

     * Get a reserved context
     */
    protected boolean existsReservedContext(String name) {
        // synchronized (not needed)
        SessionContext context = null;
        SessionContextProvider provider = (SessionContextProvider)contextProvider.get(name);
        if (provider != null) {
            if ( null != this.deliveredContexts ) {
                context = (SessionContext)this.deliveredContexts.get(name);
            }
        }
View Full Code Here

     */
    protected SessionContext getReservedContext(String name)
    throws ProcessingException {
        // synchronized (not needed)
        SessionContext context = null;
        SessionContextProvider provider = (SessionContextProvider)contextProvider.get(name);
        if (provider != null) {
            if ( null != this.deliveredContexts ) {
                context = (SessionContext)this.deliveredContexts.get(name);
            }
            if (context == null) {
                if ( null == this.deliveredContexts ) {
                    this.deliveredContexts = new HashMap(5);
                }
                context = provider.getSessionContext(name,
                                                     this.objectModel,
                                                     this.resolver,
                                                     this.manager);
                if (context != null) this.deliveredContexts.put(name, context);
            }
View Full Code Here

TOP

Related Classes of org.apache.cocoon.sunshine.context.SessionContextProvider

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.