Class MicroProfileConfig

java.lang.Object
io.smallrye.graphql.cdi.config.MicroProfileConfig
All Implemented Interfaces:
io.smallrye.graphql.spi.config.Config

public class MicroProfileConfig extends Object implements io.smallrye.graphql.spi.config.Config
Configuration for GraphQL
Author:
Phillip Kruger (phillip.kruger@redhat.com)
  • Constructor Details

    • MicroProfileConfig

      public MicroProfileConfig()
  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface io.smallrye.graphql.spi.config.Config
    • getDefaultErrorMessage

      public String getDefaultErrorMessage()
      Specified by:
      getDefaultErrorMessage in interface io.smallrye.graphql.spi.config.Config
    • isPrintDataFetcherException

      public boolean isPrintDataFetcherException()
      Specified by:
      isPrintDataFetcherException in interface io.smallrye.graphql.spi.config.Config
    • getHideErrorMessageList

      public Optional<List<String>> getHideErrorMessageList()
      Specified by:
      getHideErrorMessageList in interface io.smallrye.graphql.spi.config.Config
    • getShowErrorMessageList

      public Optional<List<String>> getShowErrorMessageList()
      Specified by:
      getShowErrorMessageList in interface io.smallrye.graphql.spi.config.Config
    • isAllowGet

      public boolean isAllowGet()
      Specified by:
      isAllowGet in interface io.smallrye.graphql.spi.config.Config
    • isAllowPostWithQueryParameters

      public boolean isAllowPostWithQueryParameters()
      Specified by:
      isAllowPostWithQueryParameters in interface io.smallrye.graphql.spi.config.Config
    • isMetricsEnabled

      public boolean isMetricsEnabled()
      Specified by:
      isMetricsEnabled in interface io.smallrye.graphql.spi.config.Config
    • isTracingEnabled

      public boolean isTracingEnabled()
      Specified by:
      isTracingEnabled in interface io.smallrye.graphql.spi.config.Config
    • isEventsEnabled

      public boolean isEventsEnabled()
      Specified by:
      isEventsEnabled in interface io.smallrye.graphql.spi.config.Config
    • isFederationEnabled

      public boolean isFederationEnabled()
      Specified by:
      isFederationEnabled in interface io.smallrye.graphql.spi.config.Config
    • isFederationBatchResolvingEnabled

      public boolean isFederationBatchResolvingEnabled()
      Specified by:
      isFederationBatchResolvingEnabled in interface io.smallrye.graphql.spi.config.Config
    • isIncludeScalarsInSchema

      public boolean isIncludeScalarsInSchema()
      Specified by:
      isIncludeScalarsInSchema in interface io.smallrye.graphql.spi.config.Config
    • isIncludeDirectivesInSchema

      public boolean isIncludeDirectivesInSchema()
      Specified by:
      isIncludeDirectivesInSchema in interface io.smallrye.graphql.spi.config.Config
    • isIncludeSchemaDefinitionInSchema

      public boolean isIncludeSchemaDefinitionInSchema()
      Specified by:
      isIncludeSchemaDefinitionInSchema in interface io.smallrye.graphql.spi.config.Config
    • isIncludeIntrospectionTypesInSchema

      public boolean isIncludeIntrospectionTypesInSchema()
      Specified by:
      isIncludeIntrospectionTypesInSchema in interface io.smallrye.graphql.spi.config.Config
    • logPayload

      public io.smallrye.graphql.spi.config.LogPayloadOption logPayload()
      Specified by:
      logPayload in interface io.smallrye.graphql.spi.config.Config
    • isParserCaptureIgnoredChars

      public Optional<Boolean> isParserCaptureIgnoredChars()
      Specified by:
      isParserCaptureIgnoredChars in interface io.smallrye.graphql.spi.config.Config
    • isParserCaptureLineComments

      public Optional<Boolean> isParserCaptureLineComments()
      Specified by:
      isParserCaptureLineComments in interface io.smallrye.graphql.spi.config.Config
    • isParserCaptureSourceLocation

      public Optional<Boolean> isParserCaptureSourceLocation()
      Specified by:
      isParserCaptureSourceLocation in interface io.smallrye.graphql.spi.config.Config
    • getParserMaxTokens

      public Optional<Integer> getParserMaxTokens()
      Specified by:
      getParserMaxTokens in interface io.smallrye.graphql.spi.config.Config
    • getParserMaxWhitespaceTokens

      public Optional<Integer> getParserMaxWhitespaceTokens()
      Specified by:
      getParserMaxWhitespaceTokens in interface io.smallrye.graphql.spi.config.Config
    • getFieldVisibility

      public String getFieldVisibility()
      Specified by:
      getFieldVisibility in interface io.smallrye.graphql.spi.config.Config
    • getUnwrapExceptions

      public Optional<List<String>> getUnwrapExceptions()
      Specified by:
      getUnwrapExceptions in interface io.smallrye.graphql.spi.config.Config
    • getErrorExtensionFields

      public Optional<List<String>> getErrorExtensionFields()
      Specified by:
      getErrorExtensionFields in interface io.smallrye.graphql.spi.config.Config
    • getQueryComplexityInstrumentation

      public Optional<Integer> getQueryComplexityInstrumentation()
      Specified by:
      getQueryComplexityInstrumentation in interface io.smallrye.graphql.spi.config.Config
    • getQueryDepthInstrumentation

      public Optional<Integer> getQueryDepthInstrumentation()
      Specified by:
      getQueryDepthInstrumentation in interface io.smallrye.graphql.spi.config.Config
    • isExcludeNullFieldsInResponses

      public boolean isExcludeNullFieldsInResponses()
      Specified by:
      isExcludeNullFieldsInResponses in interface io.smallrye.graphql.spi.config.Config
    • getConfigValue

      public <T> T getConfigValue(String key, Class<T> type, T defaultValue)
      Specified by:
      getConfigValue in interface io.smallrye.graphql.spi.config.Config
    • setHideErrorMessageList

      public void setHideErrorMessageList(List<String> hideList)
    • setShowErrorMessageList

      public void setShowErrorMessageList(List<String> showList)
    • setDefaultErrorMessage

      public void setDefaultErrorMessage(String defaultErrorMessage)
    • setPrintDataFetcherException

      public void setPrintDataFetcherException(boolean printDataFetcherException)
    • setAllowGet

      public void setAllowGet(boolean allowGet)
    • setAllowPostWithQueryParameters

      public void setAllowPostWithQueryParameters(boolean allowPostWithQueryParameters)
    • setMetricsEnabled

      public void setMetricsEnabled(boolean metricsEnabled)
    • setTracingEnabled

      public void setTracingEnabled(boolean tracingEnabled)
    • setIncludeScalarsInSchema

      public void setIncludeScalarsInSchema(boolean includeScalarsInSchema)
    • setIncludeDirectivesInSchema

      public void setIncludeDirectivesInSchema(boolean includeDirectivesInSchema)
    • setIncludeSchemaDefinitionInSchema

      public void setIncludeSchemaDefinitionInSchema(boolean includeSchemaDefinitionInSchema)
    • setIncludeIntrospectionTypesInSchema

      public void setIncludeIntrospectionTypesInSchema(boolean includeIntrospectionTypesInSchema)
    • setLogPayload

      public void setLogPayload(io.smallrye.graphql.spi.config.LogPayloadOption logPayload)
    • setParserCaptureIgnoredChars

      public void setParserCaptureIgnoredChars(Boolean parserCaptureIgnoredChars)
    • setParserCaptureLineComments

      public void setParserCaptureLineComments(Boolean parserCaptureLineComments)
    • setParserCaptureSourceLocation

      public void setParserCaptureSourceLocation(Boolean parserCaptureSourceLocation)
    • setParserMaxTokens

      public void setParserMaxTokens(Integer parserMaxTokens)
    • setParserMaxWhitespaceTokens

      public void setParserMaxWhitespaceTokens(Integer parserMaxWhitespaceTokens)
    • setFieldVisibility

      public void setFieldVisibility(String fieldVisibility)
    • setUnwrapExceptions

      public void setUnwrapExceptions(List<String> unwrapExceptions)
    • setErrorExtensionFields

      public void setErrorExtensionFields(List<String> errorExtensionFields)
    • setPrintDataFetcherException

      public void setPrintDataFetcherException(Boolean printDataFetcherException)
    • setAllowGet

      public void setAllowGet(Boolean allowGet)
    • setAllowPostWithQueryParameters

      public void setAllowPostWithQueryParameters(Boolean allowPostWithQueryParameters)
    • setMetricsEnabled

      public void setMetricsEnabled(Boolean metricsEnabled)
    • setTracingEnabled

      public void setTracingEnabled(Boolean tracingEnabled)
    • setEventsEnabled

      public void setEventsEnabled(Boolean eventsEnabled)
    • setIncludeScalarsInSchema

      public void setIncludeScalarsInSchema(Boolean includeScalarsInSchema)
    • setIncludeDirectivesInSchema

      public void setIncludeDirectivesInSchema(Boolean includeDirectivesInSchema)
    • setIncludeSchemaDefinitionInSchema

      public void setIncludeSchemaDefinitionInSchema(Boolean includeSchemaDefinitionInSchema)
    • setIncludeIntrospectionTypesInSchema

      public void setIncludeIntrospectionTypesInSchema(Boolean includeIntrospectionTypesInSchema)
    • setQueryComplexityInstrumentation

      public void setQueryComplexityInstrumentation(Integer queryComplexityInstrumentation)
    • setExcludeNullFieldsInResponses

      public void setExcludeNullFieldsInResponses(Boolean excludeNullFieldsInResponses)
    • getQueryDepthInstrumentation

      public void getQueryDepthInstrumentation(Integer queryDepthInstrumentation)