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 @ 26512
History | View | Annotate | Download (4.83 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 Thu Feb 21 12:05:11 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 |
}; |
60 |
|
61 |
/**
|
62 |
* Constructor
|
63 |
*/
|
64 |
public GetCapabilitiesResponse() throws Exception {} |
65 |
|
66 |
/**
|
67 |
* Raise this event to point out the fact that the GetCapbilities
|
68 |
* properties will be refreshed
|
69 |
*/
|
70 |
@Override
|
71 |
public void afterPropertiesSet() { |
72 |
this.processOffering = null; |
73 |
this.operationsMetadata = null; |
74 |
this.operationsMetadata = null; |
75 |
this.serviceIdentification = null; |
76 |
this.serviceProvider = null; |
77 |
} |
78 |
|
79 |
/**
|
80 |
* To be documented
|
81 |
*
|
82 |
* @return ProcessOfferingsType
|
83 |
*
|
84 |
*/
|
85 |
public ProcessOfferingsType getProcessOfferings() {
|
86 |
if ( this.processOffering == null ) |
87 |
this.processOffering = new ProcessOfferings(); |
88 |
this.processOffering.setProcesses( this.processes ); |
89 |
|
90 |
return this.processOffering; |
91 |
} |
92 |
|
93 |
/**
|
94 |
* To be documented
|
95 |
*
|
96 |
* @return org.tigris.frogs.ows.impl_1_0_0.OperationsMetadataType
|
97 |
*
|
98 |
*/
|
99 |
public org.tigris.frogs.ows.impl_1_0_0.OperationsMetadataType getOperationsMetadata() throws Exception { |
100 |
if ( this.operationsMetadata == null ) |
101 |
this.operationsMetadata = LocalizationTextOperation.getOperationsMetadata(getStatelessDataRequested().getServerName());
|
102 |
|
103 |
return this.operationsMetadata; |
104 |
} |
105 |
|
106 |
/**
|
107 |
* To be documented
|
108 |
*
|
109 |
* @return org.tigris.frogs.ows.ServiceIdentificationType
|
110 |
*
|
111 |
*/
|
112 |
public org.tigris.frogs.ows.ServiceIdentificationType getServiceIdentification() throws Exception { |
113 |
if ( this.serviceIdentification == null ) |
114 |
this.serviceIdentification = LocalizationTextOperation.getServiceIdentification(getStatelessDataRequested().getLanguage());
|
115 |
|
116 |
return this.serviceIdentification; |
117 |
} |
118 |
|
119 |
/**
|
120 |
* To be documented
|
121 |
*
|
122 |
* @return org.tigris.frogs.ows.ServiceProviderType
|
123 |
*
|
124 |
*/
|
125 |
public org.tigris.frogs.ows.ServiceProviderType getServiceProvider() throws Exception { |
126 |
if ( this.serviceProvider == null ) |
127 |
this.serviceProvider = LocalizationTextOperation.getServiceProvider(getStatelessDataRequested().getLanguage());
|
128 |
|
129 |
return this.serviceProvider; |
130 |
} |
131 |
|
132 |
/**
|
133 |
* To be documented
|
134 |
*
|
135 |
* @return String
|
136 |
*
|
137 |
*/
|
138 |
public String getUpdateSequenceAttribute() { |
139 |
return LocalizationTextOperation.getUpdateSequence();
|
140 |
} |
141 |
|
142 |
/**
|
143 |
* To be documented
|
144 |
*
|
145 |
* @return String
|
146 |
*
|
147 |
*/
|
148 |
public String getVersionAttribute() { |
149 |
return LocalizationTextOperation.getVersion();
|
150 |
} |
151 |
|
152 |
/**
|
153 |
* The error raised somewhere
|
154 |
*
|
155 |
* @param ex
|
156 |
*
|
157 |
*/
|
158 |
public void throwExceptionCheck(org.tigris.frogs.OWSException ex) { |
159 |
info( "What?" );
|
160 |
} |
161 |
|
162 |
/**
|
163 |
* Message to display in warnin mode
|
164 |
*
|
165 |
* @param exception
|
166 |
*
|
167 |
*/
|
168 |
private void info(String message) { |
169 |
logger.info(message); |
170 |
} |
171 |
|
172 |
} |