064496a2d7909e466b3e2366518395204b8f03f4.svn-base 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. package com.sinosoft.lz.common.origin.service;
  2. import java.util.ArrayList;
  3. import javax.ws.rs.GET;
  4. import javax.ws.rs.Path;
  5. import javax.ws.rs.PathParam;
  6. import javax.ws.rs.ProduceMime;
  7. import com.sinosoft.lz.common.origin.OriginImpl;
  8. import com.sinosoft.lz.common.origin.Originable;
  9. import com.sinosoft.lz.common.origin.vo.Origin;
  10. import com.sinosoft.lz.common.origin.vo.OriginConection;
  11. @Path("/OriginService/")
  12. public class OriginServiceImpl implements OriginServiceable{
  13. @ProduceMime("application/json")
  14. @GET
  15. @Path("/getOriginInfoById/{fd_objectid},{type}")
  16. // http://localhost:8090/bjglweb/ws/origin/OriginService/getOriginInfoById/482122985207871800000096110109,482
  17. public OriginConection getOriginInfoById(@PathParam("fd_objectid") String fd_objectid,
  18. @PathParam("type") String type) {
  19. Originable originable = new OriginImpl();
  20. OriginConection originConection = new OriginConection();
  21. ArrayList<Origin> origins = originable.getOriginInfoById(fd_objectid, type);
  22. originConection.setOrigins(origins);
  23. return originConection;
  24. }
  25. }