examples/appnet-api-server/src/main/java/com/hedera/hashgraph/identity/hcs/example/appnet/handlers/DidHandler.java
/**
   * Constructs a new DID topic message for the given input data.
   * The unsigned message is written into the response body.
   *
   * @param ctx       The HTTP context.
   * @param json      The DID document as JSON string.
   * @param operation The DID Method Operation.
   */
Constructs a new DID topic message for the given input data.
The unsigned message is written into the response body.

@param ctx       The HTTP context.
@param json      The DID document as JSON string.
@param operation The DID Method Operation.
Constructs a new DID topic message for the given input data . The unsigned message is written into the response body . @param ctx The HTTP context . @param json The DID document as JSON string . @param operation The DID Method Operation .
private void buildDidMessage(final Context ctx, final String json, final DidMethodOperation operation) {
    try {
      MessageEnvelope<HcsDidMessage> message = HcsDidMessage.fromDidDocumentJson(json, operation);
      ctx.render(message.toJson());
    } catch (Exception e) {
      ctx.getResponse().status(Status.BAD_REQUEST);
      ctx.render(Jackson.json(new ErrorResponse(e)));
    }
  }
private void buildDidMessage ( final Context ctx , final String json , final DidMethodOperation operation ) { try { MessageEnvelope < HcsDidMessage > message = HcsDidMessage . fromDidDocumentJson ( json , operation ) ; ctx . render ( message . toJson ( ) ) ; } catch ( Exception e ) { ctx . getResponse ( ) . status ( Status . BAD_REQUEST ) ; ctx . render ( Jackson . json ( new ErrorResponse ( e ) ) ) ; } }
Constructs a new DID topic message for the given input data.
Constructs a new DID topic message for the given input data .