hudson.plugins.jabber.im.transport
Class JabberPublisherDescriptor

java.lang.Object
  extended by hudson.model.Descriptor<T>
      extended by hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher>
          extended by hudson.plugins.jabber.im.transport.JabberPublisherDescriptor
All Implemented Interfaces:
hudson.model.Saveable

public class JabberPublisherDescriptor
extends hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher>


Nested Class Summary
 
Nested classes/interfaces inherited from class hudson.model.Descriptor
hudson.model.Descriptor.FormException, hudson.model.Descriptor.PropertyType
 
Field Summary
static java.lang.String DEFAULT_COMMAND_PREFIX
           
static java.lang.String PARAMETERNAME_COMMAND_PREFIX
           
static java.lang.String PARAMETERNAME_DEFAULT_ID_SUFFIX
           
static java.lang.String PARAMETERNAME_GROUP_NICKNAME
           
static java.lang.String PARAMETERNAME_HOSTNAME
           
static java.lang.String PARAMETERNAME_INITIAL_GROUPCHATS
           
static java.lang.String PARAMETERNAME_NICKNAME
           
static java.lang.String PARAMETERNAME_NOTIFY_FIXERS
           
static java.lang.String PARAMETERNAME_NOTIFY_START
           
static java.lang.String PARAMETERNAME_NOTIFY_SUSPECTS
           
static java.lang.String PARAMETERNAME_PASSWORD
           
static java.lang.String PARAMETERNAME_PORT
           
static java.lang.String PARAMETERNAME_PRESENCE
           
static java.lang.String PARAMETERNAME_SSL
           
static java.lang.String PARAMETERNAME_STRATEGY
           
static java.lang.String PARAMETERNAME_TARGETS
           
static java.lang.String PARAMETERVALUE_STRATEGY_DEFAULT
           
static java.lang.String[] PARAMETERVALUE_STRATEGY_VALUES
           
 
Fields inherited from class hudson.model.Descriptor
clazz
 
Fields inherited from interface hudson.model.Saveable
NOOP
 
