Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
317 ashish 1
/**
2
 * 
3
 */
4
package in.shop2020.serving.controllers;
5
 
6
import java.io.IOException;
7
 
8
import org.apache.juli.logging.Log;
9
import org.apache.juli.logging.LogFactory;
10
import org.apache.struts2.rest.DefaultHttpHeaders;
11
import org.apache.struts2.rest.HttpHeaders;
12
 
13
/**
14
 * @author naveen
15
 *
16
 */
17
public class CategoryController extends BaseController {
18
 
19
	/**
20
	 * 
21
	 */
22
	private static Log log = LogFactory.getLog(CategoryController.class);
23
 
24
	/**
25
	 * 
26
	 */
27
	private String id;
28
 
29
	/**
30
	 * GET /category/10004
31
	 * 
32
	 */
33
    public HttpHeaders show() throws SecurityException, IOException {
34
    	log.info("id=" + id);
35
 
36
        return new DefaultHttpHeaders("show");
37
    }
38
 
39
    /**
40
     * 
41
     * @param id
42
     */
43
    public void setId(String id) {
44
        this.id = id;
45
    }
46
 
47
    /**
48
     * 
49
     */
50
    public String getId() {
51
    	return this.id;
52
    }
53
}