Subversion Repositories XServices

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
94 brianR 1
/*
2
 *   Copyright 2012 Brian Rosenberger (Brutex Network)
3
 *
4
 *   Licensed under the Apache License, Version 2.0 (the "License");
5
 *   you may not use this file except in compliance with the License.
6
 *   You may obtain a copy of the License at
7
 *
8
 *       http://www.apache.org/licenses/LICENSE-2.0
9
 *
10
 *   Unless required by applicable law or agreed to in writing, software
11
 *   distributed under the License is distributed on an "AS IS" BASIS,
12
 *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
 *   See the License for the specific language governing permissions and
14
 *   limitations under the License.
15
 */
16
 
17
package net.brutex.xservices.ws.rs;
18
 
19
import java.io.File;
20
import java.util.List;
21
 
22
import javax.ws.rs.DefaultValue;
23
import javax.ws.rs.GET;
24
import javax.ws.rs.Path;
25
import javax.ws.rs.PathParam;
26
import javax.ws.rs.Produces;
27
import javax.ws.rs.QueryParam;
28
import javax.ws.rs.core.Context;
29
import javax.ws.rs.core.HttpHeaders;
30
import javax.ws.rs.core.MediaType;
31
import javax.ws.rs.core.Response;
32
 
33
import net.brutex.xservices.types.FileInfoType;
34
 
35
 
36
 
37
@Path("/CVSService/")
38
@Produces ({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})
39
public interface CVSInfo {
40
 
41
/**
42
 * @param module
43
 * @param withDir
44
 * @param withFiles
45
 * @param depth
46
 * @param search
47
 * @param count
48
 * @param page
49
 * @return List of File
50
 */
51
@GET
52
@Path("getRepositoryFiles/")
53
public Response getRepositoryFiles(@Context HttpHeaders h,
54
		@QueryParam("config") File f,
55
		@QueryParam("modules") @DefaultValue("") String modules,
56
		@QueryParam("showRevisions") @DefaultValue("false") boolean showRevisions,
57
		@QueryParam("forceNoCache") @DefaultValue("false") boolean forceNoCache
58
		);
59
 
60
@GET
61
@Path("getModules")
62
public Response getModules(@Context HttpHeaders h,
63
		@QueryParam("config") File f,
64
		@QueryParam("forceNoCache") @DefaultValue("false") boolean forceNoCache);
65
 
66
}
67