hudson
Class UDPBroadcastFragment

java.lang.Object
  extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Constructor Summary
UDPBroadcastFragment()
           
 
Method Summary
static ExtensionList<UDPBroadcastFragment> all()
          Returns all the registered UDPBroadcastFragments.
abstract  void buildFragment(StringBuilder buf, SocketAddress sender)
          Called to build up a response XML.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UDPBroadcastFragment

public UDPBroadcastFragment()
Method Detail

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 UDPBroadcastFragments.



Copyright © 2004-2013 Hudson. All Rights Reserved.