package org.jboss.resteasy.test.resource.basic.resource;

import javax.ws.rs.GET;
import javax.ws.rs.MatrixParam;
import javax.ws.rs.Path;

import org.junit.Assert;

@Path("/queryEscapedMatrParam")
public class UriInfoEscapedMatrParamResource {
    private static final String ERROR_MSG = "Wrong parameter";

    @GET
    public String doGet(@MatrixParam("a") String a, @MatrixParam("b") String b, @MatrixParam("c") String c,
            @MatrixParam("d") String d) {
        Assert.assertEquals(ERROR_MSG, "a;b", a);
        Assert.assertEquals(ERROR_MSG, "x/y", b);
        Assert.assertEquals(ERROR_MSG, "m\\n", c);
        Assert.assertEquals(ERROR_MSG, "k=l", d);
        return "content";
    }
}
