Lines 37-42
import org.apache.tomcat.jni.Pool;
Link Here
|
37 |
import org.apache.tomcat.jni.SSL; |
37 |
import org.apache.tomcat.jni.SSL; |
38 |
import org.apache.tomcat.jni.SSLContext; |
38 |
import org.apache.tomcat.jni.SSLContext; |
39 |
import org.apache.tomcat.jni.SSLSocket; |
39 |
import org.apache.tomcat.jni.SSLSocket; |
|
|
40 |
import org.apache.tomcat.jni.Sockaddr; |
40 |
import org.apache.tomcat.jni.Socket; |
41 |
import org.apache.tomcat.jni.Socket; |
41 |
import org.apache.tomcat.jni.Status; |
42 |
import org.apache.tomcat.jni.Status; |
42 |
import org.apache.tomcat.util.ExceptionUtils; |
43 |
import org.apache.tomcat.util.ExceptionUtils; |
Lines 326-333
public class AprEndpoint extends AbstractEndpoint {
Link Here
|
326 |
public void setSSLInsecureRenegotiation(boolean SSLInsecureRenegotiation) { this.SSLInsecureRenegotiation = SSLInsecureRenegotiation; } |
327 |
public void setSSLInsecureRenegotiation(boolean SSLInsecureRenegotiation) { this.SSLInsecureRenegotiation = SSLInsecureRenegotiation; } |
327 |
public boolean getSSLInsecureRenegotiation() { return SSLInsecureRenegotiation; } |
328 |
public boolean getSSLInsecureRenegotiation() { return SSLInsecureRenegotiation; } |
328 |
|
329 |
|
329 |
// --------------------------------------------------------- Public Methods |
|
|
330 |
|
330 |
|
|
|
331 |
/** |
332 |
* Port in use. |
333 |
*/ |
334 |
@Override |
335 |
public int getLocalPort() { |
336 |
long s = serverSock; |
337 |
if (s == 0) { |
338 |
return -1; |
339 |
} else { |
340 |
long sa; |
341 |
try { |
342 |
sa = Address.get(Socket.APR_LOCAL, s); |
343 |
Sockaddr addr = Address.getInfo(sa); |
344 |
return addr.port; |
345 |
} catch (Exception e) { |
346 |
return -1; |
347 |
} |
348 |
} |
349 |
} |
350 |
|
351 |
|
352 |
// --------------------------------------------------------- Public Methods |
331 |
|
353 |
|
332 |
/** |
354 |
/** |
333 |
* Number of keepalive sockets. |
355 |
* Number of keepalive sockets. |