Constructor Summary
JabberPublisherDescriptor()
           
 
Method Summary
 boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject json)
          
 void doServerCheck(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
          Validates the server name.
 java.lang.String getCommandPrefix()
           
 java.lang.String getDefaultIdSuffix()
           
 java.lang.String getDisplayName()
          This human readable name is used in the configuration screen.
 java.lang.String getGroupChatNickname()
           
 java.lang.String getHostname()
           
 java.lang.String getHudsonNickname()
           
 java.lang.String getHudsonPassword()
           
 java.lang.String getInitialGroupChats()
          Gets the whitespace separated list of group chats to join, or null if nothing is configured.
 int getPort()
           
 java.lang.String getPortString()
          Returns the text to be put into the form field.
 boolean isApplicable(java.lang.Class jobType)
          
 boolean isExposePresence()
           
 boolean isLegacySSL()
           
 JabberPublisher newInstance(org.kohsuke.stapler.StaplerRequest req)
          Creates a new instance of JabberPublisher from a submitted form.
 void shutdown()
           
 
Methods inherited from class hudson.tasks.BuildStepDescriptor
filter
 
Methods inherited from class hudson.model.Descriptor
configure, configure, convert, doHelp, find, find, getCheckUrl, getConfigPage, getGlobalConfigPage, getHelpFile, getHelpFile, getJsonSafeClassName, getPropertyType, getViewPage, isInstance, load, newInstance, newInstancesFromHeteroList, save, toArray, toList, toMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PARAMETERNAME_PORT

public static final java.lang.String PARAMETERNAME_PORT
See Also:
Constant Field Values

PARAMETERNAME_HOSTNAME

public static final java.lang.String PARAMETERNAME_HOSTNAME
See Also:
Constant Field Values

PARAMETERNAME_SSL

public static final java.lang.String PARAMETERNAME_SSL
See Also:
Constant Field Values

PARAMETERNAME_PRESENCE

public static final java.lang.String PARAMETERNAME_PRESENCE
See Also:
Constant Field Values

PARAMETERNAME_PASSWORD

public static final java.lang.String PARAMETERNAME_PASSWORD
See Also:
Constant Field Values

PARAMETERNAME_NICKNAME

public static final java.lang.String PARAMETERNAME_NICKNAME
See Also:
Constant Field Values

PARAMETERNAME_GROUP_NICKNAME

public static final java.lang.String PARAMETERNAME_GROUP_NICKNAME
See Also:
Constant Field Values

PARAMETERNAME_TARGETS

public static final java.lang.String PARAMETERNAME_TARGETS
See Also:
Constant Field Values

PARAMETERNAME_STRATEGY

public static final java.lang.String PARAMETERNAME_STRATEGY
See Also:
Constant Field Values

PARAMETERNAME_NOTIFY_START

public static final java.lang.String PARAMETERNAME_NOTIFY_START
See Also:
Constant Field Values

PARAMETERNAME_NOTIFY_SUSPECTS

public static final java.lang.String PARAMETERNAME_NOTIFY_SUSPECTS
See Also:
Constant Field Values

PARAMETERNAME_NOTIFY_FIXERS

public static final java.lang.String PARAMETERNAME_NOTIFY_FIXERS
See Also:
Constant Field Values

PARAMETERNAME_INITIAL_GROUPCHATS

public static final java.lang.String PARAMETERNAME_INITIAL_GROUPCHATS
See Also:
Constant Field Values

PARAMETERNAME_COMMAND_PREFIX

public static final java.lang.String PARAMETERNAME_COMMAND_PREFIX
See Also:
Constant Field Values

PARAMETERNAME_DEFAULT_ID_SUFFIX

public static final java.lang.String PARAMETERNAME_DEFAULT_ID_SUFFIX
See Also:
Constant Field Values

PARAMETERVALUE_STRATEGY_VALUES

public static final java.lang.String[] PARAMETERVALUE_STRATEGY_VALUES

PARAMETERVALUE_STRATEGY_DEFAULT

public static final java.lang.String PARAMETERVALUE_STRATEGY_DEFAULT

DEFAULT_COMMAND_PREFIX

public static final java.lang.String DEFAULT_COMMAND_PREFIX
See Also:
Constant Field Values
Constructor Detail

JabberPublisherDescriptor

public JabberPublisherDescriptor()
Method Detail

getDisplayName

public java.lang.String getDisplayName()
This human readable name is used in the configuration screen.

Specified by:
getDisplayName in class hudson.model.Descriptor<hudson.tasks.Publisher>

getHostname

public java.lang.String getHostname()

getHudsonNickname

public java.lang.String getHudsonNickname()

getHudsonPassword

public java.lang.String getHudsonPassword()

getGroupChatNickname

public java.lang.String getGroupChatNickname()

getPort

public int getPort()

getPortString

public java.lang.String getPortString()
Returns the text to be put into the form field. If the port is default, leave it empty.


isLegacySSL

public boolean isLegacySSL()

isExposePresence

public boolean isExposePresence()

getInitialGroupChats

public java.lang.String getInitialGroupChats()
Gets the whitespace separated list of group chats to join, or null if nothing is configured.


getDefaultIdSuffix

public java.lang.String getDefaultIdSuffix()

getCommandPrefix

public java.lang.String getCommandPrefix()

newInstance

public JabberPublisher newInstance(org.kohsuke.stapler.StaplerRequest req)
                            throws hudson.model.Descriptor.FormException
Creates a new instance of JabberPublisher from a submitted form.

Overrides:
newInstance in class hudson.model.Descriptor<hudson.tasks.Publisher>
Throws:
hudson.model.Descriptor.FormException

shutdown

public void shutdown()

configure

public boolean configure(org.kohsuke.stapler.StaplerRequest req,
                         net.sf.json.JSONObject json)
                  throws hudson.model.Descriptor.FormException

Overrides:
configure in class hudson.model.Descriptor<hudson.tasks.Publisher>
Throws:
hudson.model.Descriptor.FormException

doServerCheck

public void doServerCheck(org.kohsuke.stapler.StaplerRequest req,
                          org.kohsuke.stapler.StaplerResponse rsp)
                   throws java.io.IOException,
                          javax.servlet.ServletException
Validates the server name.

Throws:
java.io.IOException
javax.servlet.ServletException

isApplicable

public boolean isApplicable(java.lang.Class jobType)

Specified by:
isApplicable in class hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher>


Copyright © 2009. All Rights Reserved.