Statistics
| Revision:

gvsig-tools / org.gvsig.tools / library / trunk / org.gvsig.tools / org.gvsig.tools.util / org.gvsig.tools.util.api / src / main / java / org / gvsig / simplehttpservice / commands / AbstractCommandFactory.java @ 2213

History | View | Annotate | Download (919 Bytes)

1

    
2
package org.gvsig.simplehttpservice.commands;
3

    
4
import org.apache.commons.lang3.Range;
5

    
6
/**
7
 *
8
 * @author jjdelcerro
9
 */
10
public abstract class AbstractCommandFactory implements CommandFactory {
11
        
12
    private final String name;
13
    private final Range nargs;
14
    private final String mimetype;
15
    private final String description;
16

    
17
    protected AbstractCommandFactory(String name, Range nargs, String mimetype, String description) {
18
        this.name = name;
19
        this.nargs = nargs;
20
        this.mimetype = mimetype;
21
        this.description = description;
22
    }
23

    
24
    @Override
25
    public String getDescription() {
26
        return this.description;
27
    }
28
    
29
    @Override
30
    public String getName() {
31
        return this.name;
32
    }
33

    
34
    @Override
35
    public Range getNumArgs() {
36
        return this.nargs;
37
    }
38

    
39
    @Override
40
    public String getMimeType() {
41
        return this.mimetype;
42
    }
43
    
44
}