org.apache.maven.plugins.patchtracker.patching.github
Class GitHubPatchRepository
java.lang.Object
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"
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GitHubPatchRepository
public GitHubPatchRepository()
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.