Top Inners Fields Constructors Methods
com.sun.webkit.network

pack-priv final Class SocketStreamHandle

extends Object
Class Inheritance
Imports
com.sun.javafx.logging.PlatformLogger, .PlatformLogger.Level, com.sun.webkit.Invoker, .WebPage, java.io.IOException, .InputStream, java.net.ConnectException, .InetSocketAddress, .NoRouteToHostException, .PortUnreachableException, .Proxy, .ProxySelector, .Socket, .SocketException, .URI, .URISyntaxException, .UnknownHostException, java.util.List, java.util.concurrent.SynchronousQueue, .ThreadFactory, .ThreadPoolExecutor, .TimeUnit, java.util.concurrent.atomic.AtomicInteger, java.util.regex.Pattern, javax.net.ssl.HttpsURLConnection, .SSLException, .SSLSocket

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private static enum

Field Summary

Modifier and TypeField and Description
private volatile boolean
private final long
private static final Pattern
private final String
private static final PlatformLogger
private final int
private volatile Socket
private final boolean
private volatile SocketStreamHandle.State
private static final ThreadPoolExecutor
private final WebPage

Constructor Summary

AccessConstructor and Description
private
SocketStreamHandle(String host, int port, boolean ssl, WebPage webPage, long data)

Method Summary

Modifier and TypeMethod and Description
private void
private void
connect(Proxy proxy)

private void
private void
didFail(final int errorCode, final String errorDescription)

private void
private void
didReceiveData(final byte[] buffer, final int len)

private static String
dump(byte[] buffer, int len)

private void
private static SocketStreamHandle
fwkCreate(String host, int port, boolean ssl, WebPage webPage, long data)

private void
private int
fwkSend(byte[] buffer)

private void
private void
notifyDidFail(int errorCode, String errorDescription)

private void
private void
notifyDidReceiveData(byte[] buffer, int len)

private void
run()

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

private static native void
twkDidClose(long data)

private static native void
twkDidFail(int errorCode, String errorDescription, long data)

private static native void
twkDidOpen(long data)

private static native void
twkDidReceiveData(byte[] buffer, int len, long data)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

connectedback to summary
private volatile boolean connected
databack to summary
private final long data
FIRST_LINE_PATTERNback to summary
private static final Pattern FIRST_LINE_PATTERN
hostback to summary
private final String host
loggerback to summary
private static final PlatformLogger logger
portback to summary
private final int port
socketback to summary
private volatile Socket socket
sslback to summary
private final boolean ssl
stateback to summary
private volatile SocketStreamHandle.State state
threadPoolback to summary
private static final ThreadPoolExecutor threadPool
webPageback to summary
private final WebPage webPage

Constructor Detail

SocketStreamHandleback to summary
private SocketStreamHandle(String host, int port, boolean ssl, WebPage webPage, long data)

Method Detail

connectback to summary
private void connect() throws IOException
connectback to summary
private void connect(Proxy proxy) throws IOException
didCloseback to summary
private void didClose()
didFailback to summary
private void didFail(final int errorCode, final String errorDescription)
didOpenback to summary
private void didOpen()
didReceiveDataback to summary
private void didReceiveData(final byte[] buffer, final int len)
dumpback to summary
private static String dump(byte[] buffer, int len)
fwkCloseback to summary
private void fwkClose()
fwkCreateback to summary
private static SocketStreamHandle fwkCreate(String host, int port, boolean ssl, WebPage webPage, long data)
fwkNotifyDisposedback to summary
private void fwkNotifyDisposed()
fwkSendback to summary
private int fwkSend(byte[] buffer)
notifyDidCloseback to summary
private void notifyDidClose()
notifyDidFailback to summary
private void notifyDidFail(int errorCode, String errorDescription)
notifyDidOpenback to summary
private void notifyDidOpen()
notifyDidReceiveDataback to summary
private void notifyDidReceiveData(byte[] buffer, int len)
runback to summary
private void run()
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override
twkDidCloseback to summary
private static native void twkDidClose(long data)
twkDidFailback to summary
private static native void twkDidFail(int errorCode, String errorDescription, long data)
twkDidOpenback to summary
private static native void twkDidOpen(long data)
twkDidReceiveDataback to summary
private static native void twkDidReceiveData(byte[] buffer, int len, long data)
com.sun.webkit.network back to summary

private final Class SocketStreamHandle.CustomThreadFactory

extends Object
implements ThreadFactory
Class Inheritance
  • java.lang.Object
  • com.sun.webkit.network.SocketStreamHandle.CustomThreadFactory
All Implemented Interfaces
java.util.concurrent.ThreadFactory

Field Summary

Modifier and TypeField and Description
private final ThreadGroup
private final AtomicInteger

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public Thread
newThread(Runnable
a runnable to be executed by new thread instance
r
)

Implements java.util.concurrent.ThreadFactory.newThread.

Constructs a new unstarted Thread to run the given runnable.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

groupback to summary
private final ThreadGroup group
indexback to summary
private final AtomicInteger index

Constructor Detail

CustomThreadFactoryback to summary
private CustomThreadFactory()

Method Detail

newThreadback to summary
public Thread newThread(Runnable r)

Implements java.util.concurrent.ThreadFactory.newThread.

Doc from java.util.concurrent.ThreadFactory.newThread.

Constructs a new unstarted Thread to run the given runnable.

Parameters
r:Runnable

a runnable to be executed by new thread instance

Returns:Thread

constructed thread, or null if the request to create a thread is rejected

Annotations
@Override
com.sun.webkit.network back to summary

private final Enum SocketStreamHandle.State

extends Enum<SocketStreamHandle.State>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final SocketStreamHandle.State
public static final SocketStreamHandle.State
public static final SocketStreamHandle.State

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static SocketStreamHandle.State
public static SocketStreamHandle.State[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

ACTIVEback to summary
public static final SocketStreamHandle.State ACTIVE
CLOSE_REQUESTEDback to summary
public static final SocketStreamHandle.State CLOSE_REQUESTED
DISPOSEDback to summary
public static final SocketStreamHandle.State DISPOSED

Constructor Detail

Stateback to summary
private State()

Method Detail

valueOfback to summary
public static SocketStreamHandle.State valueOf(String name)
valuesback to summary
public static SocketStreamHandle.State[] values()