Package org.htmlunit
Class WebClientInternals
- java.lang.Object
-
- org.htmlunit.WebClientInternals
-
- All Implemented Interfaces:
java.io.Serializable
public class WebClientInternals extends java.lang.Object implements java.io.Serializable
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
Represents a ways to get notified about internal objects.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
WebClientInternals.Listener
A listener for internal events.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addListener(WebClientInternals.Listener listener)
Adds a newWebClientInternals.Listener
.void
created(org.htmlunit.javascript.host.WebSocket webSocket)
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
To notify when a newWebSocket
is created.void
removeListener(WebClientInternals.Listener listener)
Removes the specifiedWebClientInternals.Listener
.
-
-
-
Method Detail
-
addListener
public void addListener(WebClientInternals.Listener listener)
Adds a newWebClientInternals.Listener
.- Parameters:
listener
- the listener to add
-
removeListener
public void removeListener(WebClientInternals.Listener listener)
Removes the specifiedWebClientInternals.Listener
.- Parameters:
listener
- the listener to remove
-
created
public void created(org.htmlunit.javascript.host.WebSocket webSocket)
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
To notify when a newWebSocket
is created.- Parameters:
webSocket
- theWebSocket
-
-