test_class.declarator: DIRECTION = MessageDirection.TO
test_class.modifier: private static final
test_class.original_string: private static final MessageDirection DIRECTION = MessageDirection.TO;
test_class.type: MessageDirection
test_class.var_name: DIRECTION
test_class.declarator: THING_ID = ThingId.of("bla","foo-bar")
test_class.modifier: private final static
test_class.original_string: private final static ThingId THING_ID = ThingId.of("bla","foo-bar");
test_class.type: ThingId
test_class.var_name: THING_ID
test_class.declarator: SUBJECT = KnownMessageSubjects.CLAIM_SUBJECT
test_class.modifier: private static final
test_class.original_string: private static final String SUBJECT = KnownMessageSubjects.CLAIM_SUBJECT;
test_class.type: String
test_class.var_name: SUBJECT
test_class.declarator: FEATURE_ID = "flux-condensator-0815"
test_class.modifier: private static final
test_class.original_string: private static final String FEATURE_ID = "flux-condensator-0815";
test_class.type: String
test_class.var_name: FEATURE_ID
test_class.declarator: CONTENT_TYPE = "application/json"
test_class.modifier: private static final
test_class.original_string: private static final String CONTENT_TYPE = "application/json";
test_class.type: String
test_class.var_name: CONTENT_TYPE
test_class.declarator: TIMEOUT = 5000
test_class.modifier: private static final
test_class.original_string: private static final long TIMEOUT = 5000;
test_class.type: long
test_class.var_name: TIMEOUT
test_class.declarator: CORRELATION_ID = "myCorrelationId"
test_class.modifier: private static final
test_class.original_string: private static final String CORRELATION_ID = "myCorrelationId";
test_class.type: String
test_class.var_name: CORRELATION_ID
test_class.declarator: underTest
test_class.modifier: private
test_class.original_string: private MessageHeadersBuilder underTest;
test_class.type: MessageHeadersBuilder
test_class.var_name: underTest
test_class.file: model/messages/src/test/java/org/eclipse/ditto/model/messages/MessageHeadersBuilderTest.java
test_class.identifier: MessageHeadersBuilderTest
test_case.body: @Test
      public void tryToCreateInstanceWithInvalidSubject() {
          final String invalidSubject = "§foo";
  
          assertThatExceptionOfType(DittoHeaderInvalidException.class)
                  .isThrownBy(() -> MessageHeadersBuilder.newInstance(DIRECTION, THING_ID, invalidSubject))
                  .withMessageContaining(invalidSubject)
                  .withMessageEndingWith("is not a valid message subject.")
                  .withNoCause();
      }
test_case.class_method_signature: MessageHeadersBuilderTest.tryToCreateInstanceWithInvalidSubject()
test_case.full_signature: @Test public void tryToCreateInstanceWithInvalidSubject()
test_case.identifier: tryToCreateInstanceWithInvalidSubject
test_case.invocations: withNoCause withMessageEndingWith withMessageContaining isThrownBy assertThatExceptionOfType newInstance
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void tryToCreateInstanceWithInvalidSubject()
focal_class.declarator: MANDATORY_HEADERS = Collections.unmodifiableSet(
              EnumSet.of(MessageHeaderDefinition.DIRECTION, MessageHeaderDefinition.THING_ID,
                      MessageHeaderDefinition.SUBJECT))
focal_class.modifier: static final
focal_class.original_string: static final Set<MessageHeaderDefinition> MANDATORY_HEADERS = Collections.unmodifiableSet(
              EnumSet.of(MessageHeaderDefinition.DIRECTION, MessageHeaderDefinition.THING_ID,
                      MessageHeaderDefinition.SUBJECT));
focal_class.type: Set<MessageHeaderDefinition>
focal_class.var_name: MANDATORY_HEADERS
focal_class.declarator: DEFINITIONS = determineMessageHeaderDefinitions()
focal_class.modifier: private static final
focal_class.original_string: private static final Set<MessageHeaderDefinition> DEFINITIONS = determineMessageHeaderDefinitions();
focal_class.type: Set<MessageHeaderDefinition>
focal_class.var_name: DEFINITIONS
focal_class.file: model/messages/src/main/java/org/eclipse/ditto/model/messages/MessageHeadersBuilder.java
focal_class.identifier: MessageHeadersBuilder
focal_class.class_method_signature: MessageHeadersBuilder.MessageHeadersBuilder(final Map<String, String> headers)
focal_class.full_signature: private  MessageHeadersBuilder(final Map<String, String> headers)
focal_class.identifier: MessageHeadersBuilder
focal_class.modifiers: private
focal_class.parameters: (final Map<String, String> headers)
focal_class.signature:  MessageHeadersBuilder(final Map<String, String> headers)
focal_class.class_method_signature: MessageHeadersBuilder.MessageHeadersBuilder(final MessageHeaders dittoHeaders)
focal_class.full_signature: private  MessageHeadersBuilder(final MessageHeaders dittoHeaders)
focal_class.identifier: MessageHeadersBuilder
focal_class.modifiers: private
focal_class.parameters: (final MessageHeaders dittoHeaders)
focal_class.signature:  MessageHeadersBuilder(final MessageHeaders dittoHeaders)
focal_class.class_method_signature: MessageHeadersBuilder.determineMessageHeaderDefinitions()
focal_class.full_signature: private static Set<MessageHeaderDefinition> determineMessageHeaderDefinitions()
focal_class.identifier: determineMessageHeaderDefinitions
focal_class.modifiers: private static
focal_class.parameters: ()
focal_class.return: Set<MessageHeaderDefinition>
focal_class.signature: Set<MessageHeaderDefinition> determineMessageHeaderDefinitions()
focal_class.class_method_signature: MessageHeadersBuilder.newInstance(final MessageDirection direction, final CharSequence thingId,
              final CharSequence subject)
