|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
com.sun.enterprise.web.connector.grizzly.SelectorThread
com.sun.enterprise.web.connector.grizzly.blocking.SelectorBlockingThread
public class SelectorBlockingThread
Blocking SocketServer implementation.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
Thread.State, Thread.UncaughtExceptionHandler |
| Field Summary | |
|---|---|
protected SSLImplementation |
sslImplementation
|
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
SelectorBlockingThread()
|
|
| Method Summary | |
|---|---|
protected Socket |
acceptSocket()
|
String[] |
getEnabledCipherSuites()
Returns the list of cipher suites to be enabled when SSLEngine
is initialized. |
String[] |
getEnabledProtocols()
Returns the list of protocols to be enabled when SSLEngine
is initialized. |
protected ReadBlockingTask |
getReadBlockingTask(Socket socket)
Return a ReadBlockingTask from the pool. |
ServerSocketFactory |
getServerSocketFactory()
Return the ServerSocketFactory used when a blocking IO
is enabled. |
SSLImplementation |
getSSLImplementation()
Return the current SSLImplementation this Thread |
void |
initEndpoint()
initialized the endpoint by creating the ServerSocketChannel
and by initializing the server socket. |
boolean |
isClientMode()
Returns true if the SSlEngine is set to use client mode when handshaking. |
boolean |
isNeedClientAuth()
Returns true if the SSLEngine will require client authentication. |
boolean |
isWantClientAuth()
Returns true if the engine will request client authentication. |
protected DefaultProcessorTask |
newProcessorTask(boolean initialize)
Create ProcessorTask objects and configure it to be ready
to proceed request. |
void |
setClientMode(boolean clientMode)
Configures the engine to use client (or server) mode when handshaking. |
void |
setEnabledCipherSuites(String[] enabledCipherSuites)
Sets the list of cipher suites to be enabled when SSLEngine
is initialized. |
void |
setEnabledProtocols(String[] enabledProtocols)
Sets the list of protocols to be enabled when SSLEngine
is initialized. |
void |
setNeedClientAuth(boolean needClientAuth)
Configures the engine to require client authentication. |
void |
setSecure(boolean secure)
|
void |
setServerSocketFactory(ServerSocketFactory factory)
Set the ServerSocketFactory used when a blocking IO
is enabled. |
protected void |
setSocketOptions(Socket socket)
|
void |
setSSLImplementation(SSLImplementation sslImplementation)
Set the SSLImplementation used by this thread.It usually
means HTTPS will be used. |
void |
setWantClientAuth(boolean wantClientAuth)
Configures the engine to request client authentication. |
void |
startEndpoint()
Start the Acceptor Thread and wait for incoming connection, in a non blocking mode. |
protected void |
startListener()
Start a blocking server Socket |
void |
stopEndpoint()
Stop a blocking server Socket |
| Methods inherited from class java.lang.Thread |
|---|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected SSLImplementation sslImplementation
| Constructor Detail |
|---|
public SelectorBlockingThread()
| Method Detail |
|---|
public void initEndpoint()
throws IOException,
InstantiationException
ServerSocketChannel
and by initializing the server socket.
initEndpoint in class SelectorThreadIOException
InstantiationExceptionprotected ReadBlockingTask getReadBlockingTask(Socket socket)
ReadBlockingTask from the pool.
If the pool is empty,
create a new instance.
protected void setSocketOptions(Socket socket)
setSocketOptions in class SelectorThread
public void startEndpoint()
throws IOException,
InstantiationException
startEndpoint in class SelectorThreadIOException
InstantiationExceptionpublic void stopEndpoint()
Socket
stopEndpoint in class SelectorThreadprotected Socket acceptSocket()
protected void startListener()
Socket
startListener in class SelectorThreadprotected DefaultProcessorTask newProcessorTask(boolean initialize)
ProcessorTask objects and configure it to be ready
to proceed request.
newProcessorTask in class SelectorThreadpublic ServerSocketFactory getServerSocketFactory()
ServerSocketFactory used when a blocking IO
is enabled.
getServerSocketFactory in interface SecureSelector<SSLImplementation>public void setServerSocketFactory(ServerSocketFactory factory)
ServerSocketFactory used when a blocking IO
is enabled.
setServerSocketFactory in interface SecureSelector<SSLImplementation>public void setSecure(boolean secure)
public SSLImplementation getSSLImplementation()
SSLImplementation this Thread
public void setSSLImplementation(SSLImplementation sslImplementation)
SSLImplementation used by this thread.It usually
means HTTPS will be used.
setSSLImplementation in interface SecureSelector<SSLImplementation>public String[] getEnabledCipherSuites()
SecureSelectorSSLEngine
is initialized.
getEnabledCipherSuites in interface SecureSelector<SSLImplementation>SSLEngine's default.'public void setEnabledCipherSuites(String[] enabledCipherSuites)
SecureSelectorSSLEngine
is initialized.
setEnabledCipherSuites in interface SecureSelector<SSLImplementation>public String[] getEnabledProtocols()
SecureSelectorSSLEngine
is initialized.
getEnabledProtocols in interface SecureSelector<SSLImplementation>SSLEngine's default.'public void setEnabledProtocols(String[] enabledProtocols)
SecureSelectorSSLEngine
is initialized.
setEnabledProtocols in interface SecureSelector<SSLImplementation>public boolean isClientMode()
SecureSelector
isClientMode in interface SecureSelector<SSLImplementation>public void setClientMode(boolean clientMode)
SecureSelector
setClientMode in interface SecureSelector<SSLImplementation>public boolean isNeedClientAuth()
SecureSelector
isNeedClientAuth in interface SecureSelector<SSLImplementation>public void setNeedClientAuth(boolean needClientAuth)
SecureSelector
setNeedClientAuth in interface SecureSelector<SSLImplementation>public boolean isWantClientAuth()
SecureSelector
isWantClientAuth in interface SecureSelector<SSLImplementation>public void setWantClientAuth(boolean wantClientAuth)
SecureSelector
setWantClientAuth in interface SecureSelector<SSLImplementation>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||