svn-gvsig-desktop / tmp / trunk / servidor / WorkSpace_Servidor / wps-plugin-0.4.0-operation-StreetsMap / src / org / tigris / frogs / plugin / wpsint / impl_0_4_0 / operation / streetsmap / GetCapabilitiesResponse.java @ 26595
History | View | Annotate | Download (4.87 KB)
1 |
/*
|
---|---|
2 |
* ============================================================================
|
3 |
* Copyright 2006 Government of Canada
|
4 |
*
|
5 |
* Licensed under the Apache License, Version 2.0 (the "License");
|
6 |
* you may not use this file except in compliance with the License.
|
7 |
* You may obtain a copy of the License at
|
8 |
*
|
9 |
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
*
|
11 |
* Unless required by applicable law or agreed to in writing, software
|
12 |
* distributed under the License is distributed on an "AS IS" BASIS,
|
13 |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14 |
* See the License for the specific language governing permissions and
|
15 |
* limitations under the License.
|
16 |
* ============================================================================
|
17 |
*/
|
18 |
/*
|
19 |
$Id:
|
20 |
$HeadURL:
|
21 |
*/
|
22 |
|
23 |
/*
|
24 |
** ** ******* ***** ***** ** ** *****
|
25 |
** ** ** ** ** ** ** ** ** ** **
|
26 |
** ** ** ** ** ** ** *** ** ** ** ***
|
27 |
** ** ** ******* ***** ** * ** ** ** ** * **
|
28 |
** ** ** ** ** *** ** ******* *** **
|
29 |
** ** ** ** ** ** ** ** ** ** ** ** **
|
30 |
******* ** ***** ***** ** ** ** *****
|
31 |
Generated from WPS 0.4.0 Code Generator Tool version 0.9.0 at Tue Mar 25 18:07:45 GMT+01:00 2008 By PS, RC, MC
|
32 |
*/
|
33 |
|
34 |
package org.tigris.frogs.plugin.wpsint.impl_0_4_0.operation.streetsmap; |
35 |
|
36 |
import org.apache.commons.logging.Log; |
37 |
import org.apache.commons.logging.LogFactory; |
38 |
|
39 |
import org.tigris.frogs.plugin.wpsint.impl_0_4_0.*; |
40 |
import org.tigris.frogs.StandardSessionDataRequestedType; |
41 |
|
42 |
/**
|
43 |
* To be documented
|
44 |
*
|
45 |
*/
|
46 |
public class GetCapabilitiesResponse extends org.tigris.frogs.plugin.wpsint.impl_0_4_0.GetCapabilitiesResponse { |
47 |
|
48 |
// Logger object for logging in this class
|
49 |
protected final Log logger = LogFactory.getLog(getClass()); |
50 |
|
51 |
private ProcessOfferingsType processOffering = null; |
52 |
private org.tigris.frogs.ows.impl_1_0_0.OperationsMetadataType operationsMetadata = null; |
53 |
private org.tigris.frogs.ows.ServiceIdentificationType serviceIdentification = null; |
54 |
private org.tigris.frogs.ows.ServiceProviderType serviceProvider = null; |
55 |
// No static element
|
56 |
private ProcessDeclarationRunnable[] processes = |
57 |
new ProcessDeclarationRunnable[] { |
58 |
new Process_GetMap(),
|
59 |
new Process_GetCandidates()
|
60 |
}; |
61 |
|
62 |
/**
|
63 |
* Constructor
|
64 |
*/
|
65 |
public GetCapabilitiesResponse() throws Exception {} |
66 |
|
67 |
/**
|
68 |
* Raise this event to point out the fact that the GetCapbilities
|
69 |
* properties will be refreshed
|
70 |
*/
|
71 |
@Override
|
72 |
public void afterPropertiesSet() { |
73 |
this.processOffering = null; |
74 |
this.operationsMetadata = null; |
75 |
this.operationsMetadata = null; |
76 |
this.serviceIdentification = null; |
77 |
this.serviceProvider = null; |
78 |
} |
79 |
|
80 |
/**
|
81 |
* To be documented
|
82 |
*
|
83 |
* @return ProcessOfferingsType
|
84 |
*
|
85 |
*/
|
86 |
public ProcessOfferingsType getProcessOfferings() {
|
87 |
if ( this.processOffering == null ) |
88 |
this.processOffering = new ProcessOfferings(); |
89 |
this.processOffering.setProcesses( this.processes ); |
90 |
|
91 |
return this.processOffering; |
92 |
} |
93 |
|
94 |
/**
|
95 |
* To be documented
|
96 |
*
|
97 |
* @return org.tigris.frogs.ows.impl_1_0_0.OperationsMetadataType
|
98 |
*
|
99 |
*/
|
100 |
public org.tigris.frogs.ows.impl_1_0_0.OperationsMetadataType getOperationsMetadata() throws Exception { |
101 |
if ( this.operationsMetadata == null ) |
102 |
this.operationsMetadata = LocalizationTextOperation.getOperationsMetadata(getStatelessDataRequested().getServerName());
|
103 |
|
104 |
return this.operationsMetadata; |
105 |
} |
106 |
|
107 |
/**
|
108 |
* To be documented
|
109 |
*
|
110 |
* @return org.tigris.frogs.ows.ServiceIdentificationType
|
111 |
*
|
112 |
*/
|
113 |
public org.tigris.frogs.ows.ServiceIdentificationType getServiceIdentification() throws Exception { |
114 |
if ( this.serviceIdentification == null ) |
115 |
this.serviceIdentification = LocalizationTextOperation.getServiceIdentification(getStatelessDataRequested().getLanguage());
|
116 |
|
117 |
return this.serviceIdentification; |
118 |
} |
119 |
|
120 |
/**
|
121 |
* To be documented
|
122 |
*
|
123 |
* @return org.tigris.frogs.ows.ServiceProviderType
|
124 |
*
|
125 |
*/
|
126 |
public org.tigris.frogs.ows.ServiceProviderType getServiceProvider() throws Exception { |
127 |
if ( this.serviceProvider == null ) |
128 |
this.serviceProvider = LocalizationTextOperation.getServiceProvider(getStatelessDataRequested().getLanguage());
|
129 |
|
130 |
return this.serviceProvider; |
131 |
} |
132 |
|
133 |
/**
|
134 |
* To be documented
|
135 |
*
|
136 |
* @return String
|
137 |
*
|
138 |
*/
|
139 |
public String getUpdateSequenceAttribute() { |
140 |
return LocalizationTextOperation.getUpdateSequence();
|
141 |
} |
142 |
|
143 |
/**
|
144 |
* To be documented
|
145 |
*
|
146 |
* @return String
|
147 |
*
|
148 |
*/
|
149 |
public String getVersionAttribute() { |
150 |
return LocalizationTextOperation.getVersion();
|
151 |
} |
152 |
|
153 |
/**
|
154 |
* The error raised somewhere
|
155 |
*
|
156 |
* @param ex
|
157 |
*
|
158 |
*/
|
159 |
public void throwExceptionCheck(org.tigris.frogs.OWSException ex) { |
160 |
info( "What?" + ex.toString());
|
161 |
} |
162 |
|
163 |
/**
|
164 |
* Message to display in warnin mode
|
165 |
*
|
166 |
* @param exception
|
167 |
*
|
168 |
*/
|
169 |
private void info(String message) { |
170 |
logger.info(message); |
171 |
} |
172 |
|
173 |
} |