Examples of EndpointConfig


Examples of org.jboss.ws.annotation.EndpointConfig

/*     */   protected void processEndpointConfig(Deployment dep, ServerEndpointMetaData sepMetaData, Class<?> wsClass, String linkName)
/*     */   {
/*  63 */     String configName = null;
/*  64 */     String configFile = null;
/*     */
/*  66 */     EndpointConfig anEndpointConfig = (EndpointConfig)wsClass.getAnnotation(EndpointConfig.class);
/*  67 */     if (anEndpointConfig != null)
/*     */     {
/*  69 */       if (anEndpointConfig.configName().length() > 0) {
/*  70 */         configName = anEndpointConfig.configName();
/*     */       }
/*  72 */       if (anEndpointConfig.configFile().length() > 0) {
/*  73 */         configFile = anEndpointConfig.configFile();
/*     */       }
/*     */     }
/*  76 */     JSEArchiveMetaData jseMetaData = (JSEArchiveMetaData)dep.getAttachment(JSEArchiveMetaData.class);
/*  77 */     if (jseMetaData != null)
/*     */     {
View Full Code Here

Examples of org.jboss.wsf.spi.metadata.config.EndpointConfig

        final ServerConfig config = getServerConfig(context);
        if (config != null) {
            final PathAddress address = PathAddress.pathAddress(operation.require(OP_ADDR));
            final String name = address.getLastElement().getValue();

            EndpointConfig endpointConfig = new EndpointConfig();
            endpointConfig.setConfigName(name);
            config.addEndpointConfig(endpointConfig);
            if (!context.isBooting()) {
                context.restartRequired();
            }
        }
View Full Code Here

Examples of org.jboss.wsf.spi.metadata.config.EndpointConfig

        final ServerConfig config = getServerConfig(context);
        if (config != null) {
            final PathAddress address = PathAddress.pathAddress(operation.require(OP_ADDR));
            final String name = address.getLastElement().getValue();

            EndpointConfig target = null;
            for (EndpointConfig epConfig : config.getEndpointConfigs()) {
                if (epConfig.getConfigName().equals(name)) {
                    target = epConfig;
                }
            }
View Full Code Here

Examples of org.jboss.wsf.spi.metadata.config.EndpointConfig

        if (client) {
            ClientConfig clientConfig = new ClientConfig(configName, preHandlerChains, postHandlerChains, props, null);
            serverConfig.registerClientConfig(clientConfig);
            config = clientConfig;
        } else {
            EndpointConfig endpointConfig = new EndpointConfig(configName, preHandlerChains, postHandlerChains, props, null);
            serverConfig.registerEndpointConfig(endpointConfig);
            config = endpointConfig;
        }
    }
View Full Code Here

Examples of org.jboss.wsf.spi.metadata.config.EndpointConfig

        Assert.assertEquals("MyHandler2", clCfg.getPostHandlerChains().get(0).getHandlers().get(0).getHandlerName());
        Assert.assertEquals("org.jboss.ws.common.invocation.MyHandler2", clCfg.getPostHandlerChains().get(0).getHandlers().get(0).getHandlerClass());
        Assert.assertEquals("##SOAP11_HTTP ##SOAP11_HTTP_MTOM ##SOAP12_HTTP ##SOAP12_HTTP_MTOM", clCfg.getPostHandlerChains().get(0).getProtocolBindings());
       
        serverConfig.reloadEndpointConfigs();
        EndpointConfig epCfg = serverConfig.getEndpointConfig("Standard-Endpoint-Config");
        Assert.assertNotNull(epCfg);
        Assert.assertTrue(epCfg.getProperties().isEmpty());
        Assert.assertTrue(epCfg.getPreHandlerChains().isEmpty());
        Assert.assertTrue(epCfg.getPostHandlerChains().isEmpty());
        epCfg = serverConfig.getEndpointConfig("Recording-Endpoint-Config");
        Assert.assertNotNull(epCfg);
        Assert.assertEquals(2, epCfg.getProperties().size());
        Assert.assertEquals("bar", epCfg.getProperties().get("foo"));
        Assert.assertEquals("bar2", epCfg.getProperties().get("foo2"));
        Assert.assertEquals(1, epCfg.getPreHandlerChains().size());
        Assert.assertEquals("recording-handlers", epCfg.getPreHandlerChains().get(0).getId());
        Assert.assertEquals(2, epCfg.getPreHandlerChains().get(0).getHandlers().size());
        Assert.assertEquals("RecordingHandler", epCfg.getPreHandlerChains().get(0).getHandlers().get(0).getHandlerName());
        Assert.assertEquals("org.jboss.ws.common.invocation.RecordingServerHandler", epCfg.getPreHandlerChains().get(0).getHandlers().get(0).getHandlerClass());
        Assert.assertEquals("AnotherRecordingHandler", epCfg.getPreHandlerChains().get(0).getHandlers().get(1).getHandlerName());
        Assert.assertEquals("org.jboss.ws.common.invocation.RecordingServerHandler", epCfg.getPreHandlerChains().get(0).getHandlers().get(1).getHandlerClass());
        Assert.assertEquals("##SOAP11_HTTP ##SOAP11_HTTP_MTOM ##SOAP12_HTTP ##SOAP12_HTTP_MTOM", epCfg.getPreHandlerChains().get(0).getProtocolBindings());
        Assert.assertEquals(1, epCfg.getPostHandlerChains().size());
        Assert.assertEquals("recording-handlers2", epCfg.getPostHandlerChains().get(0).getId());
        Assert.assertEquals(2, epCfg.getPostHandlerChains().get(0).getHandlers().size());
        Assert.assertEquals("RecordingHandler2", epCfg.getPostHandlerChains().get(0).getHandlers().get(0).getHandlerName());
        Assert.assertEquals("org.jboss.ws.common.invocation.RecordingServerHandler", epCfg.getPostHandlerChains().get(0).getHandlers().get(0).getHandlerClass());
        Assert.assertEquals("AnotherRecordingHandler2", epCfg.getPostHandlerChains().get(0).getHandlers().get(1).getHandlerName());
        Assert.assertEquals("org.jboss.ws.common.invocation.RecordingServerHandler", epCfg.getPostHandlerChains().get(0).getHandlers().get(1).getHandlerClass());
        Assert.assertEquals("##SOAP11_HTTP ##SOAP11_HTTP_MTOM ##SOAP12_HTTP ##SOAP12_HTTP_MTOM", epCfg.getPostHandlerChains().get(0).getProtocolBindings());
    }
View Full Code Here

Examples of org.jboss.wsf.spi.metadata.config.EndpointConfig

            final PathAddress address = PathAddress.pathAddress(operation.require(OP_ADDR));
            final String name = address.getLastElement().getValue();

            ServerConfig config = (ServerConfig) configService.getValue();
            EndpointConfig endpointConfig = new EndpointConfig();
            endpointConfig.setConfigName(name);
            if (model.hasDefined(Constants.PRE_HANDLER_CHAINS)) {
                ModelNode preHandlers = model.get(Constants.PRE_HANDLER_CHAINS);
                endpointConfig.setPreHandlerChains(buildChainMD(preHandlers));
            }
            if (model.hasDefined(Constants.POST_HANDLER_CHAINS)) {
                ModelNode postHandlers = model.get(Constants.POST_HANDLER_CHAINS);
                endpointConfig.setPostHandlerChains(buildChainMD(postHandlers));
            }

            if (model.hasDefined(Constants.PROPERTY)) {
                for (String key : model.get(Constants.PROPERTY).keys()) {
                    endpointConfig.setProperty(key, model.get(Constants.PROPERTY).get(key).asString());
                }
            }
            if (model.hasDefined(Constants.FEATURE)) {
                for (String key : model.get(Constants.FEATURE).keys()) {
                    endpointConfig.setFeature(new Feature(key), true);
                }
            }
            config.addEndpointConfig(endpointConfig);
        }
    }
