Package flex.messaging.util

Examples of flex.messaging.util.PropertyStringResourceLoader


    {
        TomcatLogin login = TomcatLoginHolder.getLogin();
        if (login == null)
        {
            SecurityException se =
                new SecurityException(new PropertyStringResourceLoader(PropertyStringResourceLoader.VENDORS_BUNDLE));
            se.setMessage(NO_VALVE);
            throw se;
        }

        String password = extractPassword(credentials);
View Full Code Here


        {
            TomcatLogin login = TomcatLoginHolder.getLogin();
            if (login == null)
            {
                SecurityException se =
                    new SecurityException(new PropertyStringResourceLoader(PropertyStringResourceLoader.VENDORS_BUNDLE));
                se.setMessage(NO_VALVE);
                throw se;
            }
            authorized = login.authorize(principal, roles);
        }
View Full Code Here

            Class.forName("jrun.servlet.JRunServletContext");
        }
        catch (Throwable t)
        {
            SecurityException se =
                new SecurityException(new PropertyStringResourceLoader(PropertyStringResourceLoader.VENDORS_BUNDLE));
            se.setMessage(NO_SEC_MANAGER);
            throw se;
        }

        if (JRun.server != null)
        {
            try
            {
                ServletContext servletContext = servletConfig.getServletContext();
                String webAppName = ((jrun.servlet.JRunServletContext)servletContext).getWebApplication().getName();

                Set serviceMBeans = null;
                ObjectInstance mbean = null;

                //
                // LOCATE WEB APP SECURITY SERVICE
                //

                ObjectName serviceName = new ObjectName("ServletEngineService." + webAppName + ":service=WebAppSecurityService");
                serviceMBeans = JRun.server.queryMBeans(serviceName, null);

                if (serviceMBeans != null)
                {
                    // Just grab the first object instance
                    Iterator iterator = serviceMBeans.iterator();
                    if (iterator.hasNext())
                    {
                        mbean = (ObjectInstance)iterator.next();
                    }
                }

                if (mbean != null)
                {
                    Object securityService = JRun.server.invoke(mbean.getObjectName(), "getWebAppSecurity", null, null);

                    if (securityService instanceof WebAppSecurityService)
                    {
                        appSecurity = (WebAppSecurityService)securityService;
                    }
                }

                // LOCATE SERVLET USERS SERVICE
                serviceName = new ObjectName("ServletEngineService:service=ServletUsersService");
                serviceMBeans = JRun.server.queryMBeans(serviceName, null);

                if (serviceMBeans != null)
                {
                    // Just grab the first object instance
                    Iterator iterator = serviceMBeans.iterator();
                    if (iterator.hasNext())
                    {
                        mbean = (ObjectInstance)iterator.next();
                    }
                }

                if (mbean != null)
                {
                    Object usersService = JRun.server.invoke(mbean.getObjectName(), "getServletUsers", null, null);

                    if (usersService instanceof ServletUsers)
                    {
                        this.usersService = (ServletUsers)usersService;
                    }
                }
            }
            catch (MalformedObjectNameException ex)
            {
                SecurityException se =
                    new SecurityException(new PropertyStringResourceLoader(PropertyStringResourceLoader.VENDORS_BUNDLE));
                se.setMessage(NO_SEC_SRVC_OR_USERS);
                se.setRootCause(ex);
                throw se;
            }
            catch (InstanceNotFoundException ex)
            {
                SecurityException se =
                    new SecurityException(new PropertyStringResourceLoader(PropertyStringResourceLoader.VENDORS_BUNDLE));
                se.setMessage(NO_SEC_SRVC_OR_USERS);
                se.setRootCause(ex);
                throw se;
            }
            catch (MBeanException ex)
            {
                Exception e = ex.getTargetException();
                SecurityException se =
                    new SecurityException(new PropertyStringResourceLoader(PropertyStringResourceLoader.VENDORS_BUNDLE));
                se.setMessage(NO_SEC_SRVC_OR_USERS);
                se.setRootCause(e);
                throw se;
            }
            catch (ReflectionException ex)
            {
                SecurityException se =
                    new SecurityException(new PropertyStringResourceLoader(PropertyStringResourceLoader.VENDORS_BUNDLE));
                se.setMessage(NO_SEC_SRVC_OR_USERS);
                se.setRootCause(ex);
                throw se;
            }
            catch (NullPointerException npe)
            {
                SecurityException se =
                    new SecurityException(new PropertyStringResourceLoader(PropertyStringResourceLoader.VENDORS_BUNDLE));
                se.setMessage(NO_SEC_SRVC_OR_USERS);
                se.setRootCause(npe);
                throw se;
            }
        }
View Full Code Here

    public SystemSettings()
    {
        manageable = true;
        redeployEnabled = false;
        resourceLoader = new PropertyStringResourceLoader();
        touches = new ArrayList();
        watches = new ArrayList();
        watchInterval = 20;
    }
