@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.ScheduledPollEndpoint
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() |
protected void |
doInit() |
String |
getBranchName() |
String |
getEncoding() |
GitHubEventFetchStrategy |
getEventFetchStrategy() |
String |
getOauthToken() |
String |
getRepoName() |
String |
getRepoOwner() |
String |
getState() |
String |
getTargetUrl() |
GitHubType |
getType() |
void |
setBranchName(String branchName)
Name of branch
|
void |
setEncoding(String encoding)
To use the given encoding when getting a git commit file
|
void |
setEventFetchStrategy(GitHubEventFetchStrategy eventFetchStrategy)
To specify a custom strategy that configures how the EventsConsumer fetches events.
|
void |
setOauthToken(String oauthToken)
GitHub OAuth token.
|
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
|
configureConsumer, configureProperties, configureScheduledPollConsumerProperties, doConfigureConsumer, doStart, doStop, getBackoffErrorThreshold, getBackoffIdleThreshold, getBackoffMultiplier, getDefaultDelay, getDelay, getInitialDelay, getPollStrategy, getRepeatCount, getRunLoggingLevel, getScheduledExecutorService, getScheduler, getSchedulerProperties, getTimeUnit, isGreedy, isSendEmptyMessageWhenIdle, isStartScheduler, isUseFixedDelay, setBackoffErrorThreshold, setBackoffIdleThreshold, setBackoffMultiplier, setDelay, setGreedy, setInitialDelay, setPollStrategy, setRepeatCount, setRunLoggingLevel, setScheduledExecutorService, setScheduler, setSchedulerProperties, setSendEmptyMessageWhenIdle, setStartScheduler, setTimeUnit, setUseFixedDelay
configurePollingConsumer, createAsyncProducer, createEndpointUri, createExchange, createExchange, createPollingConsumer, equals, getCamelContext, getComponent, getEndpointKey, getEndpointUri, getExceptionHandler, getExchangePattern, getId, getPollingConsumerBlockTimeout, getPollingConsumerQueueSize, hashCode, isAutowiredEnabled, isBridgeErrorHandler, isLazyStartProducer, isLenientProperties, isPollingConsumerBlockWhenFull, isSingleton, isSynchronous, setAutowiredEnabled, 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 getOauthToken()
public void setOauthToken(String oauthToken)
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)
public GitHubEventFetchStrategy getEventFetchStrategy()
public void setEventFetchStrategy(GitHubEventFetchStrategy eventFetchStrategy)
Apache Camel