Class WebServiceDefinition

java.lang.Object
org.netxms.client.datacollection.WebServiceDefinition

public class WebServiceDefinition extends Object
Web service definition
  • Field Details

  • Constructor Details

    • WebServiceDefinition

      public WebServiceDefinition(String name)
      Create new definition. Definition object will be created with random GUID and ID 0.
      Parameters:
      name - name for new definition
    • WebServiceDefinition

      public WebServiceDefinition(NXCPMessage msg)
      Create definition from NXCP message
      Parameters:
      msg - NXCP message
  • Method Details

    • fillMessage

      public void fillMessage(NXCPMessage msg)
      Fill NXCP message with object data
      Parameters:
      msg - NXCP message
    • getHeaders

      public Map<String,String> getHeaders()
      Get headers. Collection returned is actual header set and any changes to it will affect web service definition object.
      Returns:
      defined headers
    • getHeaderNames

      public String[] getHeaderNames()
      Get all header names. Returned array is a copy of actual header set.
      Returns:
      array containing all header names
    • getHeader

      public String getHeader(String name)
      Get value of given header.
      Parameters:
      name - header name
      Returns:
      header value or null
    • setHeader

      public void setHeader(String name, String value)
      Set header value.
      Parameters:
      name - header name
      value - new header value
    • removeHeader

      public void removeHeader(String name)
      Remove header.
      Parameters:
      name - header name
    • getId

      public int getId()
      Get web service definition ID.
      Returns:
      web service definition ID
    • setId

      public void setId(int id)
      Set web service definition ID.
      Parameters:
      id - new web service definition ID
    • getGuid

      public UUID getGuid()
      Returns:
      the guid
    • setGuid

      public void setGuid(UUID guid)
      Parameters:
      guid - the guid to set
    • getName

      public String getName()
      Returns:
      the name
    • setName

      public void setName(String name)
      Parameters:
      name - the name to set
    • getDescription

      public String getDescription()
      Returns:
      the description
    • setDescription

      public void setDescription(String description)
      Parameters:
      description - the description to set
    • getUrl

      public String getUrl()
      Returns:
      the url
    • setUrl

      public void setUrl(String url)
      Parameters:
      url - the url to set
    • getHttpRequestMethod

      public HttpRequestMethod getHttpRequestMethod()
      Get HTTP request method.
      Returns:
      HTTP request method
    • setHttpRequestMethod

      public void setHttpRequestMethod(HttpRequestMethod httpRequestMethod)
      Set HTTP request method.
      Parameters:
      httpRequestMethod - HTTP request method
    • getRequestData

      public String getRequestData()
      Returns:
      the requestData
    • setRequestData

      public void setRequestData(String requestData)
      Parameters:
      requestData - the requestData to set
    • getAuthenticationType

      public WebServiceAuthType getAuthenticationType()
      Returns:
      the authenticationType
    • setAuthenticationType

      public void setAuthenticationType(WebServiceAuthType authenticationType)
      Parameters:
      authenticationType - the authenticationType to set
    • getLogin

      public String getLogin()
      Returns:
      the login
    • setLogin

      public void setLogin(String login)
      Parameters:
      login - the login to set
    • getPassword

      public String getPassword()
      Returns:
      the password
    • setPassword

      public void setPassword(String password)
      Parameters:
      password - the password to set
    • getCacheRetentionTime

      public int getCacheRetentionTime()
      Returns:
      the cacheRetentionTime
    • setCacheRetentionTime

      public void setCacheRetentionTime(int cacheRetentionTime)
      Parameters:
      cacheRetentionTime - the cacheRetentionTime to set
    • getRequestTimeout

      public int getRequestTimeout()
      Returns:
      the requestTimeout
    • setRequestTimeout

      public void setRequestTimeout(int requestTimeout)
      Parameters:
      requestTimeout - the requestTimeout to set
    • getFlags

      public int getFlags()
      Get flags.
      Returns:
      flags
    • setFlags

      public void setFlags(int flags)
      Set flags.
      Parameters:
      flags - new flags
    • isVerifyCertificate

      public boolean isVerifyCertificate()
      Returns:
      the verifyCertificate
    • setVerifyCertificate

      public void setVerifyCertificate(boolean verifyCertificate)
      Parameters:
      verifyCertificate - the verifyCertificate to set
    • isVerifyHost

      public boolean isVerifyHost()
      Returns:
      the verify host
    • setVerifyHost

      public void setVerifyHost(boolean verifyHost)
      Parameters:
      verifyHost - the verifyHost to set
    • isFollowLocation

      public boolean isFollowLocation()
      Get "follow location" flag.
      Returns:
      "follow location" flag
    • setFollowLocation

      public void setFollowLocation(boolean followLocation)
      set "follow location" flag.
      Parameters:
      followLocation - new value for "follow location" flag
    • setParseAsText

      public void setParseAsText(boolean useTextParsing)
      Sets if text parsing should be used
      Parameters:
      useTextParsing - if text parsing should be used
    • isTextParsingUsed

      public boolean isTextParsingUsed()
      Returns:
      if text parsing should be used