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;
|
1 |
package net.brutex.xservices.ws.rs;
|
18 |
|
2 |
|
19 |
import java.io.File;
|
3 |
import java.io.File;
|
20 |
import java.util.List;
|
- |
|
21 |
|
- |
|
22 |
import javax.ws.rs.DefaultValue;
|
4 |
import javax.ws.rs.DefaultValue;
|
23 |
import javax.ws.rs.GET;
|
5 |
import javax.ws.rs.GET;
|
24 |
import javax.ws.rs.Path;
|
6 |
import javax.ws.rs.Path;
|
25 |
import javax.ws.rs.PathParam;
|
- |
|
26 |
import javax.ws.rs.Produces;
|
7 |
import javax.ws.rs.Produces;
|
27 |
import javax.ws.rs.QueryParam;
|
8 |
import javax.ws.rs.QueryParam;
|
28 |
import javax.ws.rs.core.Context;
|
9 |
import javax.ws.rs.core.Context;
|
29 |
import javax.ws.rs.core.HttpHeaders;
|
10 |
import javax.ws.rs.core.HttpHeaders;
|
30 |
import javax.ws.rs.core.MediaType;
|
- |
|
31 |
import javax.ws.rs.core.Response;
|
11 |
import javax.ws.rs.core.Response;
|
32 |
|
- |
|
33 |
import net.brutex.xservices.types.FileInfoType;
|
- |
|
34 |
|
- |
|
35 |
|
- |
|
36 |
|
12 |
|
37 |
@Path("/CVSService/")
|
13 |
@Path("/CVSService/")
|
38 |
@Produces ({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})
|
14 |
@Produces({"application/xml", "application/json"})
|
39 |
public interface CVSInfo {
|
15 |
public abstract interface CVSInfo
|
- |
|
16 |
{
|
- |
|
17 |
public static final String WS_OPERATION_GETREPOSITORYFILES = "getRepositoryFiles";
|
- |
|
18 |
public static final String WS_OPERATION_GETMODULES = "getModules";
|
- |
|
19 |
public static final String WS_OPERATION_GETTAGS = "getTags";
|
- |
|
20 |
public static final String WS_OPERATION_GETFILECONTENT = "getFileContent";
|
40 |
|
21 |
public static final String WS_OPERATION_SEARCHFILECONTENT = "searchFileContent";
|
41 |
/**
|
22 |
|
42 |
* @param module
|
- |
|
43 |
* @param withDir
|
23 |
@GET
|
44 |
* @param withFiles
|
24 |
@Path("getRepositoryFiles")
|
- |
|
25 |
public abstract Response getRepositoryFiles(@Context HttpHeaders paramHttpHeaders, @QueryParam("config") File paramFile, @QueryParam("modules") @DefaultValue("") String paramString, @QueryParam("recursive") @DefaultValue("false") boolean paramBoolean1, @QueryParam("showRevisions") @DefaultValue("false") boolean paramBoolean2, @QueryParam("forceNoCache") @DefaultValue("false") boolean paramBoolean3);
|
45 |
* @param depth
|
26 |
|
46 |
* @param search
|
27 |
@GET
|
- |
|
28 |
@Path("getModules")
|
- |
|
29 |
public abstract Response getModules(@Context HttpHeaders paramHttpHeaders, @QueryParam("config") File paramFile, @QueryParam("forceNoCache") @DefaultValue("false") boolean paramBoolean);
|
47 |
* @param count
|
30 |
|
48 |
* @param page
|
31 |
@GET
|
- |
|
32 |
@Path("getTags")
|
49 |
* @return List of File
|
33 |
public abstract Response getTags(@Context HttpHeaders paramHttpHeaders, @QueryParam("config") File paramFile, @QueryParam("withFiles") @DefaultValue("false") boolean paramBoolean);
|
50 |
*/
|
34 |
|
51 |
@GET
|
35 |
@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,
|
36 |
@Path("getFileContent")
|
57 |
@QueryParam("forceNoCache") @DefaultValue("false") boolean forceNoCache
|
- |
|
58 |
);
|
37 |
public abstract Response getFileContent(@Context HttpHeaders paramHttpHeaders, @QueryParam("config") File paramFile, @QueryParam("file") String paramString, @QueryParam("forceNoCache") @DefaultValue("false") boolean paramBoolean);
|
59 |
|
38 |
|
60 |
@GET
|
39 |
@GET
|
61 |
@Path("getModules")
|
- |
|
62 |
public Response getModules(@Context HttpHeaders h,
|
- |
|
63 |
@QueryParam("config") File f,
|
40 |
@Path("searchFileContent")
|
64 |
@QueryParam("forceNoCache") @DefaultValue("false") boolean forceNoCache);
|
- |
|
65 |
|
41 |
public abstract Response searchFileContent(@Context HttpHeaders paramHttpHeaders, @QueryParam("config") File paramFile, @QueryParam("file_regexp") String paramString1, @QueryParam("content_regexp") String paramString2, @QueryParam("forceNoCache") @DefaultValue("false") boolean paramBoolean);
|
66 |
}
|
- |
|
- |
|
42 |
}
|
- |
|
43 |
|
- |
|
44 |
/* Location: C:\Users\brosenberger\Documents\My Box Files\XBridgeNG-download\XServices-20130131 - Kopie\WEB-INF\classes\net.zip
|
67 |
|
45 |
* Qualified Name: net.brutex.xservices.ws.rs.CVSInfo
|
68 |
|
46 |
* JD-Core Version: 0.6.2
|
- |
|
47 |
*/
|
- |
|
48 |
|
- |
|
49 |
Generated by GNU Enscript 1.6.5.90.
|
- |
|
50 |
|
- |
|
51 |
|