All Downloads are FREE. Search and download functionalities are using the official Maven repository.

javax.portlet.annotations.PortletLifecycleFilter Maven / Gradle / Ivy

Go to download

The Java Portlet API version 3.0 developed by the Java Community Process JSR-362 Expert Group.

The newest version!
/*  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.
 */

/*
 * This source code implements specifications defined by the Java
 * Community Process. In order to remain compliant with the specification
 * DO NOT add / change / or delete method signatures!
 */

package javax.portlet.annotations;


import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.*;
import static java.lang.annotation.RetentionPolicy.*;


/**
 * 
* Designates a portlet request filter class. * The request filter performs filtering tasks on either the request to a portlet, * on the response from a portlet, or on both. *

* Request filters perform filtering in the doFilter method. * Every Filter has access to a FilterConfig object from which it can obtain its * initialization parameters and a reference to the PortletContext object. * It can to load resources needed for filtering tasks through the PortletContext object. *

* Request filters can be applied to the Action phase, the Event phase, the Render phase * or the Resource phase depending on which of the filter interfaces the request filter class * implements. *

* The annotated type must implement one or more of the following interfaces: *

    *
  • javax.portlet.filter.PortletFilter
  • *
  • javax.portlet.filter.ActionFilter
  • *
  • javax.portlet.filter.EventFilter
  • *
  • javax.portlet.filter.RenderFilter
  • *
  • javax.portlet.filter.ResourceFilter
  • *
*
* * @see javax.portlet.filter.PortletFilter * @see javax.portlet.filter.ActionFilter * @see javax.portlet.filter.EventFilter * @see javax.portlet.filter.RenderFilter * @see javax.portlet.filter.ResourceFilter * * @since 3.0 */ @Retention(RUNTIME) @Target({TYPE}) public @interface PortletLifecycleFilter { /** * The filter name. *

* The filter name is not required. If a filter name is provided, the filter configuration * may be addressed through the filter name in the portlet deployment descriptor to modify * the filter or filter mapping. *

* * * @return The filter name */ String filterName() default ""; /** *

* The portlet names for which the request filter applies. *

* The annotated request filter can apply to multiple portlets within the portlet * application. The names of the portlets to which the request filter applies must be * specified in this field. *

* A wildcard character '*' can be specified in the first portletName array element * to indicate that the request filter is to apply to all portlets in the portlet application. * If specified, the wildcard character must appear alone in the first array element. *

* * @return The portlet names */ String[] portletNames() default "*"; /** *
* The filter initialization parameters. *
* * @return An array of initialization parameters */ InitParameter[] initParams() default {}; /** *
* The display-name type contains a language-specific short name that is intended to be displayed by tools. *
* * @return The display name */ LocaleString[] displayName() default {}; /** *
* The portlet filter description * providing locale-specific text describing the portlet filter for use by the portal application or by tools. *
* * @return The portlet description */ LocaleString[] description() default {}; /** *
* The ordinal number for this annotated method. *

* The ordinal number determines the order of execution if multiple methods * are annotated for a given request type. * Annotated methods with a lower ordinal number are executed before methods with * a higher ordinal number. *

* * @return The ordinal number */ int ordinal() default 0; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy