コード例 #1
0
ファイル: CommitConsumerTest.java プロジェクト: dejanb/camel
 @Override
 public void process(Exchange exchange) throws Exception {
   Message in = exchange.getIn();
   RepositoryCommit commit = (RepositoryCommit) in.getBody();
   User author = commit.getAuthor();
   log.debug(
       "Got commit with author: "
           + author.getLogin()
           + ": "
           + author.getHtmlUrl()
           + " SHA "
           + commit.getSha());
 }