Tabnine Logo
IoSession.getFilterChain
Code IndexAdd Tabnine to your IDE (free)

How to use
getFilterChain
method
in
org.littleshoot.mina.common.IoSession

Best Java code snippets using org.littleshoot.mina.common.IoSession.getFilterChain (Showing top 5 results out of 315)

origin: org.littleshoot/mina-port

private void buildFilterChain(RegistrationRequest req, IoSession session)
    throws Exception {
  getFilterChainBuilder().buildFilterChain(session.getFilterChain());
  req.config.getFilterChainBuilder().buildFilterChain(
      session.getFilterChain());
  req.config.getThreadModel().buildFilterChain(session.getFilterChain());
}
origin: org.littleshoot/mina-port

private void buildFilterChain(RegistrationRequest req, IoSession session)
    throws Exception {
  this.getFilterChainBuilder().buildFilterChain(session.getFilterChain());
  req.config.getFilterChainBuilder().buildFilterChain(
      session.getFilterChain());
  req.config.getThreadModel().buildFilterChain(session.getFilterChain());
}
origin: org.littleshoot/mina-port

public void sessionClosed(NextFilter nextFilter, IoSession session)
    throws Exception {
  try {
    session.getHandler().sessionClosed(session);
  } finally {
    // Remove all filters.
    session.getFilterChain().clear();
  }
}
origin: org.littleshoot/mina-port

session.getFilterChain().fireSessionCreated(session);
session.getFilterChain().fireSessionOpened(session);
origin: org.littleshoot/mina-port

session.getFilterChain().fireSessionClosed(session);
org.littleshoot.mina.commonIoSessiongetFilterChain

Javadoc

Returns the filter chain that only affects this session.

Popular methods of IoSession

  • write
    Writes the specified message to remote peer. This operation is asynchronous; IoHandler#messageSent(I
  • close
    Closes this session immediately. This operation is asynthronous. Wait for the returned CloseFuture i
  • isConnected
    Returns true if this session is connected with remote peer.
  • getRemoteAddress
    Returns the socket address of remote peer.
  • getAttribute
    Returns the value of user-defined attribute of this session.
  • getLocalAddress
    Returns the socket address of local machine which is associated with this session.
  • setAttribute
    Sets a user-defined attribute.
  • setIdleTime
    Sets idle time for the specified type of idleness in seconds.
  • getWrittenMessages
    Returns the total number of messages which were written and encoded by this session.
  • getTransportType
    Returns transport type of this session.
  • getWrittenBytes
    Returns the total number of bytes which were written to this session.
  • getConfig
    Returns the configuration of this session.
  • getWrittenBytes,
  • getConfig,
  • getReadBytes,
  • getReadMessages,
  • getService,
  • isClosing,
  • removeAttribute,
  • setWriteTimeout,
  • getCloseFuture

Popular in Java

  • Making http post requests using okhttp
  • getSystemService (Context)
  • setContentView (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Runner (org.openjdk.jmh.runner)
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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