Examples of addOption()


Examples of net.hasor.rsf.protocol.message.ResponseMsg.addOption()

        short[] oValues = block.getOptionValues();
        for (int i = 0; i < oTypes.length; i++) {
            String optKey = getString(block, oTypes[i]);
            String optVar = getString(block, oValues[i]);
            //
            resMetaData.addOption(optKey, optVar);
        }
        return resMetaData;
    };
    private static String getString(BaseSocketBlock socketMessage, int attrIndex) {
        byte[] byteDatas = socketMessage.readPool(attrIndex);
View Full Code Here

Examples of nu.fw.jeti.jabber.elements.XDataFieldBuilder.addOption()

        xdb.type ="form";
        XDataFieldBuilder xdfb = new XDataFieldBuilder();
        xdfb.var="stream-method";
        xdfb.type="list-single";
        if (Preferences.getBoolean("filetransfer","bytestreams.enable",true)) {
            xdfb.addOption("http://jabber.org/protocol/bytestreams");
        }
        if (Preferences.getBoolean("filetransfer", "ibb.enable", true)) {
            xdfb.addOption("http://jabber.org/protocol/ibb");
        }
        xdb.addField(xdfb.build());
View Full Code Here

Examples of org.apache.accumulo.core.client.IteratorSetting.addOption()

    fetchedColumns.add(new Pair<Text,Text>(new Text("colf2"), new Text("colq2")));

    // Fake some iterators
    ArrayList<IteratorSetting> iterators = new ArrayList<IteratorSetting>();
    IteratorSetting setting = new IteratorSetting(50, SummingCombiner.class);
    setting.addOption("foo", "bar");
    iterators.add(setting);

    setting = new IteratorSetting(100, WholeRowIterator.class);
    setting.addOption("bar", "foo");
    iterators.add(setting);
View Full Code Here

Examples of org.apache.axis.Handler.addOption()

            Handler h = registry.getDeployedItem(type);
            if (h != null) {
                WSDDParameter[] parms = getParameters();
                for (int n = 0; n < parms.length; n++) {
                    WSDDParameter parm = parms[n];
                    h.addOption(parm.getName(), parm.getValue());
                }
                return h;
            }
            throw e;
        } catch (Exception e) {
View Full Code Here

Examples of org.apache.axis.client.ServiceClient.addOption()

            input.close();
            SOAPEnvelope envelope =
                                   (SOAPEnvelope) outMsg.getAsSOAPEnvelope();
            SOAPBodyElement body = envelope.getFirstBody();
            StringWriter writer = new StringWriter();
            client.addOption(AxisEngine.PROP_XML_DECL, new Boolean(false));
            SerializationContext ctx = new SerializationContext(writer,
                                                  client.getMessageContext());
            ctx.setPretty(true);
            body.output(ctx);
            sb.append(writer.toString());
View Full Code Here

Examples of org.apache.axis.handlers.soap.SOAPService.addOption()

    ServiceClient.initialize();
    AxisServer server = new AxisServer();
    HandlerRegistry hr = (HandlerRegistry) server.getHandlerRegistry();
    Handler disp = hr.find("RPCDispatcher");   
    SOAPService service = new SOAPService(disp);
    service.addOption("className", "test.encoding.TestArrayListConversions");
    service.addOption("methodName", "*");
   
    server.deployService(SERVICE_NAME, service);
   
    client = new ServiceClient(new LocalTransport(server));
View Full Code Here

Examples of org.apache.axis.providers.BasicProvider.addOption()

        // set the basic java provider deployment options
        Element prov = (Element)getElement().getElementsByTagNameNS(WSDDConstants.WSDD_JAVA, "provider").item(0);
        if (prov == null) {
            throw new WSDDException("The Java Provider requires the presence of a java:provider element in the WSDD");
        }
        provider.addOption(JavaProvider.OPTION_CLASSNAME, prov.getAttribute("className"));
        provider.addOption(JavaProvider.OPTION_IS_STATIC, new Boolean(prov.getAttribute("isStatic")));
       
        // set the classpath if present
        Element cp = (Element)getElement().getElementsByTagNameNS(WSDDConstants.WSDD_JAVA, "classPath").item(0);
        if (cp != null) {
View Full Code Here

Examples of org.apache.axis.providers.java.RPCProvider.addOption()

            /* that we invoke.                                                */
            /******************************************************************/
            Handler rpc = new RPCProvider();
            msgContext.setServiceHandler( rpc );

            rpc.addOption( "className", clsName );

            /** For now, allow all methods - we probably want to have a way to
            * configure this in the future.
            */
            rpc.addOption( "methodName", "*");
 
View Full Code Here

Examples of org.apache.cassandra.tools.BulkLoader.CmdLineOptions.addOption()

        }

        private static CmdLineOptions getCmdLineOptions()
        {
            CmdLineOptions options = new CmdLineOptions();
            options.addOption(null, DEBUG_OPTION,          "display stack traces");
            options.addOption("v",  VERBOSE_OPTION,        "verbose output");
            options.addOption("h",  HELP_OPTION,           "display this help message");
            options.addOption("m",  MANIFEST_CHECK_OPTION, "only check and repair the leveled manifest, without actually scrubbing the sstables");
            return options;
        }
View Full Code Here

Examples of org.apache.commons.betwixt.Options.addOption()

    private static final String GAMMA = "GAMMA";
   
    public void testOptionInheritance() throws Exception {
       
        Options optionsAlpha = new Options();
        optionsAlpha.addOption(OPTION_NAME_TWO, ALPHA);
        optionsAlpha.addOption(OPTION_NAME_THREE, ALPHA);
        optionsAlpha.addOption(OPTION_NAME_FOUR, ALPHA);
        Options optionsBeta = new Options();
        optionsBeta.addOption(OPTION_NAME_TWO, BETA);
        optionsBeta.addOption(OPTION_NAME_THREE, BETA);
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.