@UriEndpoint(firstVersion="2.15.0",
scheme="github",
title="GitHub",
syntax="github:type/branchName",
category={FILE,CLOUD,API})
public class GitHubEndpoint
extends org.apache.camel.support.DefaultEndpoint
Constructor and Description |
---|
GitHubEndpoint(String uri,
GitHubComponent component) |
Modifier and Type | Method and Description |
---|---|
org.apache.camel.Consumer |
createConsumer(org.apache.camel.Processor processor) |
org.apache.camel.Producer |
createProducer() |
String |
getBranchName() |
String |
getEncoding() |
String |
getOauthToken() |
String |
getPassword() |
String |
getRepoName() |
String |
getRepoOwner() |
String |
getState() |
String |
getTargetUrl() |
GitHubType |
getType() |
String |
getUsername() |
boolean |
hasOauth() |
void |
setBranchName(String branchName)
Name of branch
|
void |
setEncoding(String encoding)
To use the given encoding when getting a git commit file
|
void |
setOauthToken(String oauthToken)
GitHub OAuth token, required unless username & password are provided
|
void |
setPassword(String password)
GitHub password, required unless oauthToken is provided
|
void |
setRepoName(String repoName)
GitHub repository name
|
void |
setRepoOwner(String repoOwner)
GitHub repository owner (organization)
|
void |
setState(String state)
To set git commit status state
|
void |
setTargetUrl(String targetUrl)
To set git commit status target url
|
void |
setType(GitHubType type)
What git operation to execute
|
void |
setUsername(String username)
GitHub username, required unless oauthToken is provided
|
configureConsumer, configurePollingConsumer, configureProperties, createAsyncProducer, createEndpointUri, createExchange, createExchange, createPollingConsumer, doInit, doStart, doStop, equals, getCamelContext, getComponent, getEndpointKey, getEndpointUri, getExceptionHandler, getExchangePattern, getId, getPollingConsumerBlockTimeout, getPollingConsumerQueueSize, hashCode, isBasicPropertyBinding, isBridgeErrorHandler, isLazyStartProducer, isLenientProperties, isPollingConsumerBlockWhenFull, isSingleton, isSynchronous, setBasicPropertyBinding, setBridgeErrorHandler, setCamelContext, setComponent, setEndpointUri, setEndpointUriIfNotSpecified, setExceptionHandler, setExchangePattern, setLazyStartProducer, setPollingConsumerBlockTimeout, setPollingConsumerBlockWhenFull, setPollingConsumerQueueSize, setProperties, setSynchronous, toString
build, doBuild, doFail, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public GitHubEndpoint(String uri, GitHubComponent component)
public org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor) throws Exception
Exception
public GitHubType getType()
public void setType(GitHubType type)
public String getBranchName()
public void setBranchName(String branchName)
public String getUsername()
public void setUsername(String username)
public String getPassword()
public void setPassword(String password)
public String getOauthToken()
public void setOauthToken(String oauthToken)
public boolean hasOauth()
public String getRepoOwner()
public void setRepoOwner(String repoOwner)
public String getRepoName()
public void setRepoName(String repoName)
public String getState()
public void setState(String state)
public String getTargetUrl()
public void setTargetUrl(String targetUrl)
public String getEncoding()
public void setEncoding(String encoding)
Apache Camel