Package com.sun.enterprise.v3.services.impl

Examples of com.sun.enterprise.v3.services.impl.GrizzlyProxy


                            if (oneHost.getHost() != null && "localhost".equals(oneHost.getHost())) {
                                jmsHost = "0.0.0.0";
                            } else {
                                jmsHost = oneHost.getHost();
                            }
                            NetworkListener dummy = new DummyNetworkListener();
                            dummy.setPort(oneHost.getPort());
                            dummy.setAddress(jmsHost);
                            dummy.setProtocol("light-weight-listener");
                            dummy.setTransport("tcp");
                            dummy.setName(JMS_SERVICE);
                            grizzlyService.createNetworkProxy(dummy);
                            grizzlyListenerInit = true;
                        }
                    }
                }
View Full Code Here


        for (final NetworkListener listener : networkListeners) {
            final GrizzlyProxy grizzlyProxy =
                    (GrizzlyProxy) grizzlyService.lookupNetworkProxy(listener);
            if (grizzlyProxy != null) {
                final GrizzlyListener grizzlyListener =
                        grizzlyProxy.getUnderlyingListener();
                if (grizzlyListener != null) {
                    if (disable) {
                        grizzlyListener.getEmbeddedHttp().setErrorHandler(null);
                    } else {
                        if (grizzlyListener.getEmbeddedHttp().getErrorHandler() == null) {
                            grizzlyListener.getEmbeddedHttp().setErrorHandler(new ErrorHandler() {
                                @Override
                                public void onParsingError(com.sun.grizzly.tcp.Response response) {
                                    Response res = new Response();
                                    res.setCoyoteResponse(response);
                                    WebConnector connector = webContainer.getConnectorMap().get(listener.getName());
View Full Code Here

                }
            }
        }

        for (final NetworkListener listener : networkListeners) {
            final GrizzlyProxy grizzlyProxy =
                    (GrizzlyProxy) grizzlyService.lookupNetworkProxy(listener);
            if (grizzlyProxy != null) {
                final GrizzlyListener grizzlyListener =
                        grizzlyProxy.getUnderlyingListener();
                if (grizzlyListener != null) {
                    if (disable) {
                        grizzlyListener.getEmbeddedHttp().setErrorHandler(null);
                    } else {
                        if (grizzlyListener.getEmbeddedHttp().getErrorHandler() == null) {
View Full Code Here

                }
            }
        }
        for (final NetworkListener listener : networkListeners) {
            try {
                final GrizzlyProxy proxy = (GrizzlyProxy) grizzlyService.lookupNetworkProxy(listener);
                if (proxy != null) {
                    GenericGrizzlyListener grizzlyListener = (GenericGrizzlyListener) proxy.getUnderlyingListener();
                    List<HttpCodecFilter> codecFilters = grizzlyListener.getFilters(HttpCodecFilter.class);
                    if (codecFilters == null || codecFilters.isEmpty()) {
                        _logger.log(Level.SEVERE, CODE_FILTERS_NULL, new Object[] {listener.getName(), codecFilters});
                    } else {
                        for (HttpCodecFilter codecFilter : codecFilters) {
View Full Code Here

                }
            }
        }

        for (final NetworkListener listener : networkListeners) {
            final GrizzlyProxy grizzlyProxy =
                    (GrizzlyProxy) grizzlyService.lookupNetworkProxy(listener);
            if (grizzlyProxy != null) {
                final GrizzlyListener grizzlyListener =
                        grizzlyProxy.getUnderlyingListener();
                if (grizzlyListener != null) {
                    if (disable) {
                        grizzlyListener.getEmbeddedHttp().setErrorHandler(null);
                    } else {
                        if (grizzlyListener.getEmbeddedHttp().getErrorHandler() == null) {
View Full Code Here

                }
            }
        }
        for (final NetworkListener listener : networkListeners) {
            try {
                final GrizzlyProxy proxy = (GrizzlyProxy) grizzlyService.lookupNetworkProxy(listener);
                if (proxy != null) {
                    GenericGrizzlyListener grizzlyListener = (GenericGrizzlyListener) proxy.getUnderlyingListener();
                    List<HttpCodecFilter> codecFilters = grizzlyListener.getFilters(HttpCodecFilter.class);
                    if (codecFilters == null || codecFilters.isEmpty()) {
                        // if it's AJP listener - it's ok if we didn't find HttpCodecFilter
                        if (grizzlyListener.isAjpEnabled()) {
                            continue;
View Full Code Here

                }
            }
        }
        for (final NetworkListener listener : networkListeners) {
            try {
                final GrizzlyProxy proxy = (GrizzlyProxy) grizzlyService.lookupNetworkProxy(listener);
                if (proxy != null) {
                    GenericGrizzlyListener grizzlyListener = (GenericGrizzlyListener) proxy.getUnderlyingListener();
                    List<HttpCodecFilter> codecFilters = grizzlyListener.getFilters(HttpCodecFilter.class);
                    if (codecFilters == null || codecFilters.isEmpty()) {
                        _logger.log(Level.SEVERE, CODE_FILTERS_NULL, new Object[] {listener.getName(), codecFilters});
                    } else {
                        for (HttpCodecFilter codecFilter : codecFilters) {
View Full Code Here

                }
            }
        }
        for (final NetworkListener listener : networkListeners) {
            try {
                final GrizzlyProxy proxy = (GrizzlyProxy) grizzlyService.lookupNetworkProxy(listener);
                if (proxy != null) {
                    GenericGrizzlyListener grizzlyListener = (GenericGrizzlyListener) proxy.getUnderlyingListener();
                    List<HttpCodecFilter> codecFilters = grizzlyListener.getFilters(HttpCodecFilter.class);
                    if (codecFilters == null || codecFilters.isEmpty()) {
                        _logger.log(Level.SEVERE, CODE_FILTERS_NULL, new Object[] {listener.getName(), codecFilters});
                    } else {
                        for (HttpCodecFilter codecFilter : codecFilters) {
View Full Code Here

                }
            }
        }
        for (final NetworkListener listener : networkListeners) {
            try {
                final GrizzlyProxy proxy = (GrizzlyProxy) grizzlyService.lookupNetworkProxy(listener);
                if (proxy != null) {
                    GenericGrizzlyListener grizzlyListener = (GenericGrizzlyListener) proxy.getUnderlyingListener();
                    List<HttpCodecFilter> codecFilters = grizzlyListener.getFilters(HttpCodecFilter.class);
                    if (codecFilters == null || codecFilters.isEmpty()) {
                        _logger.log(Level.SEVERE, CODE_FILTERS_NULL, new Object[] {listener.getName(), codecFilters});
                    } else {
                        for (HttpCodecFilter codecFilter : codecFilters) {
View Full Code Here

                }
            }
        }
        for (final NetworkListener listener : networkListeners) {
            try {
                final GrizzlyProxy proxy = (GrizzlyProxy) grizzlyService.lookupNetworkProxy(listener);
                if (proxy != null) {
                    GenericGrizzlyListener grizzlyListener = (GenericGrizzlyListener) proxy.getUnderlyingListener();
                    List<HttpCodecFilter> codecFilters = grizzlyListener.getFilters(HttpCodecFilter.class);
                    if (codecFilters == null || codecFilters.isEmpty()) {
                        _logger.log(Level.SEVERE, CODE_FILTERS_NULL, new Object[] {listener.getName(), codecFilters});
                    } else {
                        for (HttpCodecFilter codecFilter : codecFilters) {
View Full Code Here

TOP

Related Classes of com.sun.enterprise.v3.services.impl.GrizzlyProxy

Copyright © 2018 www.massapicom. 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.