Examples of Context


Examples of org.wso2.carbon.ui.deployment.beans.Context

        if ("".equals(context)) {
            context = "/";
        }

        HashMap<String, String> httpUrlsToBeByPassed = new HashMap<String, String>();
        Context defaultContext = null;
        if (bundle != null) {
            ServiceReference reference = bundle.getBundleContext().getServiceReference(
                    CarbonUIDefinitions.class.getName());
            CarbonUIDefinitions carbonUIDefinitions;
            if (reference != null) {
                carbonUIDefinitions = (CarbonUIDefinitions) bundle.getBundleContext().getService(
                        reference);
                if (carbonUIDefinitions != null) {
                    httpUrlsToBeByPassed = carbonUIDefinitions.getHttpUrls();
                    if (carbonUIDefinitions.getContexts().containsKey("default-context")) {
                        defaultContext = carbonUIDefinitions.getContexts().get("default-context");
                    }

                }
            }
        }

        if (requestedURI.equals(context) || requestedURI.equals(context + "/")) {
            if (defaultContext != null && !"".equals(defaultContext.getContextName())
                    && !"null".equals(defaultContext.getContextName())) {
                String adminConsoleURL = CarbonUIUtil.getAdminConsoleURL(request);
                int index = adminConsoleURL.lastIndexOf("carbon");
                String defaultContextUrl = adminConsoleURL.substring(0, index)
                        + defaultContext.getContextName() + "/";
                response.sendRedirect(defaultContextUrl);
            } else {
                response.sendRedirect("carbon");
            }
            return false;
View Full Code Here

Examples of org.xlightweb.Context

  static ObjectName exportMbean(MBeanServer mbeanServer, ObjectName objectname, Object handler) throws Exception {
     
    String namespace = objectname.getDomain();
   
    if (handler instanceof Context) {
      Context ctx = (Context) handler;
      objectname = new ObjectName(namespace + ":type=HttpContext" + ", name=[" + ctx.getContextPath() + "]");
     
      for (IHttpRequestHandler hdl : ctx.getHandlers()) {
        exportMbean(mbeanServer, objectname, hdl);
      }
     
    } else if (handler instanceof RequestHandlerChain) {
      RequestHandlerChain chain = (RequestHandlerChain) handler;
View Full Code Here

Examples of org.zeromq.ZMQ.Context

public class MsgLoader {

  public static IContext mk_zmq_context(int num_threads, int linger,
      boolean local) {
    Context context = ZeroMq.context(num_threads);
    return new ZMQContext(context, linger, local);
  }
View Full Code Here

Examples of parrot.server.templates.TemplateParser.ParsedTemplate.Context

  }
   
  public Main(int size, int port, String databaseFile) throws IOException, SQLiteException {
    Locale.setDefault(Locale.US);
   
    rootContext = new Context();
    rootContext.setVariableValue("zetesVersion", zetes.hands.About.VERSION);
    rootContext.setVariableValue("parrotVersion", Parrot.VERSION);
   
    executor = Executors.newFixedThreadPool(size);
    server = new ContainerServer(this);
View Full Code Here

Examples of pattern.model.tree.Context

   *            PMML model
   * @throws PatternException
   */
  public MiningModel(PMML pmml) throws PatternException {
    this.schema = pmml.getSchema();
    this.context = new Context();

    schema.parseMiningSchema(pmml
        .getNodeList("/PMML/MiningModel/MiningSchema/MiningField"));

    String expr = "/PMML/MiningModel/Segmentation/Segment";
View Full Code Here

Examples of play.mvc.Http.Context

    }

    @With ({UserCredentialWrapFilter.class,ConnectToDBFilter.class,ExtractQueryParameters.class}) 
    public static Result getUsers() {
      if (Logger.isTraceEnabled()) Logger.trace("Method Start");
      Context ctx=Http.Context.current.get();
      QueryParams criteria = (QueryParams) ctx.args.get(IQueryParametersKeys.QUERY_PARAMETERS);
//      String where="user.name not in ?" ;
//      if (!StringUtils.isEmpty(criteria.getWhere())) {
//        where += " and (" + criteria.getWhere() + ")";
//      }
View Full Code Here

Examples of reportgen.prototype.context.Context

            resultColTable.updateUI();
        }
    }//GEN-LAST:event_downBtnActionPerformed

    private void autoFillBtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_autoFillBtnActionPerformed
        Context context = core.getResultContext();
        ItemSelectorEditable<QueryResultColumn> cols = core.getColumns();
        ContextGroup groupContext = MathExpressionEntityMethodRef
                .getContextGroup(core.getContextGroup());
        List<QEntity> options = context.getEntities(groupContext);
        for (QEntity entity : options) {
            for(QEntityProperty prop: context.getProperties(MathExpressionEntityMethodRef.GROUP, entity)) {
                boolean alreadyContains = false;
                for(int i=0; i<cols.size() && !alreadyContains; i++) {
                    QueryResultColumn mec = cols.get(i);
                    if(isContainProperty(mec.getExpression(), prop)) {
                        alreadyContains = true;
View Full Code Here

Examples of ro.isdc.wro.config.Context

    assertEquals(0, Context.countActive());
  }

  @Before
  public void setUp() {
    final Context context = Context.standaloneContext();
    Context.set(context);
    victim = buildValidModel();
  }
View Full Code Here

Examples of webit.script.Context

    }

    public void mergeTemplate(String templatePath, Out out) throws ResourceNotFoundException {
        System.out.println("AUTO RUN: " + templatePath);
        Template template = EngineManager.getEngine().getTemplate(templatePath);
        Context context = template.merge(out);
        System.out.println("\tassert count: " + context.getLocal(webit.script.tools.testunit.AssertGlobalRegister.ASSERT_COUNT_KEY));
    }
View Full Code Here

Examples of writer2latex.latex.Context

               .append("\\label").append(sName[i]).append("{");
            // Apply text style if required
            BeforeAfter baText = new BeforeAfter();
            if (bUseTextStyle) {
                String sStyleName = style.getLevelProperty(i,XMLString.TEXT_STYLE_NAME);
                palette.getCharSc().applyTextStyle(sStyleName,baText,new Context());
            }

            // Create label content
            if (style.isNumber(i)) {
                String sPrefix = style.getLevelProperty(i,XMLString.STYLE_NUM_PREFIX);
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.