Author: rwesten
Date: Mon Oct 3 09:21:15 2011
New Revision: 1178355
URL: http://svn.apache.org/viewvc?rev=1178355&view=rev
Log:
STANBOL-105: Added Support for CORS Allow-Origin and preflight requests.
The Origin globally allowed by Stanbol are configured with the JesreyEndpoint
component. If '*' is configured, than all origins are allowed and
"Access-Control-Allow-Origin: * " will be returned in CORS enabled responses.
Otherwise the Origin is checked with equals to the configured list.
JerseyResources need to explicitly support CORS. To do that the static helper
methods of the new CorsHelper utility class should be used.
other changes:
* added metatype.properties for the JeryeyEndpoint component
* removed an unused import to scala.actors.threadpool.Arrays
* added Concepts and Others to the OR arguments checking if the Extracted
Entities header should be added in the ContentItem Freemaker template
Added:
incubator/stanbol/trunk/commons/web/base/src/main/resources/OSGI-INF/metatype/metatype.properties
(with props)
Added:
incubator/stanbol/trunk/commons/web/base/src/main/resources/OSGI-INF/metatype/metatype.properties
URL:
http://svn.apache.org/viewvc/incubator/stanbol/trunk/commons/web/base/src/main/resources/OSGI-INF/metatype/metatype.properties?rev=1178355&view=auto
==============================================================================
---
incubator/stanbol/trunk/commons/web/base/src/main/resources/OSGI-INF/metatype/metatype.properties
(added)
+++
incubator/stanbol/trunk/commons/web/base/src/main/resources/OSGI-INF/metatype/metatype.properties
Mon Oct 3 09:21:15 2011
@@ -0,0 +1,31 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+#===============================================================================
+#Properties and Options used to configure
+#===============================================================================
+
+org.apache.stanbol.commons.web.base.JerseyEndpoint.name=Apache Stanbol Web
Application
+org.apache.stanbol.commons.web.base.JerseyEndpoint.description=The main Apache
Stanbol Web Endpoint where all the different modules (Enhancer, Entityhub, ...)
register itself.
+
+
+org.apache.stanbol.commons.web.alias.name=Alias
+org.apache.stanbol.commons.web.alias.description=The Alias for the Stanbol Web
Application
+
+org.apache.stanbol.commons.web.static.url.name=Static
+org.apache.stanbol.commons.web.static.url.description=The path to the static
resources
+
+org.apache.stanbol.commons.web.cors.origin.name=CORS origins
+org.apache.stanbol.commons.web.cors.origin.description=The CORS origins: This
list defines the hosts content returned by Stanbol supports
multi-site-scripting. Add '*' to allow any domain. Note: As soon as '*' is
added all the other restrictions are ignored.
\ No newline at end of file
Propchange:
incubator/stanbol/trunk/commons/web/base/src/main/resources/OSGI-INF/metatype/metatype.properties
------------------------------------------------------------------------------
svn:mime-type = text/plain