Tabnine Logo
SslTransportServer
Code IndexAdd Tabnine to your IDE (free)

How to use
SslTransportServer
in
org.apache.activemq.transport.tcp

Best Java code snippets using org.apache.activemq.transport.tcp.SslTransportServer (Showing top 12 results out of 315)

origin: apache/activemq

/**
 * Allows subclasses of SslTransportFactory to create custom instances of
 * SslTransportServer.
 *
 * @param location
 * @param serverSocketFactory
 * @return a new SslTransportServer initialized from the given location and socket factory.
 * @throws IOException
 * @throws URISyntaxException
 */
protected SslTransportServer createSslTransportServer(final URI location, SSLServerSocketFactory serverSocketFactory) throws IOException, URISyntaxException {
  return new SslTransportServer(this, location, serverSocketFactory);
}
origin: apache/activemq

/**
 * Overriding to use SslTransportServer and allow for proper reflection.
 */
@Override
public TransportServer doBind(final URI location) throws IOException {
  try {
    Map<String, String> options = new HashMap<String, String>(URISupport.parseParameters(location));
    ServerSocketFactory serverSocketFactory = createServerSocketFactory();
    SslTransportServer server = createSslTransportServer(location, (SSLServerSocketFactory)serverSocketFactory);
    server.setWireFormatFactory(createWireFormatFactory(options));
    IntrospectionSupport.setProperties(server, options);
    Map<String, Object> transportOptions = IntrospectionSupport.extractProperties(options, "transport.");
    server.setTransportOption(transportOptions);
    server.bind();
    return server;
  } catch (URISyntaxException e) {
    throw IOExceptionSupport.create(e);
  }
}
origin: pierre/meteo

/**
 * Overriding to use SslTransportServer and allow for proper reflection.
 */
public TransportServer doBind(final URI location) throws IOException {
  try {
    Map<String, String> options = new HashMap<String, String>(URISupport.parseParameters(location));
    ServerSocketFactory serverSocketFactory = createServerSocketFactory();
    SslTransportServer server = new SslTransportServer(this, location, (SSLServerSocketFactory)serverSocketFactory);
    server.setWireFormatFactory(createWireFormatFactory(options));
    IntrospectionSupport.setProperties(server, options);
    Map<String, Object> transportOptions = IntrospectionSupport.extractProperties(options, "transport.");
    server.setTransportOption(transportOptions);
    server.bind();
    return server;
  } catch (URISyntaxException e) {
    throw IOExceptionSupport.create(e);
  }
}
origin: org.apache.activemq/activemq-osgi

@Override
protected SslTransportServer createSslTransportServer(URI location, SSLServerSocketFactory serverSocketFactory) throws IOException, URISyntaxException {
  final SslTransportServer server = super.createSslTransportServer(location, serverSocketFactory);
  server.setAllowLinkStealing(true);
  return server;
}
origin: org.apache.activemq/activemq-mqtt

@Override
protected SslTransportServer createSslTransportServer(URI location, SSLServerSocketFactory serverSocketFactory) throws IOException, URISyntaxException {
  final SslTransportServer server = super.createSslTransportServer(location, serverSocketFactory);
  server.setAllowLinkStealing(true);
  return server;
}
origin: org.apache.activemq/activemq-all

/**
 * Overriding to use SslTransportServer and allow for proper reflection.
 */
@Override
public TransportServer doBind(final URI location) throws IOException {
  try {
    Map<String, String> options = new HashMap<String, String>(URISupport.parseParameters(location));
    ServerSocketFactory serverSocketFactory = createServerSocketFactory();
    SslTransportServer server = createSslTransportServer(location, (SSLServerSocketFactory)serverSocketFactory);
    server.setWireFormatFactory(createWireFormatFactory(options));
    IntrospectionSupport.setProperties(server, options);
    Map<String, Object> transportOptions = IntrospectionSupport.extractProperties(options, "transport.");
    server.setTransportOption(transportOptions);
    server.bind();
    return server;
  } catch (URISyntaxException e) {
    throw IOExceptionSupport.create(e);
  }
}
origin: org.apache.activemq/activemq-client

