congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
SocketCustomizationListener
Code IndexAdd Tabnine to your IDE (free)

How to use
SocketCustomizationListener
in
org.eclipse.jetty.server

Best Java code snippets using org.eclipse.jetty.server.SocketCustomizationListener (Showing top 2 results out of 315)

origin: at.bestsolution.efxclipse.eclipse/org.eclipse.jetty.server

@Override
public void onOpened(Connection connection)
{
  EndPoint endp = connection.getEndPoint();
  boolean ssl=false;
  
  if (_ssl && endp instanceof DecryptedEndPoint)
  {
    endp = ((DecryptedEndPoint)endp).getSslConnection().getEndPoint();
    ssl=true;
  }
  
  if (endp instanceof ChannelEndPoint) 
  {
    Socket socket = ((ChannelEndPoint)endp).getSocket();
    customize(socket,connection.getClass(),ssl);
  }
}
origin: jenkinsci/winstone

@Override
public void onOpened(Connection connection)
{
  EndPoint endp = connection.getEndPoint();
  boolean ssl=false;
  
  if (_ssl && endp instanceof DecryptedEndPoint)
  {
    endp = ((DecryptedEndPoint)endp).getSslConnection().getEndPoint();
    ssl=true;
  }
  
  if (endp instanceof SocketChannelEndPoint) 
  {
    Socket socket = ((SocketChannelEndPoint)endp).getSocket();
    customize(socket,connection.getClass(),ssl);
  }
}
org.eclipse.jetty.serverSocketCustomizationListener

Javadoc

A Connection Lister for customization of SocketConnections.

Instances of this listener may be added to a Connector (or ConnectionFactory) so that they are applied to all connections for that connector (or protocol) and thus allow additional Socket configuration to be applied by implementing #customize(Socket,Class,boolean)

Most used methods

  • customize
    This method may be extended to configure a socket on open events.

Popular in Java

  • Making http requests using okhttp
  • runOnUiThread (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • getContentResolver (Context)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Top 15 Vim Plugins
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