org.apache.maven.plugins.patchtracker.patching.github
Class GitHubPatchRepository

java.lang.Object
  extended by org.apache.maven.plugins.patchtracker.patching.github.GitHubPatchRepository
All Implemented Interfaces:
PatchRepository

public class GitHubPatchRepository
extends Object
implements PatchRepository

Author:
Olivier Lamy
Plexus component:
role:
"org.apache.maven.plugins.patchtracker.patching.PatchRepository"
role-hint:
"github"

Constructor Summary
GitHubPatchRepository()
           
 
Method Summary
protected  PatchRepositoryResult fromJson(String jsonContent)
          parse json from gitbut see http://developer.github.com/v3/pulls/
 PatchRepositoryResult getPatch(PatchRepositoryRequest patchRepositoryRequest, Log log)
           
protected  String getPatchContent(PatchRepositoryResult pullRequest)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GitHubPatchRepository

public GitHubPatchRepository()
Method Detail

getPatch

public PatchRepositoryResult getPatch(PatchRepositoryRequest patchRepositoryRequest,
                                      Log log)
                               throws PatchRepositoryException
Specified by:
getPatch in interface PatchRepository
Throws:
PatchRepositoryException

getPatchContent

protected String getPatchContent(PatchRepositoryResult pullRequest)
                          throws IOException,
                                 ClientProtocolException
Throws:
IOException
ClientProtocolException

fromJson

protected PatchRepositoryResult fromJson(String jsonContent)
                                  throws IOException,
                                         org.codehaus.jackson.JsonProcessingException
parse json from gitbut see http://developer.github.com/v3/pulls/

Parameters:
jsonContent -
Returns:
Throws:
IOException
org.codehaus.jackson.JsonProcessingException


Copyright © 2002-2011 The Apache Software Foundation. All Rights Reserved.