Project

General

Profile

« Previous | Next » 

Revision 6253

add CNRestServlet and mappings for urls in the form:
/d1/cn/*
This extends existing code for CN-specific handling. MN handling will be analogous and is forthcoming

View differences:

web.xml.tomcat5
178 178
      </init-param>
179 179
      <load-on-startup>10</load-on-startup>
180 180
    </servlet>
181
    
182
<!-- CN REST Servlet -->
183
    <servlet>
184
      <servlet-name>CNRestServlet</servlet-name>
185
      <servlet-class>edu.ucsb.nceas.metacat.restservice.CNRestServlet</servlet-class>
186
      <init-param>
187
        <param-name>debug</param-name>
188
        <param-value>1</param-value>
189
      </init-param>
190
      <init-param>
191
        <param-name>listings</param-name>
192
        <param-value>true</param-value>
193
      </init-param>
194
      <load-on-startup>15</load-on-startup>
195
    </servlet>    
181 196
  
182 197
    <servlet-mapping>
183 198
        <servlet-name>metacat</servlet-name>
......
295 310
    <url-pattern>/d1/*</url-pattern>
296 311
  </servlet-mapping>
297 312

  
313
	<!-- CN REST services -->
314
	<!-- CNCore-->
315
	<servlet-mapping>
316
		<servlet-name>CNRestServlet</servlet-name>
317
		<url-pattern>/d1/cn/object/*</url-pattern>
318
	</servlet-mapping>
319
	<servlet-mapping>
320
		<servlet-name>CNRestServlet</servlet-name>
321
		<url-pattern>/d1/cn/formats/*</url-pattern>
322
	</servlet-mapping>
323
	<servlet-mapping>
324
		<servlet-name>CNRestServlet</servlet-name>
325
		<url-pattern>/d1/cn/log/*</url-pattern>
326
	</servlet-mapping>
327
	<servlet-mapping>
328
		<servlet-name>CNRestServlet</servlet-name>
329
		<url-pattern>/d1/cn/reserve/*</url-pattern>
330
	</servlet-mapping>
331
	<servlet-mapping>
332
		<servlet-name>CNRestServlet</servlet-name>
333
		<url-pattern>/d1/cn/meta/*</url-pattern>
334
	</servlet-mapping>
335
	<!-- CNRead-->
336
	<servlet-mapping>
337
		<servlet-name>CNRestServlet</servlet-name>
338
		<url-pattern>/d1/cn/resolve/*</url-pattern>
339
	</servlet-mapping>
340
	<servlet-mapping>
341
		<servlet-name>CNRestServlet</servlet-name>
342
		<url-pattern>/d1/cn/assertRelation/*</url-pattern>
343
	</servlet-mapping>
344
	<servlet-mapping>
345
		<servlet-name>CNRestServlet</servlet-name>
346
		<url-pattern>/d1/cn/checksum/*</url-pattern>
347
	</servlet-mapping>
348
	<!-- CNAuthorization -->
349
	<servlet-mapping>
350
		<servlet-name>CNRestServlet</servlet-name>
351
		<url-pattern>/d1/cn/owner/*</url-pattern>
352
	</servlet-mapping>
353
	<servlet-mapping>
354
		<servlet-name>CNRestServlet</servlet-name>
355
		<url-pattern>/d1/cn/isAuthorized/*</url-pattern>
356
	</servlet-mapping>
357
	<servlet-mapping>
358
		<servlet-name>CNRestServlet</servlet-name>
359
		<url-pattern>/d1/cn/accessRules/*</url-pattern>
360
	</servlet-mapping>
361
	<!-- CNReplication -->
362
	<servlet-mapping>
363
		<servlet-name>CNRestServlet</servlet-name>
364
		<url-pattern>/d1/cn/notify/*</url-pattern>
365
	</servlet-mapping>
366
	<servlet-mapping>
367
		<servlet-name>CNRestServlet</servlet-name>
368
		<url-pattern>/d1/cn/meta/replication/*</url-pattern>
369
	</servlet-mapping>
370
	<servlet-mapping>
371
		<servlet-name>CNRestServlet</servlet-name>
372
		<url-pattern>/d1/cn/meta/policy/*</url-pattern>
373
	</servlet-mapping>
374
	
375

  
298 376
 <!-- uncomment this if you want the admin servlet -->
299 377
  <servlet-mapping>
300 378
    <servlet-name>AdminServlet</servlet-name>

Also available in: Unified diff