net.sourceforge.cruisecontrol.publishers
Class SocketPublisher

java.lang.Object
  extended bynet.sourceforge.cruisecontrol.publishers.SocketPublisher
All Implemented Interfaces:
Publisher, java.io.Serializable

public class SocketPublisher
extends java.lang.Object
implements Publisher

Author:
Darren Cotterill
See Also:
Serialized Form

Constructor Summary
SocketPublisher()
           
SocketPublisher(SocketFactory sf)
           
 
Method Summary
protected  java.lang.String getBuildResultRepresentationFor(XMLLogHelper helper)
           
 int getPort()
           
 java.lang.String getSocketServer()
           
 void publish(org.jdom.Element cruisecontrolLog)
          Define the publishing.
 void setPort(int port)
           
 void setPort(java.lang.String port)
           
 void setSendFixed(boolean state)
           
 void setSendProjectName(boolean state)
           
 void setSocketServer(java.lang.String port)
           
 void validate()
          Called after the configuration is read to make sure that all the mandatory parameters were specified..
protected  void writeToSocket(java.lang.String result)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SocketPublisher

public SocketPublisher()

SocketPublisher

public SocketPublisher(SocketFactory sf)
Method Detail

validate

public void validate()
              throws CruiseControlException
Description copied from interface: Publisher
Called after the configuration is read to make sure that all the mandatory parameters were specified..

Specified by:
validate in interface Publisher
Throws:
CruiseControlException - if there was a configuration error.

publish

public void publish(org.jdom.Element cruisecontrolLog)
             throws CruiseControlException
Description copied from interface: Publisher
Define the publishing.

Specified by:
publish in interface Publisher
Parameters:
cruisecontrolLog - JDOM Element representation of the main cruisecontrol build log
Throws:
CruiseControlException

getBuildResultRepresentationFor

protected java.lang.String getBuildResultRepresentationFor(XMLLogHelper helper)
                                                    throws CruiseControlException
Throws:
CruiseControlException

writeToSocket

protected void writeToSocket(java.lang.String result)
                      throws java.io.IOException
Throws:
java.io.IOException

getSocketServer

public java.lang.String getSocketServer()

setSocketServer

public void setSocketServer(java.lang.String port)

getPort

public int getPort()

setPort

public void setPort(int port)

setPort

public void setPort(java.lang.String port)

setSendProjectName

public void setSendProjectName(boolean state)

setSendFixed

public void setSendFixed(boolean state)