public abstract class UDPBroadcastFragment extends Object implements ExtensionPoint
Put Extension on your implementation class to have it auto-discovered.
UDPBroadcastThreadExtensionPoint.LegacyInstancesAreScopedToHudson| Constructor and Description |
|---|
UDPBroadcastFragment() |
| Modifier and Type | Method and Description |
|---|---|
static ExtensionList<UDPBroadcastFragment> |
all()
Returns all the registered
UDPBroadcastFragments. |
abstract void |
buildFragment(StringBuilder buf,
SocketAddress sender)
Called to build up a response XML.
|
public abstract void buildFragment(StringBuilder buf, SocketAddress sender)
buf - This is the buffer to write XML to. The implementation of this method
should write a complete fragment. Because of the packet length restriction
in UDP (somewhere around 1500 bytes), you cannot send a large amount of information.sender - The socket address that sent the discovery packet out.public static ExtensionList<UDPBroadcastFragment> all()
UDPBroadcastFragments.Copyright © 2019. All rights reserved.