hudson.plugins.emailext.plugins.content
Class BuildStatusContent

java.lang.Object
  extended by hudson.plugins.emailext.plugins.content.BuildStatusContent
All Implemented Interfaces:
EmailContent

public class BuildStatusContent
extends java.lang.Object
implements EmailContent


Constructor Summary
BuildStatusContent()
           
 
Method Summary
<P extends hudson.model.Project<P,B>,B extends hudson.model.Build<P,B>>
java.lang.String
getContent(hudson.model.Build<P,B> build, EmailType emailType)
          This method returns the generated content that should replace the token.
 java.lang.String getHelpText()
          This is a string that will be rendered in the help section of the plugin.
 java.lang.String getToken()
          This is the token that will be replaced by the content when the email is sent.
 boolean hasNestedContent()
          Specifies whether or not the content returned by this object can have nested tokens in it that need to be resolved before sending the email.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BuildStatusContent

public BuildStatusContent()
Method Detail

getContent

public <P extends hudson.model.Project<P,B>,B extends hudson.model.Build<P,B>> java.lang.String getContent(hudson.model.Build<P,B> build,
                                                                                                           EmailType emailType)
Description copied from interface: EmailContent
This method returns the generated content that should replace the token.

Specified by:
getContent in interface EmailContent

getToken

public java.lang.String getToken()
Description copied from interface: EmailContent
This is the token that will be replaced by the content when the email is sent. If the email has a string like "$REPLACE_ME", then the implementation of this method should return "REPLACE_ME".

Specified by:
getToken in interface EmailContent

hasNestedContent

public boolean hasNestedContent()
Description copied from interface: EmailContent
Specifies whether or not the content returned by this object can have nested tokens in it that need to be resolved before sending the email.

Specified by:
hasNestedContent in interface EmailContent

getHelpText

public java.lang.String getHelpText()
Description copied from interface: EmailContent
This is a string that will be rendered in the help section of the plugin. It describes what the content does and what it puts in the email.

Specified by:
getHelpText in interface EmailContent


Copyright © 2008. All Rights Reserved.