Examples of create()


Examples of org.apache.axiom.attachments.lifecycle.LifecycleManager.create()

            //threshold = lm.getRuntimeThreshold(threshold);
           
            if (length >= threshold && attachmentDir != null) {
               
                // Get the file accessor
                FileAccessor fileAccessor = lm.create(attachmentDir);
                OutputStream fos = fileAccessor.getOutputStream();
               
                //Copy the bytes into the file
                ByteArrayInputStream is = new ByteArrayInputStream(b, off, length);
                BufferUtils.inputStream2OutputStream(is, fos);

Examples of org.apache.axis.components.net.SocketFactory.create()

     */
    private Socket getSecureSocket(
            String host, int port, StringBuffer otherHeaders, BooleanHolder useFullURL)
            throws Exception {
        SocketFactory factory = SocketFactoryFactory.getSecureFactory(getOptions());
        return factory.create(host, port, otherHeaders, useFullURL);
    }

    /**
     * Creates a non-ssl socket connection to the SOAP server
     *
 

Examples of org.apache.axis2.jaxws.message.factory.MessageFactory.create()

                MessageFactory mf =
                        (MessageFactory)FactoryRegistry.getFactory(MessageFactory.class);
                block = factory.createFrom(value, null, null);


                message = mf.create(proto);
                message.setBodyBlock(block);
            } catch (Exception e) {
                throw ExceptionFactory.makeWebServiceException(e);
            }
        } else if (mode.equals(Mode.MESSAGE)) {

Examples of org.apache.axis2.jaxws.message.factory.XMLPartFactory.create()

        if (protocol.equals(Protocol.unknown)) {
            throw ExceptionFactory.
            makeWebServiceException(Messages.getMessage("ProtocolIsNotKnown"));
        }
        XMLPartFactory factory = (XMLPartFactory) FactoryRegistry.getFactory(XMLPartFactory.class);
        xmlPart = factory.create(protocol);
        xmlPart.setParent(this);
    }
   
    /* (non-Javadoc)
     * @see org.apache.axis2.jaxws.message.Message#getAsSOAPMessage()

Examples of org.apache.batik.bridge.FilterBridge.create()

            }
            FilterBridge filterBridge = (FilterBridge)bridge;
            SVGOMDocument doc = (SVGOMDocument)filterElement.getOwnerDocument();
            ViewCSS v = ctx.getViewCSS();
            ctx.setViewCSS((ViewCSS)doc.getDefaultView());
            Filter filter = filterBridge.create(node,
                                                ctx,
                                                filterElement,
                                                element,
                                                null,   // in
                                                null,   // filterRegion

Examples of org.apache.batik.bridge.FilterPrimitiveBridge.create()

                    Messages.formatMessage("filter.subelement.illegal",
                                           new Object[] {elt.getLocalName()}));*/
            }
            FilterPrimitiveBridge filterBridge =
                (FilterPrimitiveBridge)bridge;
            Filter filterNode = filterBridge.create(filteredNode,
                                                    bridgeContext,
                                                    elt,
                                                    filteredElement,
                                                    in,
                                                    filterRegion,

Examples of org.apache.beehive.netui.pageflow.FacesBackingBean.create()

                //
                if ( bean != null )
                {
                    try
                    {
                        bean.create( request, response, servletContext );
                    }
                    catch ( Exception e )
                    {
                        _log.error( "Error while creating backing bean instance of " + backingClassName, e );
                    }

Examples of org.apache.camel.component.cxf.spring.CxfRsClientFactoryBeanDefinitionParser.SpringJAXRSClientFactoryBean.create()

        SpringJAXRSClientFactoryBean cfb = (SpringJAXRSClientFactoryBean) ctx.getBean("rsClient1");
        assertEquals("Get a wrong address", cfb.getAddress(), "http://localhost:9000/router");
        assertEquals("Get a wrong beanId", cfb.getBeanId(), "rsClient1");
        assertEquals("Get a wrong password", cfb.getPassword(), "passwd");
        assertEquals("Get a wrong user name", cfb.getUsername(), "username");
        CustomerService customerService = cfb.create(CustomerService.class);
        assertNotNull("The customer service should not be null", customerService);
        assertEquals("Got the wrong schemalocations size", 1, cfb.getSchemaLocations().size());
        assertEquals("Got the wrong schemalocation", "classpath:wsdl/Message.xsd", cfb.getSchemaLocations().get(0));
    }

Examples of org.apache.camel.component.cxf.spring.SpringJAXRSClientFactoryBean.create()

    public void testCreateCxfRsClientFactoryBean() {
        CxfRsEndpoint endpoint = resolveMandatoryEndpoint("cxfrs://bean://rsClient", CxfRsEndpoint.class);
        SpringJAXRSClientFactoryBean cfb = (SpringJAXRSClientFactoryBean)endpoint.createJAXRSClientFactoryBean();
        assertEquals("Get a wrong beanId", cfb.getBeanId(), "rsClient");
        assertEquals("Get a wrong address", cfb.getAddress(), "http://localhost:9002/helloworld");       
        assertTrue("Get a wrong resource class instance", cfb.create() instanceof CustomerService);
        assertEquals("Got the wrong loggingFeatureEnabled", false, cfb.isLoggingFeatureEnabled());
        assertEquals("Got the wrong loggingSizeLimit", 0, cfb.getLoggingSizeLimit());
    }
   
    @Override

Examples of org.apache.cassandra.db.composites.CellNameType.create()

            {
                MapType mapType = (MapType) column.type;
                AbstractType<?> valueType = mapType.getValuesType();
                if (column.type.isMultiCell())
                {
                    CellName name = nameType.create(rowPrefix, column, collectionElement);
                    Cell item = current.getColumn(name);
                    for (ByteBuffer value : inValues)
                    {
                        if (isSatisfiedByValue(value, item, valueType, Operator.EQ, now))
                            return true;
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.