Examples of Options


Examples of limpidlog.lib.Options

    createNewFile();
  }

  protected void createNewFile() throws Exception {
    Options options = new Options();

    fileName = getFileName();
    if (Options.debug)
      System.out.println("FileLog.createNewFile: fileName="+fileName);

    theFile = new File(fileName);
    writer = new FileWriter(fileName);

    String threadName = Thread.currentThread().getName();
    log(threadName, "", Options.LIMPIDLOG_VERSION, dataVersion + "\t" + version);
    log(threadName, "", Options.LIMPIDLOG_OPTIONS, options.getBytecoderOptions());
    log(threadName, "", LIMPIDLOG_FILE_FORMAT, fileFormatVersion);
  }
View Full Code Here

Examples of net.jcores.jre.utils.internal.Options

            public void f() {
                try {
                    queue.add(Async.QEntry(f.f()));
                    queue.close();
                } catch (Exception e) {
                    final Options options$ = Options.$(CommonCore.this, options);
                    options$.failure(f, e, "async:exception", "General exception invoking async function.");
                    queue.close();
                }
            }
        }, 0, options);
View Full Code Here

Examples of net.lucidviews.geoalgo.limb.data.Options

    assertNull( processedIntersection );
  }
 
  public void testNullIntersectionWithNullNegligibleDistance()
  {
    Options options = new Options();
    Geometry processedIntersection = this.processor.processIntersection( null, options );
   
    // The processor should accept a null intersection and return a null result.
    assertNull( processedIntersection );
  }
View Full Code Here

Examples of net.sourceforge.yagsbook.utils.Options

        usage("    -dest <path>           Path to output directory.");
    }

    public static void
    main(String args[]) throws Exception {
        Options     options = new Options(args);
        String      configFilename = "config.xml";
        String      destPath = "/tmp/repository";
        String[]    src = null;

        if (options.isOption("-help")) {
            usage();
            return;
        }

        // This is for testing, though I can't remember what.
        if (options.isOption("-xslt")) {
            Extensions.main(args);
            System.exit(0);
        }

        if (options.isOption("-debug")) {
            setDebug(true);
        }

        if (options.isOption("-config")) {
            configFilename = options.getString("-config");
        }

        if (options.isOption("-dest")) {
            destPath = options.getString("-dest");
        }

        if (options.isOption("-src")) {
            src = options.getAllStrings("-src");
        } else {
            usage("No source repositories defined. Try -help for info.");
            return;
        }
View Full Code Here

Examples of nokogiri.internals.ParserContext.Options

        reader.setInstanceVariable("@errors", runtime.newArray());
        IRubyObject url = context.nil;
        if (args.length > 1) url = args[1];
        if (args.length > 2) reader.setInstanceVariable("@encoding", args[2]);

        Options options;
        if (args.length > 3) {
          options = new ParserContext.Options((Long)args[3].toJava(Long.class));
        } else {
          // use the default options RECOVER | NONET
          options = new ParserContext.Options(2048 | 1);
View Full Code Here

Examples of org.apache.axis.utils.Options

        }
        axisServer.setServerSocket(socket);
        try {
            axisServer.start(true);
            AdminClient admin = new AdminClient();
            Options opts = new Options(new String[] {"-p", Integer.toString(AXIS_PORT)});
            InputStream is = getClass().getResourceAsStream("resources/echoDeploy.wsdd");
            String result = admin.process(opts, is);
            if (null == result || result.contains("AxisFault")) {
                throw new Exception("Failed to start axis server");
            }
View Full Code Here

Examples of org.apache.axis2.client.Options

        }

        try {

            MessageContext messageOut = MessageHelper.cloneMessageContext(messageIn);
            Options options = new Options();
            options.setTo(new EndpointReference(serviceUrl));
            if(messageIn.getSoapAction() != null) {

                options.setAction(messageIn.getSoapAction());

            } else {

                if (messageIn.isSOAP11()) {
                    options.setProperty(Constants.Configuration.DISABLE_SOAP_ACTION, true);
                } else {
                    Axis2MessageContext axis2smc = (Axis2MessageContext) messageOut;
                    org.apache.axis2.context.MessageContext axis2MessageCtx =
                            axis2smc.getAxis2MessageContext();
                    axis2MessageCtx.getTransportOut().addParameter(
                            new Parameter(HTTPConstants.OMIT_SOAP_12_ACTION, true));
                }

            }

           //After setting all the options we need to find the MEP of the Message
           org.apache.axis2.context.MessageContext axis2Ctx =
                   ((Axis2MessageContext)messageOut).getAxis2MessageContext();

           boolean outOnlyMessage = "true".equals(messageIn.getProperty(
                SynapseConstants.OUT_ONLY)) || WSDL2Constants.MEP_URI_IN_ONLY.equals(
                axis2Ctx.getOperationContext()
                        .getAxisOperation().getMessageExchangePattern());

            // Here We consider all other Messages that evaluates to outOnlyMessage == false
            // follows out in mep.
            if(log.isDebugEnabled()) {
                log.debug("Invoking service Url " + serviceUrl + " with Message" +
                        messageIn.getMessageID());
            }





            options.setProperty(
                    AddressingConstants.DISABLE_ADDRESSING_FOR_OUT_MESSAGES, Boolean.TRUE);

            //clean existing headers
            // otherwise when retrying same header element will add multiple times
            sc.removeHeaders();
View Full Code Here

Examples of org.apache.cassandra.stress.settings.SettingsCommandPreDefinedMixed.Options

    // CLI utility methods

    public static SettingsCommandPreDefined build(Command type, String[] params)
    {
        GroupedOptions options = GroupedOptions.select(params,
                new Options(new Uncertainty()),
                new Options(new Count()),
                new Options(new Duration()));
        if (options == null)
        {
            printHelp(type);
            System.out.println("Invalid " + type + " options provided, see output for valid options");
            System.exit(1);
View Full Code Here

Examples of org.apache.cocoon.rest.controller.method.Options

        }

        @Override
        public RestResponse execute(Object controller) throws Exception {
            if (controller instanceof Options) {
                Options options = (Options) controller;
                return options.doOptions();
            }

            return super.execute(controller);
        }
View Full Code Here

Examples of org.apache.commons.betwixt.Options

        if ( beanInfo != null ) {
            ElementDescriptor elementDescriptor = beanInfo.getElementDescriptor();
            if ( elementDescriptor != null ) {
               
                // Construct the options
                Options combinedOptions = new Options();

                // Add options defined by the current bean's element descriptor
                combinedOptions.addOptions(elementDescriptor.getOptions());
               
                // The parent descriptor may have defined options
                // for the current bean.  These options take precedence
                // over the options of the current class descriptor
                if( context.getOptions() != null) {
                    combinedOptions.addOptions(context.getOptions());
                }
                context = context.newContext( bean );
                context.pushOptions(combinedOptions);
               
                if ( qualifiedName == null ) {
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.