Examples of DevelopmentModeInfo


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

Examples of io.undertow.servlet.api.DevelopmentModeInfo

        }
        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

Examples of io.undertow.servlet.api.DevelopmentModeInfo

        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

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

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
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.