Class HttpEndpoint

java.lang.Object
org.wso2.carbon.endpoint.ui.endpoints.Endpoint
org.wso2.carbon.endpoint.ui.endpoints.http.HttpEndpoint
All Implemented Interfaces:
IEndpoint

public class HttpEndpoint extends Endpoint
  • Field Details

    • legacyPrefix

      public static String legacyPrefix
  • Constructor Details

    • HttpEndpoint

      public HttpEndpoint()
  • Method Details

    • getUriTemplate

      public String getUriTemplate()
    • getRequestParametersMap

      public Map<String,String> getRequestParametersMap()
    • setRequestParametersMap

      public void setRequestParametersMap(Map<String,String> requestParametersMap)
    • getClientId

      public String getClientId()
    • setClientId

      public void setClientId(String clientId)
    • getClientSecret

      public String getClientSecret()
    • setClientSecret

      public void setClientSecret(String clientSecret)
    • getRefreshToken

      public String getRefreshToken()
    • setRefreshToken

      public void setRefreshToken(String refreshToken)
    • getTokenURL

      public String getTokenURL()
    • setTokenURL

      public void setTokenURL(String tokenURL)
    • getAuthMode

      public String getAuthMode()
    • setAuthMode

      public void setAuthMode(String authMode)
    • getRequestParametersAsString

      public String getRequestParametersAsString()
    • getUsername

      public String getUsername()
    • setUsername

      public void setUsername(String username)
    • getPassword

      public String getPassword()
    • setPassword

      public void setPassword(String password)
    • getBasicAuthUsername

      public String getBasicAuthUsername()
    • getBasicAuthPassword

      public String getBasicAuthPassword()
    • setBasicAuthUsername

      public void setBasicAuthUsername(String basicAuthUsername)
    • setBasicAuthPassword

      public void setBasicAuthPassword(String basicAuthPassword)
    • setUriTemplate

      public void setUriTemplate(String template)
    • setHttpGet

      public void setHttpGet(boolean get)
    • setHttpPost

      public void setHttpPost(boolean post)
    • setHttpPatch

      public void setHttpPatch(boolean patch)
    • setHttpPut

      public void setHttpPut(boolean put)
    • setHttpDelete

      public void setHttpDelete(boolean delete)
    • setHttpHead

      public void setHttpHead(boolean head)
    • setHttpOptions

      public void setHttpOptions(boolean options)
    • getTagLocalName

      public String getTagLocalName()
      Description copied from interface: IEndpoint
      Get the tag name of the endpoint
      Returns:
      the xml element tag name
    • isHttpGet

      public boolean isHttpGet()
    • isHttpPost

      public boolean isHttpPost()
    • isHttpPatch

      public boolean isHttpPatch()
    • isHttpPut

      public boolean isHttpPut()
    • isHttpDelete

      public boolean isHttpDelete()
    • isHttpHead

      public boolean isHttpHead()
    • isHttpOptions

      public boolean isHttpOptions()
    • getEndpointName

      public String getEndpointName()
    • setEndpointName

      public void setEndpointName(String name)
    • getSuspendDurationOnFailure

      public String getSuspendDurationOnFailure()
    • setSuspendDurationOnFailure

      public void setSuspendDurationOnFailure(String suspendDurationOnFailure)
    • getMethod

      public String getMethod()
    • setMethod

      public void setMethod(String method)
    • getTimeoutAction

      public String getTimeoutAction()
    • setTimeoutAction

      public void setTimeoutAction(String timeoutAction)
    • getTimeoutActionDur

      public String getTimeoutActionDur()
    • setTimeoutActionDur

      public void setTimeoutActionDur(String timeoutActionDur)
    • getMaxSusDuration

      public String getMaxSusDuration()
    • setMaxSusDuration

      public void setMaxSusDuration(String maxSusDuration)
    • getSusProgFactor

      public String getSusProgFactor()
    • setSusProgFactor

      public void setSusProgFactor(String susProgFactor)
    • getErrorCodes

      public String getErrorCodes()
    • setErrorCodes

      public void setErrorCodes(String errorCodes)
    • setRetryDisabledErrorCodes

      public void setRetryDisabledErrorCodes(String retryDisabledErrorCodes)
    • getRetryDisabledErrorCodes

      public String getRetryDisabledErrorCodes()
    • getTimedOutErrorCodes

      public String getTimedOutErrorCodes()
    • setTimedOutErrorCodes

      public void setTimedOutErrorCodes(String timedOutErrorCodes)
    • getRetryTimeout

      public String getRetryTimeout()
    • setRetryTimeout

      public void setRetryTimeout(String retryTimeout)
    • getRetryDelay

      public String getRetryDelay()
    • setRetryDelay

      public void setRetryDelay(String retryDelay)
    • getDescription

      public String getDescription()
    • setDescription

      public void setDescription(String description)
    • getProperties

      public String getProperties()
    • setProperties

      public void setProperties(String properties)
    • setLegacy

      public void setLegacy(boolean legacySupport)
    • isLegacy

      public boolean isLegacy()
    • serialize

      public org.apache.axiom.om.OMElement serialize(org.apache.axiom.om.OMElement parent)
      Description copied from interface: IEndpoint
      Serialize this endpoint in to the corresponding Synapse endpoint configuration.
      Parameters:
      parent - if present the serialize node will be added to the parent
      Returns:
      the Synapse endpoint configuration XML
    • build

      public void build(org.apache.axiom.om.OMElement elem, boolean isAnonymous)
      Description copied from interface: IEndpoint
      Populate this endpoint from the Synapse endpoint configuration.
      Parameters:
      elem - synapse endpoint configuration
      isAnonymous - whether the endpoint has a name
    • build

      public void build(org.apache.synapse.endpoints.Template template, org.apache.synapse.config.xml.endpoints.DefinitionFactory factory)
      Description copied from interface: IEndpoint
      Populate this endpoint from the Synapse endpoint template configuration.
      Parameters:
      template - synapse endpoint template configuration
      factory - Template definition factory