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

org.directwebremoting.annotations.Auth Maven / Gradle / Ivy

Go to download

DWR is easy Ajax for Java. It makes it simple to call Java code directly from Javascript. It gets rid of almost all the boilerplate code between the web browser and your Java code. This version 4.0.2 works with Jakarta Servlet 4.0.2.

The newest version!
package org.directwebremoting.annotations;

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

/**
 * Restrict remote access to a method to users authorized under a certain J2EE role.
 * @author Maik Schreiber [blizzy AT blizzy DOT de]
 * @author Joe Walker [joe at getahead dot ltd dot uk]
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface Auth
{
    /**
     * Name of the J2EE role to restrict access to.
     * @return ...
     */
    String[] role();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy