SecureNioChannel.close
Code IndexAdd Codota to your IDE (free)

Best Java code snippets using org.apache.tomcat.util.net.SecureNioChannel.close (Showing top 7 results out of 315)

  • Common ways to obtain SecureNioChannel
private void myMethod () {
SecureNioChannel s =
  • SocketWrapper socketWrapper;(SecureNioChannel) socketWrapper.getSocket()
  • Smart code suggestions by Codota
}
origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core

@Override
public void close(boolean force) throws IOException {
  try {
    close();
  } finally {
    if (force || closed) {
      closed = true;
      sc.socket().close();
      sc.close();
    }
  }
}
origin: org.apache.coyote.springsource/com.springsource.org.apache.coyote.springsource

/**
 * Force a close, can throw an IOException
 * @param force boolean
 * @throws IOException
 */
public void close(boolean force) throws IOException {
  try {
    close();
  }finally {
    if ( force || closed ) {
      closed = true;
      sc.socket().close();
      sc.close();
    }
  }
}
origin: codefollower/Tomcat-Research

/**
 * Force a close, can throw an IOException
 * @param force boolean
 * @throws IOException
 */
@Override
public void close(boolean force) throws IOException {
  try {
    close();
  }finally {
    if ( force || closed ) {
      closed = true;
      sc.socket().close();
      sc.close();
    }
  }
}
origin: com.ovea.tajin.server/tajin-server-tomcat7

/**
 * Force a close, can throw an IOException
 * @param force boolean
 * @throws IOException
 */
@Override
public void close(boolean force) throws IOException {
  try {
    close();
  }finally {
    if ( force || closed ) {
      closed = true;
      sc.socket().close();
      sc.close();
    }
  }
}
origin: org.apache.geronimo.ext.tomcat/catalina

/**
 * Force a close, can throw an IOException
 * @param force boolean
 * @throws IOException
 */
@Override
public void close(boolean force) throws IOException {
  try {
    close();
  }finally {
    if ( force || closed ) {
      closed = true;
      sc.socket().close();
      sc.close();
    }
  }
}
origin: org.apache.coyote/com.springsource.org.apache.coyote

/**
 * Force a close, can throw an IOException
 * @param force boolean
 * @throws IOException
 */
@Override
public void close(boolean force) throws IOException {
  try {
    close();
  }finally {
    if ( force || closed ) {
      closed = true;
      sc.socket().close();
      sc.close();
    }
  }
}
origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core

private void closeSilently() {
  try {
    close(true);
  } catch (IOException ioe) {
    // This is expected - swallowing the exception is the reason this
    // method exists. Log at debug in case someone is interested.
    log.debug(sm.getString("channel.nio.ssl.closeSilentError"), ioe);
  }
}
org.apache.tomcat.util.netSecureNioChannelclose

Javadoc

Sends a SSL close message, will not physically close the connection here.
To close the connection, you could do something like
 
close(); 
while (isOpen() && !myTimeoutFunction()) Thread.sleep(25); 
if ( isOpen() ) close(true); //forces a close if you timed out 

Popular methods of SecureNioChannel

  • <init>
  • flush
    Flush the channel.
  • getEmptyBuf
  • getSslEngine
  • handshakeUnwrap
    Perform handshake unwrap
  • handshakeWrap
    Performs the WRAP function
  • tasks
    Executes all the tasks needed on the same thread.
  • isSendFile
  • reset
  • getBufHandler
  • getIOChannel
  • handshake
    Performs SSL handshake, non blocking, but performs NEED_TASK on the same thread. Hence, you should n
  • getIOChannel,
  • handshake,
  • rehandshake,
  • checkInterruptStatus,
  • closeSilently,
  • flushOutbound,
  • getAppReadBufHandler,
  • processSNI

Popular in Java

  • Making http post requests using okhttp
  • getApplicationContext (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • String (java.lang)
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr

For IntelliJ IDEA,
Android Studio or Eclipse

  • Search for JavaScript code betaCodota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutBlogContact Us
  • Plugin user guideTerms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)