Class DfdlService


  • @Path("/dfdl/")
    public class DfdlService
    extends Object
    DFDL Service provides DFDL inspection service which generate an AtlasMap Document object from DFDL instance or DFDL schema.
    • Constructor Detail

      • DfdlService

        public DfdlService()
    • Method Detail

      • toJson

        protected byte[] toJson​(Object value)
        Serializes to a JSON.
        Parameters:
        value - value
        Returns:
        serialized
      • fromJson

        protected <T> T fromJson​(InputStream value,
                                 Class<T> clazz)
        Deserializes from a JSON.
        Type Parameters:
        T - type
        Parameters:
        value - value
        clazz - type
        Returns:
        deserialized
      • simpleHelloWorld

        @GET
        @Path("/simple")
        @Produces("text/plain")
        public String simpleHelloWorld​(@QueryParam("from")
                                       String from)
        Simple hello service.
        Parameters:
        from - sender
        Returns:
        pong
      • inspect

        @POST
        @Consumes("application/json")
        @Produces("application/json")
        @Path("/inspect")
        public javax.ws.rs.core.Response inspect​(InputStream request)
        Inspects a DFDL schema or instance and return a Document object.
        Parameters:
        request - DfdlInspectionRequest
        Returns:
        DfdlInspectionResponse
      • inspect

        public javax.ws.rs.core.Response inspect​(io.atlasmap.dfdl.v2.DfdlInspectionRequest request)
        Inspects a DFDL schema or instance and return a Document object.
        Parameters:
        request - request
        Returns:
        DfdlInspectionResponse