public abstract class UDPBroadcastFragment extends Object implements ExtensionPoint
Put Extension
on your implementation class to have it auto-discovered.
UDPBroadcastThread
ExtensionPoint.LegacyInstancesAreScopedToHudson
Constructor and Description |
---|
UDPBroadcastFragment() |
Modifier and Type | Method and Description |
---|---|
static ExtensionList<UDPBroadcastFragment> |
all()
Returns all the registered
UDPBroadcastFragment s. |
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()
UDPBroadcastFragment
s.Copyright © 2016. All rights reserved.