package com.formulasearchengine.mathmltools.converters.mathoid;

/**
 * @author Andre Greiner-Petter
 */
public enum MathoidEndpoints {
    SVG_ENDPOINT("svg"),
    PNG_ENDPOINT("png"),
    MML_ENDPOINT("mml"),
    INFO_ENDPOINT("texvcinfo");

    private final String endpoint;

    MathoidEndpoints(String endpoint) {
        this.endpoint = endpoint;
    }

    public String getEndpoint(String host) {
        return host + "/" + endpoint;
    }
}

@@ -58,16 +58,57 @@
 thoid;%0A%0A
+import com.google.common.net.MediaType;%0A%0A
 /**%0A * @
@@ -192,16 +192,37 @@
 NT(%22svg%22
+, MediaType.SVG_UTF_8
 ),%0A    P
@@ -238,16 +238,31 @@
 NT(%22png%22
+, MediaType.PNG
 ),%0A    M
@@ -278,16 +278,63 @@
 NT(%22mml%22
+, MediaType.create(%22application%22, %22mathml+xml%22)
 ),%0A    I
@@ -357,16 +357,38 @@
 xvcinfo%22
+, MediaType.JSON_UTF_8
 );%0A%0A    
@@ -417,16 +417,63 @@
 ndpoint;
+%0A    private final MediaType responseMediaType;
 %0A%0A    Ma
@@ -502,16 +502,45 @@
 endpoint
+, MediaType responseMediaType
 ) %7B%0A    
@@ -565,24 +565,76 @@
 = endpoint;%0A
+        this.responseMediaType = responseMediaType;%0A
     %7D%0A%0A    p
@@ -716,11 +716,225 @@
 t;%0A    %7D
+%0A%0A    public MediaType getResponseMediaType() %7B%0A        return responseMediaType;%0A    %7D%0A%0A    public static void main(String%5B%5D args)%7B%0A        System.out.println(MML_ENDPOINT.getResponseMediaType().toString());%0A    %7D
 %0A%7D%0A

Add MediaTypes to MathoidEndpoints