/**
 * Allows subclasses of SslTransportFactory to create custom instances of
 * SslTransportServer.
 *
 * @param location
 * @param serverSocketFactory
 * @return a new SslTransportServer initialized from the given location and socket factory.
 * @throws IOException
 * @throws URISyntaxException
 */
protected SslTransportServer createSslTransportServer(final URI location, SSLServerSocketFactory serverSocketFactory) throws IOException, URISyntaxException {
  return new SslTransportServer(this, location, serverSocketFactory);
}
origin: org.apache.activemq/activemq-all

@Override
protected SslTransportServer createSslTransportServer(URI location, SSLServerSocketFactory serverSocketFactory) throws IOException, URISyntaxException {
  final SslTransportServer server = super.createSslTransportServer(location, serverSocketFactory);
  server.setAllowLinkStealing(true);
  return server;
}
origin: org.apache.activemq/activemq-client

/**
 * Overriding to use SslTransportServer and allow for proper reflection.
 */
@Override
public TransportServer doBind(final URI location) throws IOException {
  try {
    Map<String, String> options = new HashMap<String, String>(URISupport.parseParameters(location));
    ServerSocketFactory serverSocketFactory = createServerSocketFactory();
    SslTransportServer server = createSslTransportServer(location, (SSLServerSocketFactory)serverSocketFactory);
    server.setWireFormatFactory(createWireFormatFactory(options));
    IntrospectionSupport.setProperties(server, options);
    Map<String, Object> transportOptions = IntrospectionSupport.extractProperties(options, "transport.");
    server.setTransportOption(transportOptions);
    server.bind();
    return server;
  } catch (URISyntaxException e) {
    throw IOExceptionSupport.create(e);
  }
}
origin: org.apache.activemq/activemq-all

/**
 * Allows subclasses of SslTransportFactory to create custom instances of
 * SslTransportServer.
 *
 * @param location
 * @param serverSocketFactory
 * @return a new SslTransportServer initialized from the given location and socket factory.
 * @throws IOException
 * @throws URISyntaxException
 */
protected SslTransportServer createSslTransportServer(final URI location, SSLServerSocketFactory serverSocketFactory) throws IOException, URISyntaxException {
  return new SslTransportServer(this, location, serverSocketFactory);
}
origin: org.apache.activemq/activemq-osgi

/**
 * Overriding to use SslTransportServer and allow for proper reflection.
 */
@Override
public TransportServer doBind(final URI location) throws IOException {
  try {
    Map<String, String> options = new HashMap<String, String>(URISupport.parseParameters(location));
    ServerSocketFactory serverSocketFactory = createServerSocketFactory();
    SslTransportServer server = createSslTransportServer(location, (SSLServerSocketFactory)serverSocketFactory);
    server.setWireFormatFactory(createWireFormatFactory(options));
    IntrospectionSupport.setProperties(server, options);
    Map<String, Object> transportOptions = IntrospectionSupport.extractProperties(options, "transport.");
    server.setTransportOption(transportOptions);
    server.bind();
    return server;
  } catch (URISyntaxException e) {
    throw IOExceptionSupport.create(e);
  }
}
origin: org.apache.activemq/activemq-osgi

/**
 * Allows subclasses of SslTransportFactory to create custom instances of
 * SslTransportServer.
 *
 * @param location
 * @param serverSocketFactory
 * @return a new SslTransportServer initialized from the given location and socket factory.
 * @throws IOException
 * @throws URISyntaxException
 */
protected SslTransportServer createSslTransportServer(final URI location, SSLServerSocketFactory serverSocketFactory) throws IOException, URISyntaxException {
  return new SslTransportServer(this, location, serverSocketFactory);
}
org.apache.activemq.transport.tcpSslTransportServer

Javadoc

An SSL TransportServer. Allows for client certificate authentication (refer to setNeedClientAuth for details). NOTE: Client certificate authentication is disabled by default.

Most used methods

  • <init>
    Creates a ssl transport server for the specified url using the provided serverSocketFactory
  • bind
    Binds this socket to the previously specified URI. Overridden to allow for proper handling of needCl
  • setTransportOption
  • setWireFormatFactory
  • setAllowLinkStealing

Popular in Java

  • Making http post requests using okhttp
  • setScale (BigDecimal)
  • compareTo (BigDecimal)
  • runOnUiThread (Activity)
  • Kernel (java.awt.image)
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now