Class MicroblogNotificationStrategy

    • Constructor Detail

      • MicroblogNotificationStrategy

        public MicroblogNotificationStrategy()
                                      throws java.io.IOException

        Constructor for MicroblogNotificationStrategy.

        Throws:
        java.io.IOException - if any.
      • MicroblogNotificationStrategy

        public MicroblogNotificationStrategy​(org.springframework.core.io.Resource configResource)

        Constructor for MicroblogNotificationStrategy.

        Parameters:
        configResource - a Resource object.
    • Method Detail

      • send

        public int send​(java.util.List<Argument> arguments)

        send

        Specified by:
        send in interface NotificationStrategy
        Parameters:
        arguments - a List object.
        Returns:
        a int.
      • buildUblogService

        protected twitter4j.Twitter buildUblogService​(java.util.List<Argument> arguments)

        buildUblogService

        Parameters:
        arguments - a List object.
        Returns:
        a Twitter object.
      • buildMessageBody

        protected java.lang.String buildMessageBody​(java.util.List<Argument> arguments)

        buildMessageBody

        Parameters:
        arguments - a List object.
        Returns:
        a String object.
      • findDestName

        protected java.lang.String findDestName​(java.util.List<Argument> arguments)

        findDestName

        Parameters:
        arguments - a List object.
        Returns:
        a String object.
      • findDefaultConfigResource

        protected static org.springframework.core.io.Resource findDefaultConfigResource()
                                                                                 throws java.io.IOException

        findDefaultConfigResource

        Returns:
        a Resource object.
        Throws:
        java.io.IOException - if any.