java.lang.Object
ee.jakarta.tck.ws.rs.spec.resource.responsemediatype.MediaResource
@Produces("text/html")
@Path("resource")
public class MediaResource
extends Object
-
Constructor Summary
Constructors
-
Method Summary
jakarta.ws.rs.core.Response
html(jakarta.ws.rs.core.Request req)
jakarta.ws.rs.core.Response
jakarta.ws.rs.core.Response
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
MediaResource
public MediaResource()
-
Method Details
-
override
@GET
@Path("responseoverride")
@Produces("application/x-www-form-urlencoded")
public jakarta.ws.rs.core.Response override()
-
method
@GET
@Path("method")
@Produces("application/atom+xml")
public jakarta.ws.rs.core.Response method()
-
clazz
@GET
@Path("class")
public jakarta.ws.rs.core.Response clazz()
-
plain
@POST
@Produces("text/plain")
public String plain()
-
html
@POST
public String html(@Context
jakarta.ws.rs.core.Request req)
-
xml
@POST
@Produces("text/xml")
public String xml()
-
app
@POST
@Produces("application/*")
public String app()
-
appxml
@POST
@Produces("application/xml")
public String appxml()
-
png
@POST
@Produces("image/png")
public String png()
-
image
@POST
@Produces("image/*")
public String image()