@ApplicationPath(value="/") @Path(value="v2/atlas") public class AtlasService extends Object
Constructor and Description |
---|
AtlasService() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
createMappingRequest(InputStream mapping,
String mappingFormat,
javax.ws.rs.core.UriInfo uriInfo) |
protected <T> T |
fromJson(InputStream value,
Class<T> clazz) |
protected <T> T |
fromXml(InputStream value,
Class<T> clazz) |
protected String |
generateMappingFileName(String mappingName) |
io.atlasmap.v2.AtlasMapping |
getMappingFromFile(String fileName) |
io.atlasmap.v2.AtlasMapping |
getMappingFromStream(InputStream streamSource) |
javax.ws.rs.core.Response |
getMappingRequest(String mappingFormat,
String mappingId) |
javax.ws.rs.core.Response |
listFieldActions(javax.ws.rs.core.UriInfo uriInfo) |
javax.ws.rs.core.Response |
listMappings(javax.ws.rs.core.UriInfo uriInfo,
String filter) |
String |
ping() |
javax.ws.rs.core.Response |
processMappingRequest(InputStream request,
javax.ws.rs.core.UriInfo uriInfo) |
javax.ws.rs.core.Response |
removeMappingRequest(String mappingId) |
protected javax.ws.rs.core.Response |
saveMapping(io.atlasmap.v2.AtlasMapping mapping,
javax.ws.rs.core.UriInfo uriInfo) |
protected void |
saveMappingToFile(io.atlasmap.v2.AtlasMapping atlasMapping) |
protected byte[] |
toJson(Object value) |
javax.ws.rs.core.Response |
updateMappingRequest(InputStream mapping,
String mappingId,
javax.ws.rs.core.UriInfo uriInfo) |
protected javax.ws.rs.core.Response |
validateMapping(io.atlasmap.v2.AtlasMapping mapping,
javax.ws.rs.core.UriInfo uriInfo) |
javax.ws.rs.core.Response |
validateMappingRequest(InputStream mapping,
javax.ws.rs.core.UriInfo uriInfo) |
public AtlasService() throws io.atlasmap.api.AtlasException
io.atlasmap.api.AtlasException
@GET @Path(value="/fieldActions") @Produces(value="application/json") public javax.ws.rs.core.Response listFieldActions(@Context javax.ws.rs.core.UriInfo uriInfo)
@GET @Path(value="/mappings") @Produces(value="application/json") public javax.ws.rs.core.Response listMappings(@Context javax.ws.rs.core.UriInfo uriInfo, @QueryParam(value="filter") String filter)
@DELETE @Path(value="/mapping/{mappingId}") @Produces(value="application/json") public javax.ws.rs.core.Response removeMappingRequest(@PathParam(value="mappingId") String mappingId)
@GET @Path(value="/mapping/{mappingFormat}/{mappingId}") @Produces(value={"application/json","application/xml","application/octet-stream"}) public javax.ws.rs.core.Response getMappingRequest(@PathParam(value="mappingFormat") String mappingFormat, @PathParam(value="mappingId") String mappingId)
@PUT @Path(value="/mapping/{mappingFormat}") @Consumes(value={"application/json","application/xml","application/octet-stream"}) @Produces(value="application/json") public javax.ws.rs.core.Response createMappingRequest(InputStream mapping, @PathParam(value="mappingFormat") String mappingFormat, @Context javax.ws.rs.core.UriInfo uriInfo)
@POST @Path(value="/mapping/{mappingId}") @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response updateMappingRequest(InputStream mapping, @PathParam(value="mappingId") String mappingId, @Context javax.ws.rs.core.UriInfo uriInfo)
@PUT @Path(value="/mapping/validate") @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response validateMappingRequest(InputStream mapping, @Context javax.ws.rs.core.UriInfo uriInfo)
@PUT @Path(value="/mapping/process") @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response processMappingRequest(InputStream request, @Context javax.ws.rs.core.UriInfo uriInfo)
@GET @Path(value="/ping") public String ping()
protected javax.ws.rs.core.Response validateMapping(io.atlasmap.v2.AtlasMapping mapping, javax.ws.rs.core.UriInfo uriInfo) throws IOException, io.atlasmap.api.AtlasException
IOException
io.atlasmap.api.AtlasException
protected javax.ws.rs.core.Response saveMapping(io.atlasmap.v2.AtlasMapping mapping, javax.ws.rs.core.UriInfo uriInfo)
public io.atlasmap.v2.AtlasMapping getMappingFromFile(String fileName) throws JAXBException
JAXBException
public io.atlasmap.v2.AtlasMapping getMappingFromStream(InputStream streamSource) throws JAXBException
JAXBException
protected void saveMappingToFile(io.atlasmap.v2.AtlasMapping atlasMapping) throws JAXBException
JAXBException
protected byte[] toJson(Object value)
protected <T> T fromJson(InputStream value, Class<T> clazz)
protected <T> T fromXml(InputStream value, Class<T> clazz)
Copyright © 2018 JBoss by Red Hat. All rights reserved.