1
2
3
4
5
6
7
8
9
10
11 package org.astrogrid.dataservice.service.siap;
12
13 import java.io.IOException;
14 import org.astrogrid.cfg.ConfigFactory;
15 import org.astrogrid.dataservice.metadata.VoResourcePlugin;
16 import org.astrogrid.dataservice.metadata.v0_10.VoResourceSupport;
17 import org.astrogrid.dataservice.service.ServletHelper;
18 import org.astrogrid.query.Query;
19
20 /*** Returns Registry resources for a service type that indicates that this
21 * service can provide Simple Image Access Protocol
22 */
23 public class SiapResources extends VoResourceSupport implements VoResourcePlugin {
24
25 /***
26 * Returns ServiceType for cone search
27 */
28 public String getVoResource() throws IOException {
29
30 String siap =
31 makeVoResourceElement("ServiceType", "")+
32 makeCore("/siap")+
33
34
35
36 "<Capability xmlns:q1='http://www.ivoa.net/xml/SIA/v0.6' xsi:type='q1:SimpleImageAccessType'>"+
37 "<q1:ImageServiceType>Cutout</q1:ImageServiceType>"+
38 "<q1:MaxQueryRegionSize>"+
39 "<q1:long>0</q1:long>"+
40 "<q1:lat>0</q1:lat>"+
41 "</q1:MaxQueryRegionSize>"+
42 "<q1:MaxImageExtent>"+
43 "<q1:long>0</q1:long>"+
44 "<q1:lat>0</q1:lat>"+
45 "</q1:MaxImageExtent>"+
46 "<q1:MaxImageSize>"+
47 "<q1:long>0</q1:long>"+
48 "<q1:lat>0</q1:lat>"+
49 "</q1:MaxImageSize>"+
50 "<q1:MaxFileSize>0</q1:MaxFileSize>"+
51 "<q1:MaxRecords>"+ConfigFactory.getCommonConfig().getString(Query.MAX_RETURN_KEY,"0")+"</q1:MaxRecords>"+
52 "</Capability>"+
53 "<Interface>"+
54 " <Invocation>Custom</Invocation>"+
55 " <AccessURL>"+ServletHelper.getUrlStem()+"SimpleImageQuery</AccessURL>"+
56 "</Interface>"+
57 "</Resource>";
58
59 return siap;
60 }
61
62
63 }
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82