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 / HelpFactory.java @ 2213

History | View | Annotate | Download (651 Bytes)

1

    
2
package org.gvsig.simplehttpservice.commands;
3

    
4
import org.apache.commons.lang3.Range;
5
import org.gvsig.simplehttpservice.SimpleServer;
6

    
7
/**
8
 *
9
 * @author gvSIG Team
10
 */
11
public class HelpFactory extends AbstractCommandFactory {
12

    
13
    public HelpFactory() {
14
        super(
15
            "help", 
16
            Range.between(0,1),
17
            "text/html",
18
            "help\n\n" +
19
                "Retrieve a short help of supported commands.\n" +
20
                "Use help/asjson to retrieve this help as json."
21
        );        
22
    }
23
    
24
    @Override
25
    public Command create(SimpleServer server) {
26
        return new Help(this, server);
27
    }
28
    
29
}