focal_class.full_signature: @Deprecated public static MessageHeadersBuilder newInstance(final MessageDirection direction, final CharSequence thingId,
              final CharSequence subject)
focal_class.identifier: newInstance
focal_class.modifiers: @Deprecated public static
focal_class.parameters: (final MessageDirection direction, final CharSequence thingId,
              final CharSequence subject)
focal_class.return: MessageHeadersBuilder
focal_class.signature: MessageHeadersBuilder newInstance(final MessageDirection direction, final CharSequence thingId,
              final CharSequence subject)
focal_class.class_method_signature: MessageHeadersBuilder.newInstance(final MessageDirection direction, final ThingId thingId,
              final CharSequence subject)
focal_class.full_signature: public static MessageHeadersBuilder newInstance(final MessageDirection direction, final ThingId thingId,
              final CharSequence subject)
focal_class.identifier: newInstance
focal_class.modifiers: public static
focal_class.parameters: (final MessageDirection direction, final ThingId thingId,
              final CharSequence subject)
focal_class.return: MessageHeadersBuilder
focal_class.signature: MessageHeadersBuilder newInstance(final MessageDirection direction, final ThingId thingId,
              final CharSequence subject)
focal_class.class_method_signature: MessageHeadersBuilder.of(final Map<String, String> headers)
focal_class.full_signature: public static MessageHeadersBuilder of(final Map<String, String> headers)
focal_class.identifier: of
focal_class.modifiers: public static
focal_class.parameters: (final Map<String, String> headers)
focal_class.return: MessageHeadersBuilder
focal_class.signature: MessageHeadersBuilder of(final Map<String, String> headers)
focal_class.class_method_signature: MessageHeadersBuilder.validateMandatoryHeaders(final Map<String, String> headers)
focal_class.full_signature: private static void validateMandatoryHeaders(final Map<String, String> headers)
focal_class.identifier: validateMandatoryHeaders
focal_class.modifiers: private static
focal_class.parameters: (final Map<String, String> headers)
focal_class.return: void
focal_class.signature: void validateMandatoryHeaders(final Map<String, String> headers)
focal_class.class_method_signature: MessageHeadersBuilder.of(final JsonObject jsonObject)
focal_class.full_signature: public static MessageHeadersBuilder of(final JsonObject jsonObject)
focal_class.identifier: of
focal_class.modifiers: public static
focal_class.parameters: (final JsonObject jsonObject)
focal_class.return: MessageHeadersBuilder
focal_class.signature: MessageHeadersBuilder of(final JsonObject jsonObject)
focal_class.class_method_signature: MessageHeadersBuilder.featureId(@Nullable final CharSequence featureId)
focal_class.full_signature: public MessageHeadersBuilder featureId(@Nullable final CharSequence featureId)
focal_class.identifier: featureId
focal_class.modifiers: public
focal_class.parameters: (@Nullable final CharSequence featureId)
focal_class.return: MessageHeadersBuilder
focal_class.signature: MessageHeadersBuilder featureId(@Nullable final CharSequence featureId)
focal_class.class_method_signature: MessageHeadersBuilder.contentType(@Nullable final CharSequence contentType)
focal_class.full_signature: @Override public MessageHeadersBuilder contentType(@Nullable final CharSequence contentType)
focal_class.identifier: contentType
focal_class.modifiers: @Override public
focal_class.parameters: (@Nullable final CharSequence contentType)
focal_class.return: MessageHeadersBuilder
focal_class.signature: MessageHeadersBuilder contentType(@Nullable final CharSequence contentType)
focal_class.class_method_signature: MessageHeadersBuilder.timeout(final Duration timeout)
focal_class.full_signature: @Override public MessageHeadersBuilder timeout(final Duration timeout)
focal_class.identifier: timeout
focal_class.modifiers: @Override public
focal_class.parameters: (final Duration timeout)
focal_class.return: MessageHeadersBuilder
focal_class.signature: MessageHeadersBuilder timeout(final Duration timeout)
focal_class.class_method_signature: MessageHeadersBuilder.timeout(final long timeoutInSeconds)
focal_class.full_signature: @Deprecated public MessageHeadersBuilder timeout(final long timeoutInSeconds)
focal_class.identifier: timeout
focal_class.modifiers: @Deprecated public
focal_class.parameters: (final long timeoutInSeconds)
focal_class.return: MessageHeadersBuilder
focal_class.signature: MessageHeadersBuilder timeout(final long timeoutInSeconds)
focal_class.class_method_signature: MessageHeadersBuilder.timestamp(@Nullable final OffsetDateTime timestamp)
focal_class.full_signature: public MessageHeadersBuilder timestamp(@Nullable final OffsetDateTime timestamp)
focal_class.identifier: timestamp
focal_class.modifiers: public
focal_class.parameters: (@Nullable final OffsetDateTime timestamp)
focal_class.return: MessageHeadersBuilder
focal_class.signature: MessageHeadersBuilder timestamp(@Nullable final OffsetDateTime timestamp)
focal_class.class_method_signature: MessageHeadersBuilder.removeHeader(final CharSequence key)
focal_class.full_signature: @Override public MessageHeadersBuilder removeHeader(final CharSequence key)
focal_class.identifier: removeHeader
focal_class.modifiers: @Override public
focal_class.parameters: (final CharSequence key)
focal_class.return: MessageHeadersBuilder
focal_class.signature: MessageHeadersBuilder removeHeader(final CharSequence key)
focal_class.class_method_signature: MessageHeadersBuilder.timestamp(@Nullable final CharSequence timestampISO8601)
focal_class.full_signature: public MessageHeadersBuilder timestamp(@Nullable final CharSequence timestampISO8601)
focal_class.identifier: timestamp
focal_class.modifiers: public
focal_class.parameters: (@Nullable final CharSequence timestampISO8601)
focal_class.return: MessageHeadersBuilder
focal_class.signature: MessageHeadersBuilder timestamp(@Nullable final CharSequence timestampISO8601)
focal_class.class_method_signature: MessageHeadersBuilder.statusCode(@Nullable final HttpStatusCode statusCode)
focal_class.full_signature: public MessageHeadersBuilder statusCode(@Nullable final HttpStatusCode statusCode)
focal_class.identifier: statusCode
focal_class.modifiers: public
focal_class.parameters: (@Nullable final HttpStatusCode statusCode)
focal_class.return: MessageHeadersBuilder
focal_class.signature: MessageHeadersBuilder statusCode(@Nullable final HttpStatusCode statusCode)
focal_class.class_method_signature: MessageHeadersBuilder.statusCode(final int statusCode)
focal_class.full_signature: public MessageHeadersBuilder statusCode(final int statusCode)
focal_class.identifier: statusCode
focal_class.modifiers: public
focal_class.parameters: (final int statusCode)
focal_class.return: MessageHeadersBuilder
focal_class.signature: MessageHeadersBuilder statusCode(final int statusCode)
focal_class.class_method_signature: MessageHeadersBuilder.doBuild(final DittoHeaders dittoHeaders)
focal_class.full_signature: @Override protected MessageHeaders doBuild(final DittoHeaders dittoHeaders)
focal_class.identifier: doBuild
focal_class.modifiers: @Override protected
focal_class.parameters: (final DittoHeaders dittoHeaders)
focal_class.return: MessageHeaders
focal_class.signature: MessageHeaders doBuild(final DittoHeaders dittoHeaders)
focal_class.superclass: extends AbstractDittoHeadersBuilder<MessageHeadersBuilder, MessageHeaders>
focal_method.body: @Deprecated
      public static MessageHeadersBuilder newInstance(final MessageDirection direction, final CharSequence thingId,
              final CharSequence subject) {
  
          return newInstance(direction, ThingId.of(thingId), subject);
      }
focal_method.class_method_signature: MessageHeadersBuilder.newInstance(final MessageDirection direction, final CharSequence thingId,
              final CharSequence subject)
focal_method.full_signature: @Deprecated public static MessageHeadersBuilder newInstance(final MessageDirection direction, final CharSequence thingId,
              final CharSequence subject)
focal_method.identifier: newInstance
focal_method.invocations: newInstance of
focal_method.modifiers: @Deprecated public static
focal_method.parameters: (final MessageDirection direction, final CharSequence thingId,
              final CharSequence subject)
focal_method.return: MessageHeadersBuilder
focal_method.signature: MessageHeadersBuilder newInstance(final MessageDirection direction, final CharSequence thingId,
              final CharSequence subject)