Subversion Repositories XServices

Rev

Rev 94 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 94 Rev 109
Line 1... Line -...
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;
Line 18... Line 2...
18
 
2
 
19
import java.io.File;
-
 
20
import java.util.List;
-
 
21
 
3
import java.io.File;
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;
-
 
25
import javax.ws.rs.PathParam;
6
import javax.ws.rs.Path;
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;
-
 
30
import javax.ws.rs.core.MediaType;
10
import javax.ws.rs.core.HttpHeaders;
Line 31... Line -...
31
import javax.ws.rs.core.Response;
-
 
32
 
-
 
33
import net.brutex.xservices.types.FileInfoType;
-
 
34
 
-
 
35
 
11
import javax.ws.rs.core.Response;
36
 
12
 
37
@Path("/CVSService/")
13
@Path("/CVSService/")
38
@Produces ({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})
14
@Produces({"application/xml", "application/json"})
-
 
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";
39
public interface CVSInfo {
20
  public static final String WS_OPERATION_GETFILECONTENT = "getFileContent";
40
 
21
  public static final String WS_OPERATION_SEARCHFILECONTENT = "searchFileContent";
41
/**
-
 
42
 * @param module
22
 
43
 * @param withDir
23
  @GET
-
 
24
  @Path("getRepositoryFiles")
44
 * @param withFiles
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
 
-
 
27
  @GET
-
 
28
  @Path("getModules")
46
 * @param search
29
  public abstract Response getModules(@Context HttpHeaders paramHttpHeaders, @QueryParam("config") File paramFile, @QueryParam("forceNoCache") @DefaultValue("false") boolean paramBoolean);
47
 * @param count
30
 
-
 
31
  @GET
48
 * @param page
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
-
 
52
@Path("getRepositoryFiles/")
-
 
53
public Response getRepositoryFiles(@Context HttpHeaders h,
-
 
54
		@QueryParam("config") File f,
-
 
55
		@QueryParam("modules") @DefaultValue("") String modules,
35
  @GET
56
		@QueryParam("showRevisions") @DefaultValue("false") boolean showRevisions,
-
 
57
		@QueryParam("forceNoCache") @DefaultValue("false") boolean forceNoCache
36
  @Path("getFileContent")
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
-
 
61
@Path("getModules")
-
 
62
public Response getModules(@Context HttpHeaders h, 
39
  @GET
63
		@QueryParam("config") File f,
-
 
64
		@QueryParam("forceNoCache") @DefaultValue("false") boolean forceNoCache);
40
  @Path("searchFileContent")
Line 65... Line -...
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);
-
 
42
}
-
 
43
 
66
}
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