View Full Code Here

    {
        TomcatLogin login = TomcatLoginHolder.getLogin();
        if (login == null)
        {
            SecurityException se =
                new SecurityException(new PropertyStringResourceLoader("flex.messaging.vendors"));
            se.setMessage(NO_VALVE);
            throw se;
        }

        String password = extractPassword(credentials);
View Full Code Here

        {
            TomcatLogin login = TomcatLoginHolder.getLogin();
            if (login == null)
            {
                SecurityException se =
                    new SecurityException(new PropertyStringResourceLoader("flex.messaging.vendors"));
                se.setMessage(NO_VALVE);
                throw se;
            }
            authorized = login.authorize(principal, roles);
        }
View Full Code Here

            Class.forName("jrun.servlet.JRunServletContext");
        }
        catch (Throwable t)
        {
            SecurityException se =
                new SecurityException(new PropertyStringResourceLoader("flex.messaging.vendors"));
            se.setMessage(NO_SEC_MANAGER);
            throw se;
        }

        if (JRun.server != null)
        {
            try
            {
                ServletContext servletContext = servletConfig.getServletContext();
                String webAppName = ((jrun.servlet.JRunServletContext)servletContext).getWebApplication().getName();

                Set serviceMBeans = null;
                ObjectInstance mbean = null;

                //
                // LOCATE WEB APP SECURITY SERVICE
                //

                ObjectName serviceName = new ObjectName("ServletEngineService." + webAppName + ":service=WebAppSecurityService");
                serviceMBeans = JRun.server.queryMBeans(serviceName, null);

                if (serviceMBeans != null)
                {
                    // Just grab the first object instance
                    Iterator iterator = serviceMBeans.iterator();
                    if (iterator.hasNext())
                    {
                        mbean = (ObjectInstance)iterator.next();
                    }
                }

                if (mbean != null)
                {
                    Object securityService = JRun.server.invoke(mbean.getObjectName(), "getWebAppSecurity", null, null);

                    if (securityService instanceof WebAppSecurityService)
                    {
                        appSecurity = (WebAppSecurityService)securityService;
                    }
                }

                // LOCATE SERVLET USERS SERVICE
                serviceName = new ObjectName("ServletEngineService:service=ServletUsersService");
                serviceMBeans = JRun.server.queryMBeans(serviceName, null);

                if (serviceMBeans != null)
                {
                    // Just grab the first object instance
                    Iterator iterator = serviceMBeans.iterator();
                    if (iterator.hasNext())
                    {
                        mbean = (ObjectInstance)iterator.next();
                    }
                }

                if (mbean != null)
                {
                    Object usersService = JRun.server.invoke(mbean.getObjectName(), "getServletUsers", null, null);

                    if (usersService instanceof ServletUsers)
                    {
                        this.usersService = (ServletUsers)usersService;
                    }
                }
            }
            catch (MalformedObjectNameException ex)
            {
                SecurityException se =
                    new SecurityException(new PropertyStringResourceLoader("flex.messaging.vendors"));
                se.setMessage(NO_SEC_SRVC_OR_USERS);
                se.setRootCause(ex);
                throw se;
            }
            catch (InstanceNotFoundException ex)
            {
                SecurityException se =
                    new SecurityException(new PropertyStringResourceLoader("flex.messaging.vendors"));
                se.setMessage(NO_SEC_SRVC_OR_USERS);
                se.setRootCause(ex);
                throw se;
            }
            catch (MBeanException ex)
            {
                Exception e = ex.getTargetException();
                SecurityException se =
                    new SecurityException(new PropertyStringResourceLoader("flex.messaging.vendors"));
                se.setMessage(NO_SEC_SRVC_OR_USERS);
                se.setRootCause(e);
                throw se;
            }
            catch (ReflectionException ex)
            {
                SecurityException se =
                    new SecurityException(new PropertyStringResourceLoader("flex.messaging.vendors"));
                se.setMessage(NO_SEC_SRVC_OR_USERS);
                se.setRootCause(ex);
                throw se;
            }
            catch (NullPointerException npe)
            {
                SecurityException se =
                    new SecurityException(new PropertyStringResourceLoader("flex.messaging.vendors"));
                se.setMessage(NO_SEC_SRVC_OR_USERS);
                se.setRootCause(npe);
                throw se;
            }
        }
View Full Code Here

      returnValue = method.invoke(serviceBean, mappedParams);
    }
    catch (InvocationTargetException e) {
      Throwable targetException = e.getTargetException();
      if ((securityChecker.isAuthenticationFailed(targetException)) || (securityChecker.isAccessDenied(targetException))) {
        flex.messaging.security.SecurityException se = new SecurityException(new PropertyStringResourceLoader("flex.messaging.vendors"));
        se.setMessage(targetException.getMessage());
        throw se;
      }
      else {
        for (int i = 0; i < method.getExceptionTypes().length; i++) {
View Full Code Here

     * @return The <code>ResourceLoader</code> used to load localized strings.
     */
    protected ResourceLoader getResourceLoader()
    {
        if (resourceLoader == null)
            resourceLoader = new PropertyStringResourceLoader();

        return resourceLoader;
    }
View Full Code Here

   
    public SystemSettings()
    {
        manageable = true;
        redeployEnabled = false;
        resourceLoader = new PropertyStringResourceLoader();
        touches = new ArrayList();
        watches = new ArrayList();
        watchInterval = 20;
    }
View Full Code Here

TOP

Related Classes of flex.messaging.util.PropertyStringResourceLoader

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.