Examples of SunRise


Examples of com.l2jfrozen.gameserver.network.serverpackets.SunRise

      {
        packet = new SunSet();
      }
      else if(state.equals("day"))
      {
        packet = new SunRise();
      }
      else if(state.equals("red"))
      {
        packet = new ExRedSky(10);
      }
View Full Code Here

Examples of net.sf.l2j.gameserver.serverpackets.SunRise

    else if(type.equals("sky"))
    {
      if(state.equals("night"))
        packet = new SunSet();
      else if(state.equals("day"))
        packet = new SunRise();
      else if (state.equals("red"))
        packet = new ExRedSky(10);
    }
    else
      activeChar.sendMessage("Usage: //atmosphere <signsky dawn|dusk>|<sky day|night|red>");
View Full Code Here

Examples of org.apache.cocoon.sunshine.sunrise.SunRise

                                   ", source="+source+
                                   ", par="+par);
        }
        String handlerName = null;
        String applicationName = null;
        SunRise sunRise = null;
        Map map = null;

        boolean initialized;

        try {
            final Request request = ObjectModelHelper.getRequest( objectModel );

            // Are we called as an internal resource?
            if ( objectModel.get("Internal-Request") != null ) {
                handlerName = (String)request.getAttribute(Constants.REQUEST_ATTRIBUTE_HANDLER_NAME);
                applicationName = (String)request.getAttribute(Constants.REQUEST_ATTRIBUTE_APPLICATION_NAME);
                initialized = true;
            } else {
                handlerName = par.getParameter("handler", null);
                applicationName = par.getParameter("application", null);
                if (handlerName != null) request.setAttribute(Constants.REQUEST_ATTRIBUTE_HANDLER_NAME, handlerName);
                if (applicationName != null) request.setAttribute(Constants.REQUEST_ATTRIBUTE_APPLICATION_NAME, applicationName);
                initialized = false;
            }

            sunRise = (SunRise) this.manager.lookup( SunRise.ROLE );

            // do authentication
            if (sunRise.checkAuthentication(redirector, !initialized) == false) {
                // All events are ignored
                // the sitemap.xsl ensures that only the redirect is processed
            } else {
                if (initialized == false) {
                    map = sunRise.createMap();
                } else {
                    map = new HashMap();
                }
            }
        } finally {
View Full Code Here

Examples of org.apache.cocoon.sunshine.sunrise.SunRise

    public void generate()
    throws IOException, SAXException, ProcessingException {

        this.xmlConsumer.startDocument();
        SunRise sunRise = null;
        try {
            sunRise = (SunRise)this.manager.lookup(SunRise.ROLE);

            if (sunRise.isAuthenticated() == true) {
                sunRise.showConfiguration(this.xmlConsumer, this.source);
            }
        } catch (ComponentException ex) {
            throw new ProcessingException("ComponentManagerException: " + ex, ex);
        } finally {
            this.manager.release(sunRise);
View Full Code Here

Examples of org.apache.cocoon.sunshine.sunrise.SunRise

                                   ", source="+source+
                                   ", par="+par);
        }
        String handlerName = null;
        String applicationName = null;
        SunRise sunRise = null;
        Map map = null;

        boolean initialized;

        try {
            final Request request = ObjectModelHelper.getRequest( objectModel );

            // Are we called as an internal resource?
            if ( objectModel.get("Internal-Request") != null ) {
                handlerName = (String)request.getAttribute(Constants.REQUEST_ATTRIBUTE_HANDLER_NAME);
                applicationName = (String)request.getAttribute(Constants.REQUEST_ATTRIBUTE_APPLICATION_NAME);
                initialized = true;
            } else {
                handlerName = par.getParameter("handler", null);
                applicationName = par.getParameter("application", null);
                if (handlerName != null) request.setAttribute(Constants.REQUEST_ATTRIBUTE_HANDLER_NAME, handlerName);
                if (applicationName != null) request.setAttribute(Constants.REQUEST_ATTRIBUTE_APPLICATION_NAME, applicationName);
                initialized = false;
            }

            sunRise = (SunRise) this.manager.lookup( SunRise.ROLE );

            // do authentication
            if (sunRise.checkAuthentication(redirector, !initialized) == false) {
                // All events are ignored
                // the sitemap.xsl ensures that only the redirect is processed
            } else {
                if (initialized == false) {
                    map = sunRise.createMap();
                } else {
                    map = EMPTY_MAP;
                }
            }
        } finally {
View Full Code Here

Examples of org.apache.cocoon.sunshine.sunrise.SunRise

                                   ", par="+par);
        }

        Map map = null;
        String handlerName = par.getParameter("handler", null);
        SunRise sunRise = null;

        try {
            sunRise = (SunRise) this.manager.lookup(SunRise.ROLE);
            if (sunRise.isAuthenticated(handlerName) == true) {
                map = sunRise.createMap();
            }
        } finally {
            this.manager.release(sunRise);
        }
View Full Code Here

Examples of org.apache.cocoon.sunshine.sunrise.SunRise

            throw new ProcessingException("sunRise LogoutAction requires at least the handler parameter.");

        final String mode = par.getParameter("mode", "normal");

        // authenticate
        SunRise sunRise = null;
        try {
            sunRise = (SunRise) this.manager.lookup(SunRise.ROLE);
            sunRise.logout( handlerName , mode );
        } finally {
            this.manager.release(sunRise);
        }

        if (this.getLogger().isDebugEnabled() == true) {
View Full Code Here

Examples of org.apache.cocoon.sunshine.sunrise.SunRise

    /**
     * Selector
     */
    public boolean select (String expression, Map objectModel, Parameters parameters) {
        SunRise sunRise = null;
        boolean result;
        try {
            sunRise = (SunRise) this.manager.lookup( SunRise.ROLE );
            result = sunRise.testMedia(objectModel, expression);
        } catch (Exception local) {
            // ignore me
            result = false;
        } finally {
            this.manager.release(sunRise);
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.