Examples of ServerContext


Examples of org.directwebremoting.ServerContext

    /* (non-Javadoc)
     * @see org.directwebremoting.Builder#get()
     */
    public T get()
    {
        ServerContext serverContext = ServerContextFactory.get();
        return get(serverContext);
    }
View Full Code Here

Examples of org.directwebremoting.ServerContext

    /* (non-Javadoc)
     * @see org.directwebremoting.extend.Builder#get()
     */
    public ServerContext get()
    {
        ServerContext serverContext = WebContextFactory.get();
        if (serverContext == null)
        {
            // If not see if there is a singleton
            serverContext = StartupUtil.getSingletonServerContext();
            if (serverContext == null)
View Full Code Here

Examples of org.gatein.pc.api.spi.ServerContext

   public PortletInvocationResponse invoke(PortletInvocation invocation) throws IllegalArgumentException, PortletInvokerException
   {
      PortletContainer container = (PortletContainer)invocation.getAttribute(ContainerPortletInvoker.PORTLET_CONTAINER);
      PortletApplication portletApplication = container.getPortletApplication();
      ServerContext reqCtx = invocation.getServerContext();
      ServletContext targetCtx = portletApplication.getContext().getServletContext();
      try
      {
         CallableImpl callable = new CallableImpl(invocation);
         reqCtx.dispatch(targetCtx, invocation.getRequest(), invocation.getResponse(), callable);
         return callable.response;
      }
      catch (Exception e)
      {
         if (e instanceof PortletInvokerException)
View Full Code Here

Examples of org.glassfish.internal.api.ServerContext

            }
        }

        orb = orbFromEnv;
        if (services != null) { // can happen in test mode
            ServerContext sc = services.getService(ServerContext.class);
            if (sc != null) {
                commonCL = sc.getCommonClassLoader();
            }
        }
    }
View Full Code Here

Examples of org.iremake.server.network.ServerContext

        // load options
        Option.load();

        // start server
        final ServerContext server = RemoteServer.CONTEXT;
        server.start();
        LOG.log(Level.INFO, server.getStatus());

        // start and connect client
        final ClientContext client = RemoteClient.CONTEXT;
        client.start("localhost");

        client.send(Message.LOBBY_CHAT.createNew("Anyone wants to chat?"));

        // in 5s stop everything
        final Timer timer = new Timer();
        timer.schedule(new TimerTask() {
            @Override
            public void run() {
                timer.cancel();
                client.stop();
                server.stop();
            }
        }, 5_000);

    }
View Full Code Here

Examples of org.jboss.portal.portlet.spi.ServerContext

   public PortletInvocationResponse invoke(PortletInvocation invocation) throws IllegalArgumentException, PortletInvokerException
   {
      PortletContainer container = (PortletContainer)invocation.getAttribute(ContainerPortletInvoker.PORTLET_CONTAINER);
      PortletApplication portletApplication = container.getPortletApplication();
      ServerContext reqCtx = invocation.getServerContext();
      ServletContext targetCtx = portletApplication.getContext().getServletContext();
      ServletContainer servletContainer = servletContainerFactory.getServletContainer();
      try
      {
         return (PortletInvocationResponse)reqCtx.dispatch(servletContainer, targetCtx, callback, invocation);
      }
      catch (Exception e)
      {
         if (e instanceof PortletInvokerException)
         {
View Full Code Here

Examples of org.mule.el.context.ServerContext

    private static final long serialVersionUID = -6819292692339684915L;

    public StaticVariableResolverFactory(ParserConfiguration parserConfiguration, MuleContext muleContext)
    {
        super(parserConfiguration, muleContext);
        addFinalVariable("server", new ServerContext());
        addFinalVariable("mule", new MuleInstanceContext(muleContext));
        addFinalVariable("app", new AppContext(muleContext));
        addFinalVariable(MVELExpressionLanguageContext.MULE_CONTEXT_INTERNAL_VARIABLE, muleContext);
        declareFunction("regex", new RegexExpressionLanguageFuntion());
        declareFunction("wildcard", new WildcardExpressionLanguageFuntion());
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.