Package org.apache.qpid.server.logging.actors

Examples of org.apache.qpid.server.logging.actors.HttpManagementActor


    }

    public static HttpManagementActor getOrCreateAndCacheLogActor(HttpServletRequest request, Broker broker)
    {
        HttpSession session = request.getSession();
        HttpManagementActor actor = (HttpManagementActor) session.getAttribute(ATTR_LOG_ACTOR);
        if (actor == null)
        {
            actor = createHttpManagementActor(broker, request);
            session.setAttribute(ATTR_LOG_ACTOR, actor);
        }
View Full Code Here


        return null;
    }

    private static HttpManagementActor createHttpManagementActor(Broker broker, HttpServletRequest request)
    {
        return new HttpManagementActor(broker.getRootMessageLogger(), request.getRemoteAddr(), request.getRemotePort());
    }
View Full Code Here

        }

        SecurityManager.setThreadSubject(subject);
        try
        {
            HttpManagementActor logActor = HttpManagementUtil.getOrCreateAndCacheLogActor(request, _broker);
            CurrentActor.set(logActor);
            try
            {
                Subject.doAs(subject, privilegedExceptionAction);
            }
View Full Code Here

        }

        SecurityManager.setThreadSubject(subject);
        try
        {
            HttpManagementActor logActor = getLogActorAndCacheInSession(request);
            CurrentActor.set(logActor);
            try
            {
                Subject.doAs(subject, privilegedExceptionAction);
            }
View Full Code Here

    private HttpManagementActor getLogActorAndCacheInSession(HttpServletRequest req)
    {
        HttpSession session = req.getSession();

        HttpManagementActor actor = (HttpManagementActor) session.getAttribute(ATTR_LOG_ACTOR);
        if(actor == null)
        {
            actor = createHttpManagementActor(req);
            session.setAttribute(ATTR_LOG_ACTOR, actor);
        }
View Full Code Here

        }
    }

    private HttpManagementActor createHttpManagementActor(HttpServletRequest request)
    {
        return new HttpManagementActor(_rootLogger, request.getRemoteAddr(), request.getRemotePort());
    }
View Full Code Here

        }

        SecurityManager.setThreadSubject(subject);
        try
        {
            HttpManagementActor logActor = HttpManagementUtil.getOrCreateAndCacheLogActor(request, _broker);
            CurrentActor.set(logActor);
            try
            {
                Subject.doAs(subject, privilegedExceptionAction);
            }
View Full Code Here

    }

    public static HttpManagementActor getOrCreateAndCacheLogActor(HttpServletRequest request, Broker broker)
    {
        HttpSession session = request.getSession();
        HttpManagementActor actor = (HttpManagementActor) session.getAttribute(ATTR_LOG_ACTOR);
        if (actor == null)
        {
            actor = createHttpManagementActor(broker, request);
            session.setAttribute(ATTR_LOG_ACTOR, actor);
        }
View Full Code Here

        return null;
    }

    private static HttpManagementActor createHttpManagementActor(Broker broker, HttpServletRequest request)
    {
        return new HttpManagementActor(broker.getRootMessageLogger(), request.getRemoteAddr(), request.getRemotePort());
    }
View Full Code Here

TOP

Related Classes of org.apache.qpid.server.logging.actors.HttpManagementActor

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.