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

net.sourceforge.htmlunit.corejs.javascript.commonjs.module.provider.UrlConnectionSecurityDomainProvider Maven / Gradle / Ivy

Go to download

Vaadin is a web application framework for Rich Internet Applications (RIA). Vaadin enables easy development and maintenance of fast and secure rich web applications with a stunning look and feel and a wide browser support. It features a server-side architecture with the majority of the logic running on the server. Ajax technology is used at the browser-side to ensure a rich and interactive user experience.

There is a newer version: 1.2.0
Show newest version
package net.sourceforge.htmlunit.corejs.javascript.commonjs.module.provider;

import java.net.URLConnection;

import net.sourceforge.htmlunit.corejs.javascript.Context;

/**
 * Interface for URL connection based security domain providers. Used by 
 * {@link UrlModuleSourceProvider} to create Rhino security domain objects for 
 * newly loaded scripts (see {@link Context#compileReader(java.io.Reader, 
 * String, int, Object)}) based on the properties obtainable through their URL 
 * connection.
 * @author Attila Szegedi
 * @version $Id: UrlConnectionSecurityDomainProvider.java 6395 2011-05-05 17:00:20Z mguillem $
 */
public interface UrlConnectionSecurityDomainProvider
{
    /**
     * Create a new security domain object for a script source identified by 
     * its URL connection.
     * @param urlConnection the URL connection of the script source
     * @return the security domain object for the script source. Can be null if
     * no security domain object can be created, although it is advisable for 
     * the implementations to be able to create a security domain object for 
     * any URL connection.
     */
    public Object getSecurityDomain(URLConnection urlConnection);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy