All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.aesteve.vertx.nubes.marshallers.PayloadMarshaller Maven / Gradle / Ivy

The newest version!
package com.github.aesteve.vertx.nubes.marshallers;

public interface PayloadMarshaller {

   T unmarshallPayload(String body, Class clazz);

  String marshallPayload(Object payload);

  String marshallUnexpectedError(Throwable error, boolean displayDetails);

  String marshallHttpStatus(int statusCode, String statusMessage);

  final class Constants {
    public static final String ERROR_KEY = "error";
    public static final String ERROR_CODE_KEY = "code";
    public static final String ERROR_MESSAGE_KEY = "message";
    private Constants() {}
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy