Package io.atlasmap.dfdl.service
Class DfdlService
- java.lang.Object
-
- io.atlasmap.dfdl.service.DfdlService
-
@Path("/dfdl/") public class DfdlService extends ObjectDFDL Service provides DFDL inspection service which generate an AtlasMap Document object from DFDL instance or DFDL schema.
-
-
Constructor Summary
Constructors Constructor Description DfdlService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected <T> TfromJson(InputStream value, Class<T> clazz)Deserializes from a JSON.javax.ws.rs.core.Responseinspect(io.atlasmap.dfdl.v2.DfdlInspectionRequest request)Inspects a DFDL schema or instance and return a Document object.javax.ws.rs.core.Responseinspect(InputStream request)Inspects a DFDL schema or instance and return a Document object.StringsimpleHelloWorld(String from)Simple hello service.protected byte[]toJson(Object value)Serializes to a JSON.
-
-
-
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- valueclazz- 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
-
-