Interface RestConfig

All Known Implementing Classes:
RestConfigImpl

public interface RestConfig
The RestConfig interface is used to pass the WebLogic Operator's REST configuration to the RestServer.
  • Field Details

    • REST_CONFIG_PROPERTY

      static final java.lang.String REST_CONFIG_PROPERTY
      This constant is used internally to pass the RestConfig instance from the RestServer to the filters and resources so that they can access it.
      See Also:
      Constant Field Values
  • Method Details

    • getHost

      java.lang.String getHost()
      Gets the in-pod hostname of the WebLogic operator REST api.
      Returns:
      the in-pod hostname
    • getExternalHttpsPort

      int getExternalHttpsPort()
      Gets the external https port's in-pod port number.
      Returns:
      the port number
    • getInternalHttpsPort

      int getInternalHttpsPort()
      Gets the internal https port's in-pod port number.
      Returns:
      the port number
    • getOperatorExternalCertificateData

      java.lang.String getOperatorExternalCertificateData()
      Gets the external https port's certificate.
      Returns:
      base64 encoded PEM containing the certificate, or null if getOperatorExternalCertificateFile should be used instead to get the certificate.
    • getOperatorInternalCertificateData

      java.lang.String getOperatorInternalCertificateData()
      Gets the internal https port's certificate.
      Returns:
      base64 encoded PEM containing the certificate, or null if getOperatorInternalCertificateFile should be used instead to get the certificate.
    • getOperatorExternalCertificateFile

      java.lang.String getOperatorExternalCertificateFile()
      Gets external https port's certificate.
      Returns:
      the pathname of a PEM file containing the certificate or null if getOperatorExternalCertificateData should be used instead to get the certificate.
    • getOperatorInternalCertificateFile

      java.lang.String getOperatorInternalCertificateFile()
      Gets internal https port's certificate.
      Returns:
      the pathname of a PEM file containing the certificate or null if getOperatorInternalCertificateData should be used instead to get the certificate.
    • getOperatorExternalKeyData

      java.lang.String getOperatorExternalKeyData()
      Gets the external https port's private key.
      Returns:
      base64 encoded PEM containing the private key, or null if getOperatorExternalKeyFile should be used instead to get the private key.
    • getOperatorInternalKeyData

      java.lang.String getOperatorInternalKeyData()
      Gets the internal https port's private key.
      Returns:
      base64 encoded PEM containing the private key, or null if getOperatorInternalKeyFile should be used instead to get the private key.
    • getOperatorExternalKeyFile

      java.lang.String getOperatorExternalKeyFile()
      Gets external https port's private key.
      Returns:
      the pathname of a PEM file containing the private key or null if getOperatorExternalKeyData should be used instead to get the private key.
    • getOperatorInternalKeyFile

      java.lang.String getOperatorInternalKeyFile()
      Gets internal https port's private key.
      Returns:
      the pathname of a PEM file containing the private key or null if getOperatorInternalKeyData should be used instead to get the private key.
    • getBackend

      RestBackend getBackend​(java.lang.String accessToken)
      Gets a RestBackend instance that does the real work behind a single WebLogic Operator REST api request.
      Parameters:
      accessToken - contains the Kubernetes service account token that should be used to authenticate and authorize this request.
      Returns:
      a RestBackend instance that can be used to process this request (but not other requests).