Package io.undertow.servlet.api

Examples of io.undertow.servlet.api.DevelopmentModeInfo


        this.next = next;
        this.setupAction = setupAction;
        this.servletContext = servletContext;
        this.paths = paths;
        this.listeners = servletContext.getDeployment().getApplicationListeners();
        final DevelopmentModeInfo developmentMode = servletContext.getDeployment().getDeploymentInfo().getDevelopmentMode();
        this.debugErrorPage = developmentMode != null && developmentMode.isDisplayErrorDetails();
    }
View Full Code Here


        }
        state = State.DEPLOYED;
    }

    private HttpHandler handleDevelopmentModePersistentSessions(HttpHandler next, final DeploymentInfo deploymentInfo, final SessionManager sessionManager, final ServletContextImpl servletContext) {
        final DevelopmentModeInfo developmentMode = deploymentInfo.getDevelopmentMode();
        if (developmentMode != null) {
            final SessionPersistenceManager sessionPersistenceManager = developmentMode.getSessionPersistenceManager();
            if (sessionPersistenceManager != null) {
                SessionRestoringHandler handler =  new SessionRestoringHandler(deployment.getDeploymentInfo().getDeploymentName(), sessionManager, servletContext, next, sessionPersistenceManager);
                deployment.addLifecycleObjects(handler);
                return handler;
            }
View Full Code Here

        dispatched = false; //we reset the dispatched state
        onAsyncError(error);
        if (!dispatched) {
            servletRequest.setAttribute(RequestDispatcher.ERROR_EXCEPTION, error);
            try {
                DevelopmentModeInfo devMode = servletRequestContext.getDeployment().getDeploymentInfo().getDevelopmentMode();
                boolean errorPage = devMode != null && devMode.isDisplayErrorDetails();
                if(errorPage) {
                    ServletDebugPageHandler.handleRequest(exchange, servletRequestContext, error);
                } else {
                    if (servletResponse instanceof HttpServletResponse) {
                        ((HttpServletResponse) servletResponse).sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
View Full Code Here

        this.next = next;
        this.setupAction = setupAction;
        this.servletContext = servletContext;
        this.paths = paths;
        this.listeners = servletContext.getDeployment().getApplicationListeners();
        final DevelopmentModeInfo developmentMode = servletContext.getDeployment().getDeploymentInfo().getDevelopmentMode();
        this.debugErrorPage = developmentMode != null && developmentMode.isDisplayErrorDetails();
    }
View Full Code Here

        this.next = next;
        this.setupAction = setupAction;
        this.servletContext = servletContext;
        this.paths = paths;
        this.listeners = servletContext.getDeployment().getApplicationListeners();
        final DevelopmentModeInfo developmentMode = servletContext.getDeployment().getDeploymentInfo().getDevelopmentMode();
        this.debugErrorPage = developmentMode != null && developmentMode.isDisplayErrorDetails();
    }
View Full Code Here

TOP

Related Classes of io.undertow.servlet.api.DevelopmentModeInfo

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.