Examples of addInitParameter()


Examples of org.picketlink.test.identity.federation.web.mock.MockFilterConfig.addInitParameter()

        // Let us feed the LogOutRequest to the SPFilter
        MockContextClassLoader mclSPEmp = setupTCL(profile + "/sp/employee");
        Thread.currentThread().setContextClassLoader(mclSPEmp);
        SPFilter spEmpl = new SPFilter();
        MockFilterConfig filterConfig = new MockFilterConfig(servletContext);
        filterConfig.addInitParameter(GeneralConstants.IGNORE_SIGNATURES, "true");

        spEmpl.init(filterConfig);

        MockHttpSession filterSession = new MockHttpSession();
        MockHttpServletRequest filterRequest = new MockHttpServletRequest(filterSession, "POST");
View Full Code Here

Examples of org.picketlink.test.identity.federation.web.mock.MockServletConfig.addInitParameter()

        servletContext.setAttribute("IDENTITY_SERVER", server);
        MockServletConfig servletConfig = new MockServletConfig(servletContext);

        IDPServlet idp = new IDPServlet();
        // No signing outgoing messages
        servletConfig.addInitParameter(GeneralConstants.SIGN_OUTGOING_MESSAGES, "false");

        // Initialize the servlet
        idp.init(servletConfig);

        // Assume that we already have the principal and roles set in the session
View Full Code Here

Examples of org.rioproject.opstring.ServiceBeanConfig.addInitParameter()

        String jmxName = (String)config.getEntry(configComponent, "jmxName", String.class, null);
        if(jmxName!=null)
            configParms.put(ServiceBeanConfig.JMX_NAME, jmxName);

        ServiceBeanConfig sbConfig = new ServiceBeanConfig(configParms, configArgs);
        sbConfig.addInitParameter(BOOT_CONFIG_COMPONENT, configComponent);

        ClassLoader cl = Thread.currentThread().getContextClassLoader();
        if(cl instanceof ServiceClassLoader) {
            Properties p = new Properties();
            p.setProperty("opStringName", sbConfig.getOperationalStringName());
View Full Code Here

Examples of org.salamandra.web.core.transformer.Transformer.addInitParameter()

         
          // Ottengo le proprety del Transformer
          List<ISetProperty> lstProp = trans.getSetProperties();
          for (Iterator<ISetProperty> iterator = lstProp.iterator(); iterator.hasNext();) {
            ISetProperty prop = (ISetProperty) iterator.next();
            transformer.addInitParameter( prop.getProperty(), prop.getValue() )
          }
         
          // ottengo la struttura del nodo
          Structure structure = trans.getStructure();
          XmlBindingFactory bindFactory = null;
View Full Code Here

Examples of org.springframework.boot.context.embedded.FilterRegistrationBean.addInitParameter()

  @Bean
  public FilterRegistrationBean corsFilterRegistrationBean() {
    FilterRegistrationBean frb = new FilterRegistrationBean(new CORSFilter());
    frb.addUrlPatterns(Api1.PATH + "*");
    frb.addInitParameter("cors.allowed.methods", "GET,POST,PUT,DELETE,HEAD,OPTIONS");
    frb.addInitParameter("cors.exposed.headers", "Cache-Control,Content-Length,Content-Type,Date,ETag,Expires");
    frb.addInitParameter("cors.allowed.headers", "Origin,Accept,X-Requested-With,Content-Type,"
        + "Access-Control-Request-Method,Access-Control-Request-Headers,X-Amz-Credential,"
        + "X-Amz-Date,Authorization");
    frb.setAsyncSupported(true);
View Full Code Here

Examples of org.springframework.boot.context.embedded.ServletRegistrationBean.addInitParameter()

    }

    @Bean
    public ServletRegistrationBean jerseyServlet() {
        ServletRegistrationBean registration = new ServletRegistrationBean(new ServletContainer(), "/*");
        registration.addInitParameter(ServletProperties.JAXRS_APPLICATION_CLASS, JaxRsApplication.class.getName());
        return registration;
    }

    public static class JaxRsApplication extends javax.ws.rs.core.Application {

View Full Code Here

Examples of org.springframework.mock.web.MockFilterConfig.addInitParameter()

    setupFilter();
  }

  protected void setupFilter() throws ServletException {
    MockFilterConfig config = new MockFilterConfig();
    config.addInitParameter(ProcessEngineAuthenticationFilter.AUTHENTICATION_PROVIDER_PARAM, HttpBasicAuthenticationProvider.class.getName());
    authenticationFilter = new ProcessEngineAuthenticationFilter();
    authenticationFilter.init(config);
  }

  protected void applyFilter(MockHttpServletRequest request, MockHttpServletResponse response, String username, String password) throws IOException, ServletException {
View Full Code Here

Examples of org.springframework.mock.web.MockFilterConfig.addInitParameter()

  private AuthorizationServerFilter filter;

  @Before
  public void before() throws ServletException {
    MockFilterConfig filterConfig = new MockFilterConfig();
    filterConfig.addInitParameter("resource-server-key", "org.surfnet.oaaas.conext.mock-server-name");
    filterConfig.addInitParameter("resource-server-secret", UUID.randomUUID().toString());
    filterConfig.addInitParameter("authorization-server-url", "http://localhost:8088/org.surfnet.oaaas.conext.mock/endpoint");
    filterConfig.addInitParameter("type-information-is-included", "true");
    //enable caching as we want to test this
    filter = new AuthorizationServerFilter(){
View Full Code Here

Examples of org.springframework.mock.web.MockFilterConfig.addInitParameter()

  @Before
  public void before() throws ServletException {
    MockFilterConfig filterConfig = new MockFilterConfig();
    filterConfig.addInitParameter("resource-server-key", "org.surfnet.oaaas.conext.mock-server-name");
    filterConfig.addInitParameter("resource-server-secret", UUID.randomUUID().toString());
    filterConfig.addInitParameter("authorization-server-url", "http://localhost:8088/org.surfnet.oaaas.conext.mock/endpoint");
    filterConfig.addInitParameter("type-information-is-included", "true");
    //enable caching as we want to test this
    filter = new AuthorizationServerFilter(){
      @Override
View Full Code Here

Examples of org.springframework.mock.web.MockFilterConfig.addInitParameter()

  @Before
  public void before() throws ServletException {
    MockFilterConfig filterConfig = new MockFilterConfig();
    filterConfig.addInitParameter("resource-server-key", "org.surfnet.oaaas.conext.mock-server-name");
    filterConfig.addInitParameter("resource-server-secret", UUID.randomUUID().toString());
    filterConfig.addInitParameter("authorization-server-url", "http://localhost:8088/org.surfnet.oaaas.conext.mock/endpoint");
    filterConfig.addInitParameter("type-information-is-included", "true");
    //enable caching as we want to test this
    filter = new AuthorizationServerFilter(){
      @Override
      protected boolean cacheAccessTokens() {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.