Examples of Connection

  • 2 ends that can be connected to {@link Gate}.
  • A {@link Path} that provides the path from the first end to the last end @author zxpletran007
  • spark.api.Connection
    A connection to a SPARQL processor. Connections can be used to create commands, get metadata, or be closed.
  • sun.rmi.transport.Connection
  • tv.floe.metronome.classification.neuralnetworks.core.Connection
  • vicazh.hyperpool.stream.Connection
    This class is the superclass of all connections @author Victor Zhigunov @version 0.4.8.3

  • Examples of org.eclipse.rap.rwt.remote.Connection

      public void testCreatesRemoteObject() {
        TextReplacementData data = new TextReplacementData();

        data.put( "shortcut", "replacement" );

        Connection connection = RWT.getUISession().getConnection();
        verify( connection ).createRemoteObject( "tabris.TextReplacement" );
      }
    View Full Code Here

    Examples of org.exolab.jms.net.connector.Connection

            try {
                Principal subject = null;
                if (principal != null) {
                    subject = new BasicPrincipal(principal, credentials);
                }
                Connection connection = _manager.getConnection(subject, uri);
                result = connection.getLocalURI();

                // @todo - closing the connection will work for now in that
                // connection reference counts for OpenJMS will be correct. Won't
                // support the case where a client exports an object to the server
                // and then disposes its server proxies - the connection
                // will be prematurely closed. The connection needs to be kept
                // until the object is unexported.
                connection.close();
            } catch (ResourceException exception) {
                throw new ExportException("Failed to connect to URI: " + uri,
                        exception);
            }
            return result;
    View Full Code Here

    Examples of org.geotools.swing.dialog.JTextReporter.Connection

            windowFixture.textBox().requireText(TEXT[0]);
        }
           
        @Test
        public void connectionObjectIsReturned() throws Exception {
            Connection conn = null;
            try {
                conn = showDialog(TITLE).get(DISPLAY_TIMEOUT, TimeUnit.MILLISECONDS);
            } catch (TimeoutException ex) {
                fail("connection object not returned");
            }
    View Full Code Here

    Examples of org.glassfish.grizzly.Connection

        // --------------------------------------------- Methods from Filter


        @Override
        public NextAction handleRead(final FilterChainContext ctx) throws IOException {
            final Connection connection = ctx.getConnection();
            final HttpContent httpContent = ctx.getMessage();

            final HttpRequestPacket request = (HttpRequestPacket) httpContent.getHttpHeader();
            final URI requestURI;
            try {
                final String uri = request.getQueryString() == null ?
                        request.getRequestURI() :
                        request.getRequestURI() + "?" + request.getQueryString();
                requestURI = new URI(uri);
            } catch (URISyntaxException ignored) {
                return ctx.getStopAction();
            }

            final boolean redirectToSecure;
            if (secure != null) { // if secure is set - we use it
                redirectToSecure = secure;
            } else // if secure is not set - use secure settings opposite to the current request
                final SSLEngine sslEngine = SSLUtils.getSSLEngine(connection);
                redirectToSecure = sslEngine == null;
            }


            final StringBuilder hostPort = new StringBuilder();

            String hostHeader = request.getHeader("host");
            if (hostHeader == null) {
                String hostRequestURI = requestURI.getHost();

                if (hostRequestURI == null) {
                    hostPort.append(request.getLocalHost());
                } else {
                    hostPort.append(hostRequestURI);
                }

                hostPort.append(':');

                if (redirectPort == null) {
                    int port = requestURI.getPort();
                    if (port == -1) {
                        hostPort.append(request.getLocalPort());
                    } else {
                        hostPort.append(port);
                    }
                } else {
                    hostPort.append(redirectPort);
                }

            } else if (redirectPort != null) { // if port is specified - cut it from host header
                final int colonIdx = hostHeader.indexOf(':');
                if (colonIdx != -1) {
                    hostHeader = hostHeader.substring(0, colonIdx);
                }
                hostPort.append(hostHeader)
                        .append(':')
                        .append(redirectPort);
            } else {
                hostPort.append(hostHeader);
            }

            if (hostPort.length() > 0) {
                String path = requestURI.toString();
               
                assert path != null;

                final StringBuilder sb = new StringBuilder();
                sb.append((redirectToSecure ? "https://" : "http://"))
                        .append(hostPort)
                        .append(path);

                request.setSkipRemainder(true);
                final HttpResponsePacket response = HttpResponsePacket.builder(request)
                        .status(302)
                        .header("Location", sb.toString())
                        .contentLength(0)
                        .build();
                ctx.write(response);
            } else {
                connection.closeSilently();
            }
           
            return ctx.getStopAction();
        }
    View Full Code Here

    Examples of org.glassfish.tyrus.spi.Connection

                    return null;
                }

                @Override
                public Connection createConnection() {
                    return new Connection() {

                        private final ReadHandler readHandler = new TyrusReadHandler(protocolHandler, socket,
                                incomingBufferSize,
                                sessionForRemoteEndpoint.getNegotiatedExtensions(),
                                extensionContext);
    View Full Code Here

    Examples of org.glyptodon.guacamole.net.auth.Connection

                        request.getParameter(param));

            }

            // Create connection skeleton
            Connection connection = directory.get(identifier);
            connection.setName(name);
            connection.setConfiguration(config);

            // Update connection
            directory.update(connection);

        }
    View Full Code Here

    Examples of org.gudy.azureus2.plugins.network.Connection

            if ( !pc.isChokedByMe()){
             
              con_unchoked++;
            }
           
            Connection connection = pc.getPluginConnection();
           
            if ( connection != null ){
             
              OutgoingMessageQueue mq = connection.getOutgoingMessageQueue();
             
              int q = mq.getDataQueuedBytes() + mq.getProtocolQueuedBytes();
             
              bytes_queued += q;
             
    View Full Code Here

    Examples of org.hampelratte.svdrp.Connection

       *            The SVDRP command to send
       * @return The SVDRP response or null, if the Command couldn't be sent
       */
      public Response send(final Command cmd) {
        Response res = null;
        Connection connection=null;
        try {
          logger.trace("New connection");
          connection = new Connection(mIp, mPort, timeout, charset);
          logger.debug("Try to send VDR command: {}", cmd.getCommand());

          res = connection.send(cmd);
          logger.debug("Recived Message from VDR: {}", res.getMessage());
        } catch (Exception e) {
          logger.error("Could not connect to VDR on {}: {}", mIp + ":" + mPort,
              e);
        } finally {
          if (connection != null) {
            try {
              connection.close();
            } catch (IOException e) {
              logger.error("Could not close connection to VDR on {}: {}", mIp + ":" + mPort,
                  e);
            }     
          }
    View Full Code Here

    Examples of org.hbaseexplorer.domain.Connection

                }
            );
        }

        public void createConnection(Configuration conf) {
            Connection conn = new Connection(conf);
            conn.connect();
            addConnectionToTree(conn);
        }
    View Full Code Here

    Examples of org.hornetq.spi.core.remoting.Connection

                         Packet packet = new PacketImpl(PacketImpl.SESS_START);

                         packet.setChannelID(channel.getID());

                         Connection conn = channel.getConnection().getTransportConnection();

                         HornetQBuffer buffer = packet.encode(channel.getConnection());

                         conn.write(buffer, false, false);
                      }

                      resetCreditManager = true;
                   }
    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.