Class WireConfig$

java.lang.Object
org.apache.pekko.serialization.WireConfig$

public class WireConfig$ extends Object
INTERNAL API

Parsing of HOCON that arrived in a message.

HOCON include directives are resolved by the parser, not by resolve(), so parsing a string with the default includer reads whatever it names: include file(...) and include classpath(...) read from the local filesystem and classpath, and include url(...) performs an outbound request. None of that belongs on a path whose input came from a peer.

Every serializer writes config with ConfigRenderOptions.concise, which renders JSON and cannot produce an include, so dropping them costs a well-behaved sender nothing.

  • Field Details

    • MODULE$

      public static final WireConfig$ MODULE$
      Static reference to the singleton instance of this Scala object.
  • Constructor Details

    • WireConfig$

      public WireConfig$()
  • Method Details

    • parseString

      public com.typesafe.config.Config parseString(String hocon)
      Like ConfigFactory.parseString, but with include directives resolved to nothing.