View Full Code Here

Examples of org.jboss.wsf.spi.metadata.config.EndpointConfig

            final PathAddress address = PathAddress.pathAddress(operation.require(OP_ADDR));
            final String name = address.getLastElement().getValue();

            ServerConfig config = (ServerConfig) configService.getValue();
            EndpointConfig target = null;
            for (EndpointConfig epConfig : config.getEndpointConfigs()) {
                if (epConfig.getConfigName().equals(name)) {
                    target = epConfig;
                }
            }
View Full Code Here

Examples of org.jboss.wsf.spi.metadata.config.EndpointConfig

            final PathAddress address = PathAddress.pathAddress(operation.require(OP_ADDR));
            final String name = address.getLastElement().getValue();

            ServerConfig config = (ServerConfig) configService.getValue();
            EndpointConfig endpointConfig = new EndpointConfig();
            endpointConfig.setConfigName(name);
            if (model.hasDefined(Constants.PRE_HANDLER_CHAINS)) {
                ModelNode preHandlers = model.get(Constants.PRE_HANDLER_CHAINS);
                endpointConfig.setPreHandlerChains(buildChainMD(preHandlers));
            }
            if (model.hasDefined(Constants.POST_HANDLER_CHAINS)) {
                ModelNode postHandlers = model.get(Constants.POST_HANDLER_CHAINS);
                endpointConfig.setPostHandlerChains(buildChainMD(postHandlers));
            }

            if (model.hasDefined(Constants.PROPERTY)) {
                for (String key : model.get(Constants.PROPERTY).keys()) {
                    endpointConfig.setProperty(key, model.get(Constants.PROPERTY).get(key).asString());
                }
            }
            if (model.hasDefined(Constants.FEATURE)) {
                for (String key : model.get(Constants.FEATURE).keys()) {
                    endpointConfig.setFeature(new Feature(key), true);
                }
            }
            config.addEndpointConfig(endpointConfig);
        }
    }
View Full Code Here

Examples of org.jboss.wsf.spi.metadata.config.EndpointConfig

            final PathAddress address = PathAddress.pathAddress(operation.require(OP_ADDR));
            final String name = address.getLastElement().getValue();

            ServerConfig config = (ServerConfig) configService.getValue();
            EndpointConfig target = null;
            for (EndpointConfig epConfig : config.getEndpointConfigs()) {
                if (epConfig.getConfigName().equals(name)) {
                    target = epConfig;
                }
            }
View Full Code Here

Examples of org.jboss.wsf.spi.metadata.config.EndpointConfig

        final ServerConfig config = getServerConfig(context);
        if (config != null) {
            final PathAddress address = PathAddress.pathAddress(operation.require(OP_ADDR));
            final String name = address.getLastElement().getValue();

            EndpointConfig endpointConfig = new EndpointConfig();
            endpointConfig.setConfigName(name);
            config.addEndpointConfig(endpointConfig);
            if (!context.isBooting()) {
                context.reloadRequired();
            }
        }
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.