hudson
Class UDPBroadcastFragment
java.lang.Object
hudson.UDPBroadcastFragment
- All Implemented Interfaces:
- ExtensionPoint
public abstract class UDPBroadcastFragment
- extends Object
- implements ExtensionPoint
Extension point that contributes an XML fragment to the UDP broadcast.
Put Extension
on your implementation class to have it auto-discovered.
- Since:
- 1.304
- Author:
- Kohsuke Kawaguchi
- See Also:
UDPBroadcastThread
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UDPBroadcastFragment
public UDPBroadcastFragment()
buildFragment
public abstract void buildFragment(StringBuilder buf,
SocketAddress sender)
- Called to build up a response XML.
- Parameters:
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.
all
public static ExtensionList<UDPBroadcastFragment> all()
- Returns all the registered
UDPBroadcastFragment
s.
Copyright © 2004-2013. All Rights Reserved.