web.xml 8.5 KB
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/j2ee/dtds/web-app_2.3.dtd">
<web-app>
	<!-- CORE SERVLETS -->
	<servlet>
		<servlet-name>ConnectionServlet</servlet-name>
		<servlet-class>pt.keep.metarepository.core.web.servlets.ConnectionServlet</servlet-class>
		<load-on-startup>1</load-on-startup>
	</servlet>

	<!-- WEBUI SERVLETS -->
	<!-- ADMIN SERVLETS -->
	<servlet>
		<servlet-name>AddRepositoryInitialStep</servlet-name>
		<servlet-class>pt.keep.metarepository.modules.webui.servlets.admin.AddRepositoryInitialStepServlet</servlet-class>
		<load-on-startup>2</load-on-startup>
	</servlet>
	<servlet>
		<servlet-name>AddRepositoryFinalStep</servlet-name>
		<servlet-class>pt.keep.metarepository.modules.webui.servlets.admin.AddRepositoryFinalStepServlet</servlet-class>
		<load-on-startup>3</load-on-startup>
	</servlet>
	<servlet>
		<servlet-name>SaveRepository</servlet-name>
		<servlet-class>pt.keep.metarepository.modules.webui.servlets.admin.SaveRepositoryServlet</servlet-class>
		<load-on-startup>4</load-on-startup>
	</servlet>
	<servlet>
		<servlet-name>ChangeOAIUrl</servlet-name>
		<servlet-class>pt.keep.metarepository.modules.webui.servlets.admin.ChangeRepositoryURLServlet</servlet-class>
		<load-on-startup>5</load-on-startup>
	</servlet>
	<servlet>
		<servlet-name>DeleteRepository</servlet-name>
		<servlet-class>pt.keep.metarepository.modules.webui.servlets.admin.DeleteRepositoryServlet</servlet-class>
		<load-on-startup>6</load-on-startup>
	</servlet>
	<!-- WEBUI SERVLETS -->
	<servlet>
		<servlet-name>SearchServlet</servlet-name>
		<servlet-class>pt.keep.metarepository.modules.webui.servlets.SearchServlet</servlet-class>
		<load-on-startup>7</load-on-startup>
	</servlet>
	<!-- RSS SERVLETS -->
	<servlet>
		<servlet-name>RssServlet</servlet-name>
		<servlet-class>pt.keep.metarepository.modules.rss.servlets.RssServlet</servlet-class>
		<load-on-startup>8</load-on-startup>
	</servlet>
	<!-- SRU SERVLETS -->
	<servlet>
		<servlet-name>SruServlet</servlet-name>
		<servlet-class>pt.keep.metarepository.modules.sru.servlets.SruServlet</servlet-class>
		<load-on-startup>9</load-on-startup>
	</servlet>
	<servlet>
		<servlet-name>OAIPMH</servlet-name>
		<servlet-class>pt.keep.metarepository.core.dataprovider.servlets.MetarepositoryOAIServlet</servlet-class>
		<load-on-startup>10</load-on-startup>
	</servlet>
	<servlet>
		<servlet-name>Charts</servlet-name>
		<servlet-class>org.openflashchart.metarepositorycharts.ShowChartServlet</servlet-class>
		<load-on-startup>11</load-on-startup>
	</servlet>
	<servlet>
		<servlet-name>BibliographicInfoExport</servlet-name>
		<servlet-class>pt.keep.metarepository.modules.bibliographicinfo.export.servlets.BibliographicInfoDownloadServlet</servlet-class>
		<load-on-startup>12</load-on-startup>
	</servlet>
	<servlet>
		<servlet-name>SearchByAuthorAliasServlet</servlet-name>
		<servlet-class>pt.keep.metarepository.modules.webui.servlets.SearchByAuthorAliasServlet</servlet-class>
		<load-on-startup>13</load-on-startup>
	</servlet>
	<servlet>
		<servlet-name>SendToDeGois</servlet-name>
		<servlet-class>pt.keep.metarepository.modules.webui.servlets.SendToDeGois</servlet-class>
		<load-on-startup>14</load-on-startup>
	</servlet>
	<servlet>
		<servlet-name>DocumentHandleServlet</servlet-name>
		<servlet-class>pt.keep.metarepository.modules.webui.servlets.DocumentHandleServlet</servlet-class>
		<load-on-startup>15</load-on-startup>
	</servlet>
	<servlet>
		<servlet-name>SolrServlet</servlet-name>
		<servlet-class>pt.keep.metarepository.core.solr.servlets.SolrServlet</servlet-class>
		<load-on-startup>16</load-on-startup>
	</servlet>
	<servlet>
		<servlet-name>ValidatorServlet</servlet-name>
		<servlet-class>pt.keep.metarepository.core.validator.servlets.ValidatorServlet</servlet-class>
		<load-on-startup>17</load-on-startup>
	</servlet>
	<servlet>
		<servlet-name>validator2</servlet-name>
		<servlet-class>org.glassfish.jersey.servlet.ServletContainer</servlet-class>
		<init-param>
			<param-name>jersey.config.server.provider.packages</param-name>
			<param-value>pt.keep.metarepository.core.validator2.resources</param-value>
		</init-param>
		<init-param>
			<param-name>jersey.config.server.provider.classnames</param-name>
			<param-value>org.glassfish.jersey.server.mvc.jsp.JspMvcFeature</param-value>
		</init-param>
		<init-param>
			<param-name>jersey.config.server.mvc.templateBasePath.jsp</param-name>
			<param-value>/validator2resources</param-value>
		</init-param>
		<!-- <init-param>
			<param-name>javax.ws.rs.Application</param-name>
			<param-value>pt.keep.metarepository.core.validator2.application.ValidatorApplication</param-value>
		</init-param>-->
		<load-on-startup>18</load-on-startup>
	</servlet>
	<servlet>
		<servlet-name>ServeReportsServlet</servlet-name>
		<servlet-class>pt.keep.metarepository.core.validator.servlets.ServeReportsServlet</servlet-class>
	</servlet>
	<servlet>
		<servlet-name>ValidationRequestRegistrationServlet</servlet-name>
		<servlet-class>pt.keep.metarepository.core.validator.registration.servlets.ValidationRequestRegistrationServlet</servlet-class>
	</servlet>
	<servlet>
		<servlet-name>AdminInitialPage</servlet-name>
		<jsp-file>/admin/administration/index.jsp</jsp-file>
	</servlet>

	<!-- Mappings -->

	<servlet-mapping>
		<servlet-name>validator2</servlet-name>
		<url-pattern>/validator2/*</url-pattern>
	</servlet-mapping>
	<servlet-mapping>
		<servlet-name>ValidationRequestRegistrationServlet</servlet-name>
		<url-pattern>/validator/validation-registration/*</url-pattern>
	</servlet-mapping>
	<servlet-mapping>
		<servlet-name>ServeReportsServlet</servlet-name>
		<url-pattern>/03-reports/*</url-pattern>
	</servlet-mapping>
	<servlet-mapping>
		<servlet-name>ValidatorServlet</servlet-name>
		<url-pattern>/admin/validate</url-pattern>
	</servlet-mapping>
	<servlet-mapping>
		<servlet-name>SendToDeGois</servlet-name>
		<url-pattern>/sendDocumentToDeGois</url-pattern>
	</servlet-mapping>
	<servlet-mapping>
		<servlet-name>DocumentHandleServlet</servlet-name>
		<url-pattern>/item-handle/*</url-pattern>
	</servlet-mapping>
	<servlet-mapping>
		<servlet-name>SearchByAuthorAliasServlet</servlet-name>
		<url-pattern>/recordsBy</url-pattern>
	</servlet-mapping>
	<servlet-mapping>
		<servlet-name>BibliographicInfoExport</servlet-name>
		<url-pattern>/exportBiblioInfo</url-pattern>
	</servlet-mapping>
	<servlet-mapping>
		<servlet-name>AdminInitialPage</servlet-name>
		<url-pattern>/admin/</url-pattern>
	</servlet-mapping>
	<servlet-mapping>
		<servlet-name>Charts</servlet-name>
		<url-pattern>/admin/documents/charts</url-pattern>
	</servlet-mapping>
	<servlet-mapping>
		<servlet-name>OAIPMH</servlet-name>
		<url-pattern>/oai</url-pattern>
	</servlet-mapping>
	<servlet-mapping>
		<servlet-name>AddRepositoryInitialStep</servlet-name>
		<url-pattern>/admin/repositories/add</url-pattern>
	</servlet-mapping>
	<servlet-mapping>
		<servlet-name>SaveRepository</servlet-name>
		<url-pattern>/admin/repositories/save</url-pattern>
	</servlet-mapping>
	<servlet-mapping>
		<servlet-name>AddRepositoryFinalStep</servlet-name>
		<url-pattern>/admin/repositories/final_add</url-pattern>
	</servlet-mapping>
	<servlet-mapping>
		<servlet-name>ChangeOAIUrl</servlet-name>
		<url-pattern>/admin/repositories/change</url-pattern>
	</servlet-mapping>
	<servlet-mapping>
		<servlet-name>SearchServlet</servlet-name>
		<url-pattern>/search</url-pattern>
	</servlet-mapping>
	<servlet-mapping>
		<servlet-name>RssServlet</servlet-name>
		<url-pattern>/rss.xml</url-pattern>
	</servlet-mapping>
	<servlet-mapping>
		<servlet-name>SruServlet</servlet-name>
		<url-pattern>/sru</url-pattern>
	</servlet-mapping>
	<servlet-mapping>
		<servlet-name>DeleteRepository</servlet-name>
		<url-pattern>/admin/repositories/delete</url-pattern>
	</servlet-mapping>

	<!-- Default login configuration uses BASIC authentication -->
	<security-constraint>
		<web-resource-collection>
			<web-resource-name>Admin Pages</web-resource-name>
			<url-pattern>/admin/*</url-pattern>
		</web-resource-collection>
		<auth-constraint>
			<description>Role for manage metarepository</description>
			<role-name>metarepository</role-name>
		</auth-constraint>
	</security-constraint>
	<security-role>
		<description>Role for manage metarepository</description>
		<role-name>metarepository</role-name>
	</security-role>
	<login-config>
		<auth-method>BASIC</auth-method>
		<realm-name>Metarepository Admin Area</realm-name>
	</login-config>
	<error-page>
		<exception-type>java.lang.Throwable</exception-type>
		<location>/error.jsp</location>
	</error-page>
</web-app>