Examples of ProtocolHandler


Examples of org.exist.debugger.dbgp.ProtocolHandler

 
  private DebuggerImpl() throws IOException {
    acceptor = new NioSocketAcceptor();
    acceptor.setCloseOnDeactivation(true);
    acceptor.getFilterChain().addLast("protocol", new ProtocolCodecFilter(new CodecFactory()));
    acceptor.setHandler(new ProtocolHandler(this));
    acceptor.bind(new InetSocketAddress(eventPort));
  }
View Full Code Here

Examples of org.hornetq.core.protocol.ProtocolHandler

            configuration);
      useInvm = ConfigurationHelper.getBooleanProperty(TransportConstants.USE_INVM_PROP_NAME,
            TransportConstants.DEFAULT_USE_INVM,
            configuration);

      this.protocolHandler = new ProtocolHandler(protocolMap, this, configuration, scheduledThreadPool);

      host = ConfigurationHelper.getStringProperty(TransportConstants.HOST_PROP_NAME,
                                                   TransportConstants.DEFAULT_HOST,
                                                   configuration);
      port = ConfigurationHelper.getIntProperty(TransportConstants.PORT_PROP_NAME,
View Full Code Here

Examples of org.hornetq.core.protocol.ProtocolHandler

            configuration);
      useInvm = ConfigurationHelper.getBooleanProperty(TransportConstants.USE_INVM_PROP_NAME,
            TransportConstants.DEFAULT_USE_INVM,
            configuration);

      this.protocolHandler = new ProtocolHandler(protocolMap, this, configuration, scheduledThreadPool);

      host = ConfigurationHelper.getStringProperty(TransportConstants.HOST_PROP_NAME,
                                                   TransportConstants.DEFAULT_HOST,
                                                   configuration);
      port = ConfigurationHelper.getIntProperty(TransportConstants.PORT_PROP_NAME,
View Full Code Here

Examples of org.jboss.narayana.txframework.impl.handlers.ProtocolHandler

        Object serviceInstance = componentInstance.getInstance();
        Method serviceMethod = context.getMethod();
        Class serviceClass = serviceInstance.getClass();

        Object result;
        ProtocolHandler protocolHandler = HandlerFactory.getInstance(new ServiceInvocationMeta(serviceInstance, serviceClass, serviceMethod));
        try {
            protocolHandler.preInvocation();
            result = context.proceed();
            protocolHandler.notifySuccess();
        } catch (Exception e) {
            protocolHandler.notifyFailure();
            throw e;
        }

        return result;
    }
View Full Code Here

Examples of org.jboss.narayana.txframework.impl.handlers.ProtocolHandler

        Object serviceInstance = mr.getInstance();
        Class serviceClass = context.getTarget().getClass();
        Method serviceMethod = context.getMethod();

        Object result;
        ProtocolHandler protocolHandler = HandlerFactory.getInstance(new ServiceInvocationMeta(serviceInstance, serviceClass, serviceMethod));
        try {
            protocolHandler.preInvocation();
            result = context.proceed();
            protocolHandler.notifySuccess();
        } catch (Exception e) {
            protocolHandler.notifyFailure();
            throw e;
        }

        return result;
    }
View Full Code Here

Examples of org.openbel.framework.core.protocol.handler.ProtocolHandler

            final String url = downloadLocation;
            final String msg = "No protocol for " + protocol;
            throw new ResourceDownloadError(url, msg);
        }

        ProtocolHandler protocolHandler = null;
        switch (supportedProtocol) {
        case FILE:
            protocolHandler = new FileProtocolHandler();
            break;
        case HTTP:
            protocolHandler = new HttpProtocolHandler();
            break;
        case HTTPS:
            protocolHandler = new HttpsProtocolHandler();
            break;
        case SFTP:
            protocolHandler = new SftpProtocolHandler();
            break;
        case FTP:
            protocolHandler = new FTPProtocolHandler();
            break;
        default:
            final String url = downloadLocation;
            final String msg = "No case for " + supportedProtocol;
            throw new ResourceDownloadError(url, msg);
        }

        return protocolHandler.downloadResource(resourceLocation,
                downloadLocation);
    }
View Full Code Here

Examples of simple.http.ProtocolHandler

          MapperEngine engine = new MapperEngine(context);
         
          engine.load("SharedTagService", SharedTagService.class.getName());
          engine.link("*", "SharedTagService");
         
          ProtocolHandler handler = HandlerFactory.getInstance(engine);
         
          mSimplewebConnection = ConnectionFactory.getConnection(handler);
        }
        catch (Exception exc) {
          throw new RegainException("Creating simpleweb server failed", exc);
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.