Skip to content

Commit

Permalink
Added Javadoc.
Browse files Browse the repository at this point in the history
  • Loading branch information
zvoneg committed Sep 11, 2017
1 parent c1a8d6f commit 63b1f97
Show file tree
Hide file tree
Showing 12 changed files with 287 additions and 13 deletions.
23 changes: 23 additions & 0 deletions src/main/java/com/kumuluz/ee/cors/CorsExtension.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
/*
* Copyright (c) 2014-2017 Kumuluz and/or its affiliates
* and other contributors as indicated by the @author tags and
* the contributor list.
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* The software is provided "AS IS", WITHOUT WARRANTY OF ANY KIND, express or
* implied, including but not limited to the warranties of merchantability,
* fitness for a particular purpose and noninfringement. in no event shall the
* authors or copyright holders be liable for any claim, damages or other
* liability, whether in an action of contract, tort or otherwise, arising from,
* out of or in connection with the software or the use or other dealings in the
* software. See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.kumuluz.ee.cors;

import com.kumuluz.ee.common.Extension;
Expand All @@ -21,7 +41,10 @@
import java.util.logging.Logger;

/**
* CorsExtension class.
*
* @author Zvone Gazvoda
* @since 1.0.0
*/
@EeExtensionDef(name = "Cors", group = EeExtensionGroup.CORS)
@EeComponentDependencies({@EeComponentDependency(EeComponentType.SERVLET)})
Expand Down
25 changes: 24 additions & 1 deletion src/main/java/com/kumuluz/ee/cors/annotations/CrossOrigin.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
/*
* Copyright (c) 2014-2017 Kumuluz and/or its affiliates
* and other contributors as indicated by the @author tags and
* the contributor list.
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* The software is provided "AS IS", WITHOUT WARRANTY OF ANY KIND, express or
* implied, including but not limited to the warranties of merchantability,
* fitness for a particular purpose and noninfringement. in no event shall the
* authors or copyright holders be liable for any claim, damages or other
* liability, whether in an action of contract, tort or otherwise, arising from,
* out of or in connection with the software or the use or other dealings in the
* software. See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.kumuluz.ee.cors.annotations;

import java.lang.annotation.ElementType;
Expand All @@ -6,7 +26,10 @@
import java.lang.annotation.Target;

/**
* Created by zvoneg on 26/07/17.
* CrossOrigin annotation definition.
*
* @author Zvone Gazvoda
* @since 1.0.0
*/
@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
Expand Down
25 changes: 24 additions & 1 deletion src/main/java/com/kumuluz/ee/cors/config/CorsConfig.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,30 @@
/*
* Copyright (c) 2014-2017 Kumuluz and/or its affiliates
* and other contributors as indicated by the @author tags and
* the contributor list.
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* The software is provided "AS IS", WITHOUT WARRANTY OF ANY KIND, express or
* implied, including but not limited to the warranties of merchantability,
* fitness for a particular purpose and noninfringement. in no event shall the
* authors or copyright holders be liable for any claim, damages or other
* liability, whether in an action of contract, tort or otherwise, arising from,
* out of or in connection with the software or the use or other dealings in the
* software. See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.kumuluz.ee.cors.config;

/**
* Created by zvoneg on 24/07/17.
* CorsConfig class.
*
* @author Zvone Gazvoda
* @since 1.0.0
*/
public class CorsConfig {

Expand Down
25 changes: 24 additions & 1 deletion src/main/java/com/kumuluz/ee/cors/config/CorsRegistration.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,30 @@
/*
* Copyright (c) 2014-2017 Kumuluz and/or its affiliates
* and other contributors as indicated by the @author tags and
* the contributor list.
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* The software is provided "AS IS", WITHOUT WARRANTY OF ANY KIND, express or
* implied, including but not limited to the warranties of merchantability,
* fitness for a particular purpose and noninfringement. in no event shall the
* authors or copyright holders be liable for any claim, damages or other
* liability, whether in an action of contract, tort or otherwise, arising from,
* out of or in connection with the software or the use or other dealings in the
* software. See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.kumuluz.ee.cors.config;

/**
* Created by zvoneg on 27/07/17.
* CorsRegistration class.
*
* @author Zvone Gazvoda
* @since 1.0.0
*/
public class CorsRegistration {

Expand Down
25 changes: 24 additions & 1 deletion src/main/java/com/kumuluz/ee/cors/filters/DynamicCorsFilter.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
/*
* Copyright (c) 2014-2017 Kumuluz and/or its affiliates
* and other contributors as indicated by the @author tags and
* the contributor list.
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* The software is provided "AS IS", WITHOUT WARRANTY OF ANY KIND, express or
* implied, including but not limited to the warranties of merchantability,
* fitness for a particular purpose and noninfringement. in no event shall the
* authors or copyright holders be liable for any claim, damages or other
* liability, whether in an action of contract, tort or otherwise, arising from,
* out of or in connection with the software or the use or other dealings in the
* software. See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.kumuluz.ee.cors.filters;

import com.kumuluz.ee.cors.config.CorsConfig;
Expand All @@ -17,7 +37,10 @@
import java.util.logging.Logger;

/**
* Created by zvoneg on 27/07/17.
* DynamicCorsFilter class.
*
* @author Zvone Gazvoda
* @since 1.0.0
*/
public class DynamicCorsFilter implements Filter {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
/*
* Copyright (c) 2014-2017 Kumuluz and/or its affiliates
* and other contributors as indicated by the @author tags and
* the contributor list.
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* The software is provided "AS IS", WITHOUT WARRANTY OF ANY KIND, express or
* implied, including but not limited to the warranties of merchantability,
* fitness for a particular purpose and noninfringement. in no event shall the
* authors or copyright holders be liable for any claim, damages or other
* liability, whether in an action of contract, tort or otherwise, arising from,
* out of or in connection with the software or the use or other dealings in the
* software. See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.kumuluz.ee.cors.processor;

import com.kumuluz.ee.cors.annotations.CrossOrigin;
Expand All @@ -21,9 +41,11 @@
import java.util.logging.Logger;

/**
* Created by zvoneg on 27/07/17.
* JaxRsCrossOriginAnnotationProcessor class.
*
* @author Zvone Gazvoda
* @since 1.0.0
*/

public class JaxRsCrossOriginAnnotationProcessor extends AbstractProcessor {

private static final Logger LOG = Logger.getLogger(JaxRsCrossOriginAnnotationProcessor.class.getName());
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
/*
* Copyright (c) 2014-2017 Kumuluz and/or its affiliates
* and other contributors as indicated by the @author tags and
* the contributor list.
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* The software is provided "AS IS", WITHOUT WARRANTY OF ANY KIND, express or
* implied, including but not limited to the warranties of merchantability,
* fitness for a particular purpose and noninfringement. in no event shall the
* authors or copyright holders be liable for any claim, damages or other
* liability, whether in an action of contract, tort or otherwise, arising from,
* out of or in connection with the software or the use or other dealings in the
* software. See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.kumuluz.ee.cors.processor;

import com.kumuluz.ee.cors.annotations.CrossOrigin;
Expand All @@ -19,9 +39,11 @@
import java.util.logging.Logger;

/**
* Created by zvoneg on 27/07/17.
* ServletCrossOriginAnnotationProcessor class.
*
* @author Zvone Gazvoda
* @since 1.0.0
*/

public class ServletCrossOriginAnnotationProcessor extends AbstractProcessor {

private static final Logger LOG = Logger.getLogger(ServletCrossOriginAnnotationProcessor.class.getName());
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
/*
* Copyright (c) 2014-2017 Kumuluz and/or its affiliates
* and other contributors as indicated by the @author tags and
* the contributor list.
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* The software is provided "AS IS", WITHOUT WARRANTY OF ANY KIND, express or
* implied, including but not limited to the warranties of merchantability,
* fitness for a particular purpose and noninfringement. in no event shall the
* authors or copyright holders be liable for any claim, damages or other
* liability, whether in an action of contract, tort or otherwise, arising from,
* out of or in connection with the software or the use or other dealings in the
* software. See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.kumuluz.ee.cors.utils;

import javax.annotation.processing.Filer;
Expand All @@ -7,7 +27,10 @@
import java.util.Set;

/**
* Created by zvoneg on 31/07/17.
* AnnotationProcessorUtil class.
*
* @author Zvone Gazvoda
* @since 1.0.0
*/
public class AnnotationProcessorUtil {

Expand Down
25 changes: 24 additions & 1 deletion src/main/java/com/kumuluz/ee/cors/utils/CorsConfigUtil.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
/*
* Copyright (c) 2014-2017 Kumuluz and/or its affiliates
* and other contributors as indicated by the @author tags and
* the contributor list.
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* The software is provided "AS IS", WITHOUT WARRANTY OF ANY KIND, express or
* implied, including but not limited to the warranties of merchantability,
* fitness for a particular purpose and noninfringement. in no event shall the
* authors or copyright holders be liable for any claim, damages or other
* liability, whether in an action of contract, tort or otherwise, arising from,
* out of or in connection with the software or the use or other dealings in the
* software. See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.kumuluz.ee.cors.utils;

import com.kumuluz.ee.configuration.utils.ConfigurationUtil;
Expand All @@ -8,7 +28,10 @@
import java.util.Optional;

/**
* Created by zvoneg on 31/07/17.
* CorsConfigUtil class.
*
* @author Zvone Gazvoda
* @since 1.0.0
*/
public class CorsConfigUtil {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,34 @@
/*
* Copyright (c) 2014-2017 Kumuluz and/or its affiliates
* and other contributors as indicated by the @author tags and
* the contributor list.
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* The software is provided "AS IS", WITHOUT WARRANTY OF ANY KIND, express or
* implied, including but not limited to the warranties of merchantability,
* fitness for a particular purpose and noninfringement. in no event shall the
* authors or copyright holders be liable for any claim, damages or other
* liability, whether in an action of contract, tort or otherwise, arising from,
* out of or in connection with the software or the use or other dealings in the
* software. See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.kumuluz.ee.cors.utils;

import com.kumuluz.ee.cors.config.CorsRegistration;

import java.util.List;

/**
* Created by zvoneg on 31/07/17.
* CrossOriginAnnotationProcessorUtil interface.
*
* @author Zvone Gazvoda
* @since 1.0.0
*/
public interface CrossOriginAnnotationProcessorUtil {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
/*
* Copyright (c) 2014-2017 Kumuluz and/or its affiliates
* and other contributors as indicated by the @author tags and
* the contributor list.
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* The software is provided "AS IS", WITHOUT WARRANTY OF ANY KIND, express or
* implied, including but not limited to the warranties of merchantability,
* fitness for a particular purpose and noninfringement. in no event shall the
* authors or copyright holders be liable for any claim, damages or other
* liability, whether in an action of contract, tort or otherwise, arising from,
* out of or in connection with the software or the use or other dealings in the
* software. See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.kumuluz.ee.cors.utils;

import com.kumuluz.ee.cors.annotations.CrossOrigin;
Expand All @@ -18,7 +38,10 @@
import java.util.logging.Logger;

/**
* Created by zvoneg on 27/07/17.
* JaxRsCrossOriginAnnotationProcessorUtil class.
*
* @author Zvone Gazvoda
* @since 1.0.0
*/
public class JaxRsCrossOriginAnnotationProcessorUtil implements CrossOriginAnnotationProcessorUtil {

Expand Down
Loading

0 comments on commit 63b1f97

Please sign in to comment.