Class ImageRecognitionEndpoint

java.lang.Object
org.apache.camel.support.service.BaseService
org.apache.camel.support.service.ServiceSupport
org.apache.camel.support.DefaultEndpoint
org.apache.camel.component.huaweicloud.image.ImageRecognitionEndpoint
All Implemented Interfaces:
AutoCloseable, org.apache.camel.CamelContextAware, org.apache.camel.ComponentAware, org.apache.camel.Endpoint, org.apache.camel.IsSingleton, org.apache.camel.Service, org.apache.camel.ShutdownableService, org.apache.camel.spi.HasCamelContext, org.apache.camel.spi.HasId, org.apache.camel.StatefulService, org.apache.camel.SuspendableService

@UriEndpoint(firstVersion="3.12.0", scheme="hwcloud-imagerecognition", title="Huawei Cloud Image Recognition", syntax="hwcloud-imagerecognition:operation", category={CLOUD,MESSAGING}, producerOnly=true) public class ImageRecognitionEndpoint extends org.apache.camel.support.DefaultEndpoint
To identify objects, scenes, and concepts in images on Huawei Cloud
  • Field Summary

    Fields inherited from class org.apache.camel.support.service.BaseService

    BUILT, FAILED, INITIALIZED, INITIALIZING, lock, NEW, SHUTDOWN, SHUTTING_DOWN, STARTED, STARTING, status, STOPPED, STOPPING, SUSPENDED, SUSPENDING
  • Constructor Summary

    Constructors
    Constructor
    Description
     
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.camel.Consumer
    createConsumer(org.apache.camel.Processor processor)
     
    org.apache.camel.Producer
     
     
     
    com.huaweicloud.sdk.image.v2.ImageClient
     
     
     
     
     
     
     
    int
     
     
     
     
    org.apache.camel.component.huaweicloud.common.models.ServiceKeys
     
     
    int
     
    float
     
    boolean
     
    void
    setAccessKey(String accessKey)
     
    void
    setEndpoint(String endpoint)
     
    void
    setIgnoreSslVerification(boolean ignoreSslVerification)
     
    void
    setImageClient(com.huaweicloud.sdk.image.v2.ImageClient imageClient)
     
    void
    setImageContent(String imageContent)
     
    void
    setImageUrl(String imageUrl)
     
    void
    setOperation(String operation)
     
    void
    setProjectId(String projectId)
     
    void
    setProxyHost(String proxyHost)
     
    void
    setProxyPassword(String proxyPassword)
     
    void
    setProxyPort(int proxyPort)
     
    void
    setProxyUser(String proxyUser)
     
    void
    setRegion(String region)
     
    void
    setSecretKey(String secretKey)
     
    void
    setServiceKeys(org.apache.camel.component.huaweicloud.common.models.ServiceKeys serviceKeys)
     
    void
    setTagLanguage(String tagLanguage)
     
    void
    setTagLimit(int tagLimit)
     
    void
    setThreshold(float threshold)
     

    Methods inherited from class org.apache.camel.support.DefaultEndpoint

    configureConsumer, configureExchange, configurePollingConsumer, configureProperties, createAsyncProducer, createEndpointUri, createExchange, createExchange, createPollingConsumer, doInit, equals, getCamelContext, getComponent, getEndpointKey, getEndpointUri, getExceptionHandler, getExchangePattern, getId, getPollingConsumerBlockTimeout, getPollingConsumerQueueSize, hashCode, isAutowiredEnabled, isBridgeErrorHandler, isLazyStartProducer, isLenientProperties, isPollingConsumerBlockWhenFull, isPollingConsumerCopy, isSingleton, setAutowiredEnabled, setBridgeErrorHandler, setCamelContext, setComponent, setEndpointUri, setEndpointUriIfNotSpecified, setExceptionHandler, setExchangePattern, setLazyStartProducer, setPollingConsumerBlockTimeout, setPollingConsumerBlockWhenFull, setPollingConsumerCopy, setPollingConsumerQueueSize, setProperties, toString

    Methods inherited from class org.apache.camel.support.service.BaseService

    build, doBuild, doFail, doLifecycleChange, doResume, doShutdown, doStart, doStop, doSuspend, fail, getInternalLock, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.apache.camel.ComponentAware

    getComponent

    Methods inherited from interface org.apache.camel.Endpoint

    getEndpointBaseUri, isRemote, isSingletonProducer

    Methods inherited from interface org.apache.camel.Service

    build, close, init, start, stop

    Methods inherited from interface org.apache.camel.ShutdownableService

    shutdown

    Methods inherited from interface org.apache.camel.StatefulService

    getStatus, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspending

    Methods inherited from interface org.apache.camel.SuspendableService

    isSuspended, resume, suspend
  • Constructor Details

    • ImageRecognitionEndpoint

      public ImageRecognitionEndpoint()
    • ImageRecognitionEndpoint

      public ImageRecognitionEndpoint(String uri, String operation, ImageRecognitionComponent component)
  • Method Details

    • createProducer

      public org.apache.camel.Producer createProducer() throws Exception
      Throws:
      Exception
    • createConsumer

      public org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor) throws Exception
      Throws:
      Exception
    • getOperation

      public String getOperation()
    • setOperation

      public void setOperation(String operation)
    • getServiceKeys

      public org.apache.camel.component.huaweicloud.common.models.ServiceKeys getServiceKeys()
    • setServiceKeys

      public void setServiceKeys(org.apache.camel.component.huaweicloud.common.models.ServiceKeys serviceKeys)
    • getAccessKey

      public String getAccessKey()
    • setAccessKey

      public void setAccessKey(String accessKey)
    • getSecretKey

      public String getSecretKey()
    • setSecretKey

      public void setSecretKey(String secretKey)
    • getProjectId

      public String getProjectId()
    • setProjectId

      public void setProjectId(String projectId)
    • getProxyHost

      public String getProxyHost()
    • setProxyHost

      public void setProxyHost(String proxyHost)
    • getProxyPort

      public int getProxyPort()
    • setProxyPort

      public void setProxyPort(int proxyPort)
    • getProxyUser

      public String getProxyUser()
    • setProxyUser

      public void setProxyUser(String proxyUser)
    • getProxyPassword

      public String getProxyPassword()
    • setProxyPassword

      public void setProxyPassword(String proxyPassword)
    • getRegion

      public String getRegion()
    • setRegion

      public void setRegion(String region)
    • getEndpoint

      public String getEndpoint()
    • setEndpoint

      public void setEndpoint(String endpoint)
    • getImageContent

      public String getImageContent()
    • setImageContent

      public void setImageContent(String imageContent)
    • getImageUrl

      public String getImageUrl()
    • setImageUrl

      public void setImageUrl(String imageUrl)
    • getTagLanguage

      public String getTagLanguage()
    • setTagLanguage

      public void setTagLanguage(String tagLanguage)
    • getThreshold

      public float getThreshold()
    • setThreshold

      public void setThreshold(float threshold)
    • getTagLimit

      public int getTagLimit()
    • setTagLimit

      public void setTagLimit(int tagLimit)
    • getImageClient

      public com.huaweicloud.sdk.image.v2.ImageClient getImageClient()
    • setImageClient

      public void setImageClient(com.huaweicloud.sdk.image.v2.ImageClient imageClient)
    • isIgnoreSslVerification

      public boolean isIgnoreSslVerification()
    • setIgnoreSslVerification

      public void setIgnoreSslVerification(boolean ignoreSslVerification)