Class SynchronousResources


  • @Path("/sync")
    public class SynchronousResources
    extends java.lang.Object
    Synchronous (in JAX-RS lingo [1]) resources.

    [1] These resources are synchronous because they return either a Response or a response body entity that will be wrapped with Response.ok(Object), whether or not this entity body is complete or streaming.

    • Constructor Detail

      • SynchronousResources

        public SynchronousResources()
    • Method Detail

      • getUri

        @Produces("text/plain")
        @Path("/uris/{type:(relative|absolute)}")
        @GET
        public java.lang.String getUri​(@PathParam("type")
                                       java.lang.String uriType,
                                       @Context
                                       javax.ws.rs.core.UriInfo uriInfo)
      • get444Status

        @Path("/statuses/444")
        @GET
        public javax.ws.rs.core.Response get444Status()
      • objectsByCategory

        @Produces("text/plain")
        @Path("/matrix/{pathSegment:ps}/params")
        @GET
        public java.lang.String objectsByCategory​(@PathParam("pathSegment")
                                                  javax.ws.rs.core.PathSegment pathSegment,
                                                  @MatrixParam("mp")
                                                  java.util.List<java.lang.String> matrixParams)
      • bogusChunked

        @Produces("text/plain")
        @Path("/bogus-chunked")
        @GET
        public javax.ws.rs.core.Response bogusChunked()
      • serviceTalkRequest

        @Produces("text/plain")
        @Path("/servicetalk-request")
        @GET
        public java.lang.String serviceTalkRequest​(@Context
                                                   StreamingHttpRequest serviceTalkRequest)
      • explicitHead

        @Produces("text/plain")
        @Path("/head")
        @HEAD
        public javax.ws.rs.core.Response explicitHead​(java.lang.String requestContent)
      • getText

        @Produces("text/plain")
        @Path("/text")
        @GET
        public java.lang.String getText​(@Nullable @QueryParam("qp")
                                        java.lang.String qp,
                                        @QueryParam("null")
                                        boolean nullResult,
                                        @Nullable @HeaderParam("hp")
                                        java.lang.String hp)
      • postText

        @Consumes("text/plain")
        @Produces("text/plain")
        @Path("/text")
        @POST
        public java.lang.String postText​(java.lang.String requestContent)
      • getTextResponse

        @Produces("text/plain")
        @Path("/text-response")
        @GET
        public javax.ws.rs.core.Response getTextResponse​(@Context
                                                         javax.ws.rs.core.HttpHeaders headers)
      • postTextResponse

        @Produces("text/plain")
        @Path("/text-response")
        @POST
        public javax.ws.rs.core.Response postTextResponse​(java.lang.String requestContent)
      • getTextBuffer

        @Produces("text/plain")
        @Path("/text-buffer")
        @GET
        public Buffer getTextBuffer()
      • postTextBuffer

        @Consumes("text/plain")
        @Produces("text/plain")
        @Path("/text-buffer")
        @POST
        public Buffer postTextBuffer​(Buffer requestContent)
      • postJsonBuffer

        @Consumes("application/json")
        @Produces("application/json")
        @Path("/json-buffer")
        @POST
        public Buffer postJsonBuffer​(Buffer requestContent)
      • postTextBytes

        @Consumes("text/plain")
        @Produces("text/plain")
        @Path("/text-bytes")
        @POST
        public byte[] postTextBytes​(byte[] requestContent)
      • postJsonBytes

        @Consumes("application/json")
        @Produces("application/json")
        @Path("/json-bytes")
        @POST
        public byte[] postJsonBytes​(byte[] requestContent)
      • getTextBufferResponse

        @Produces("text/plain")
        @Path("/text-buffer-response")
        @GET
        public javax.ws.rs.core.Response getTextBufferResponse​(@Context
                                                               javax.ws.rs.core.HttpHeaders headers)
      • postTextBufferResponse

        @Produces("text/plain")
        @Path("/text-buffer-response")
        @POST
        public javax.ws.rs.core.Response postTextBufferResponse​(Buffer requestContent)
      • postTextStrInPubOut

        @Consumes("text/plain")
        @Produces("text/plain")
        @Path("/text-strin-pubout")
        @POST
        public Publisher<Buffer> postTextStrInPubOut​(java.lang.String requestContent)
      • postTextPubInStrOut

        @Consumes("text/plain")
        @Produces("text/plain")
        @Path("/text-pubin-strout")
        @POST
        public java.lang.String postTextPubInStrOut​(Publisher<Buffer> requestContent)
      • postTextPubInPubOut

        @Consumes("text/plain")
        @Produces("text/plain")
        @Path("/text-pubin-pubout")
        @POST
        public Publisher<Buffer> postTextPubInPubOut​(Publisher<Buffer> requestContent)
      • getTextPubResponse

        @Produces("text/plain")
        @Path("/text-pub-response")
        @GET
        public javax.ws.rs.core.Response getTextPubResponse​(@QueryParam("i")
                                                            int i)
      • postTextOioStreams

        @Consumes("text/plain")
        @Produces("text/plain")
        @Path("/text-oio-streams")
        @POST
        public javax.ws.rs.core.StreamingOutput postTextOioStreams​(java.io.InputStream requestContent)
      • postJsonOioStreams

        @Consumes("application/json")
        @Produces("application/json")
        @Path("/json-oio-streams")
        @POST
        public javax.ws.rs.core.StreamingOutput postJsonOioStreams​(java.io.InputStream requestContent)
      • filtered

        @Produces("text/plain")
        @Path("/filtered")
        @POST
        public java.lang.String filtered​(java.lang.String requestContent)
      • getJson

        @Produces("application/json")
        @Path("/json")
        @GET
        public java.util.Map<java.lang.String,​java.lang.Object> getJson()
      • postJson

        @Consumes("application/json")
        @Produces("application/json")
        @Path("/json")
        @POST
        public java.util.Map<java.lang.String,​java.lang.Object> postJson​(java.util.Map<java.lang.String,​java.lang.Object> requestContent)
      • putJsonResponse

        @Consumes("application/json")
        @Produces("application/json")
        @Path("/json-response")
        @PUT
        public javax.ws.rs.core.Response putJsonResponse​(java.util.Map<java.lang.String,​java.lang.Object> requestContent)
      • postJsonMapInPubOut

        @Consumes("application/json")
        @Produces("application/json")
        @Path("/json-mapin-pubout")
        @POST
        public Publisher<Buffer> postJsonMapInPubOut​(java.util.Map<java.lang.String,​java.lang.Object> requestContent)
      • postJsonPubInMapOut

        @Consumes("application/json")
        @Produces("application/json")
        @Path("/json-pubin-mapout")
        @POST
        public java.util.Map<java.lang.String,​java.lang.Object> postJsonPubInMapOut​(Publisher<Buffer> requestContent)
      • postJsonPubInPubOut

        @Consumes("application/json")
        @Produces("application/json")
        @Path("/json-pubin-pubout")
        @POST
        public Publisher<Buffer> postJsonPubInPubOut​(Publisher<Buffer> requestContent)
      • postJsonBufSingleInSingleOutResponse

        @Consumes("application/json")
        @Produces("application/json")
        @Path("/json-buf-sglin-sglout-response")
        @POST
        public javax.ws.rs.core.Response postJsonBufSingleInSingleOutResponse​(Single<Buffer> requestContent)
      • postJsonBufPubInPubOut

        @Consumes("application/json")
        @Produces("application/json")
        @Path("/json-buf-pubin-pubout")
        @POST
        public Publisher<Buffer> postJsonBufPubInPubOut​(Publisher<Buffer> requestContent)
      • postJsonBufPubInPubOutResponse

        @Consumes("application/json")
        @Produces("application/json")
        @Path("/json-buf-pubin-pubout-response")
        @POST
        public javax.ws.rs.core.Response postJsonBufPubInPubOutResponse​(Publisher<Buffer> requestContent)
      • postJsonPojoInPojoOut

        @Consumes("application/json")
        @Produces("application/json")
        @Path("/json-pojoin-pojoout")
        @POST
        public TestPojo postJsonPojoInPojoOut​(TestPojo testPojo)
      • postJsonPojoInPojoOutResponse

        @Consumes("application/json")
        @Produces("application/json")
        @Path("/json-pojoin-pojoout-response")
        @POST
        public javax.ws.rs.core.Response postJsonPojoInPojoOutResponse​(TestPojo testPojo)
      • securityContext

        @Produces("application/json")
        @Path("/security-context")
        @GET
        public javax.ws.rs.core.SecurityContext securityContext​(@Context
                                                                javax.ws.rs.core.SecurityContext securityContext)