Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 22nd, 2012  |  syntax: None  |  size: 0.54 KB  |  hits: 4  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. package com.integration.rest.service;
  2.  
  3. import javax.ws.rs.Consumes;
  4. import javax.ws.rs.Path;
  5. import javax.ws.rs.PathParam;
  6. import javax.ws.rs.core.MediaType;
  7.  
  8. import org.codehaus.jra.Delete;
  9. import org.codehaus.jra.Post;
  10.  
  11. public interface IUpdateService {
  12.        
  13.         @Delete
  14.         @Path("/{sharing}")
  15.         @Consumes(MediaType.APPLICATION_JSON)
  16.         public void deleteFiles(@PathParam("sharing")String sharing, String items);
  17.                
  18.         @Post
  19.         @Path("/{sharing}")
  20.         @Consumes(MediaType.APPLICATION_JSON)
  21.         public void addFiles(@PathParam("sharing")String sharing, String items);
  22.        
  23.        
  24. }