Examples of associate()


Examples of org.jboss.weld.context.http.HttpConversationContext.associate()

            /*
             * We may have previously been associated with a ConversationContext, but the reference to that context may have been lost during a Servlet forward
             * WELD-877
             */
            conversationContext.dissociate(request);
            conversationContext.associate(request);
            activate(conversationContext, request);
        }
    }

    private void activate(HttpConversationContext conversationContext, HttpServletRequest request) {
View Full Code Here

Examples of org.jboss.weld.context.http.HttpRequestContext.associate()

    ctx.associate(getHttpServletRequest(message));
  }

  public static void associateRequestContext(Message message) {
    HttpRequestContext ctx = getRequestContext(message);
    ctx.associate(getHttpServletRequest(message));
  }

  public static void disassociateSessionContext(Message message) {
    getSessionContext(message).dissociate(getHttpServletRequest(message));
  }
View Full Code Here

Examples of org.jboss.weld.context.http.HttpSessionContext.associate()

    return context;
  }

  public static void associateSessionContext(Message message) {
    HttpSessionContext ctx = getSessionContext(message);
    ctx.associate(getHttpServletRequest(message));
  }

  public static void associateRequestContext(Message message) {
    HttpRequestContext ctx = getRequestContext(message);
    ctx.associate(getHttpServletRequest(message));
View Full Code Here

Examples of org.jboss.weld.context.http.HttpSessionDestructionContext.associate()

    @Override
    public void sessionDestroyed(HttpSessionEvent event) {
        if (!getSessionContext().isActive()) {
            HttpSessionDestructionContext context = getHttpSessionDestructionContext();
            context.associate(event.getSession());
            context.activate();
        }
    }

    private HttpSessionContext getSessionContext() {
View Full Code Here

Examples of org.openid4java.consumer.ConsumerManager.associate()

        ConsumerManager mgr = mock(ConsumerManager.class);
        AuthRequest authReq = mock(AuthRequest.class);
        DiscoveryInformation di = mock(DiscoveryInformation.class);

        when(mgr.authenticate(any(DiscoveryInformation.class), anyString(), anyString())).thenReturn(authReq);
        when(mgr.associate(anyList())).thenReturn(di);

        OpenID4JavaConsumer consumer = new OpenID4JavaConsumer(mgr, attributes);

        MockHttpServletRequest request = new MockHttpServletRequest();
        consumer.beginConsumption(request, "", "", "");
View Full Code Here

Examples of org.openid4java.consumer.ConsumerManager.associate()

            // StringRepresentation("Could not connect to Identity Server in time.",MediaType.TEXT_HTML);
            // }

            // attempt to associate with the OpenID provider
            // and retrieve one service endpoint for authentication
            DiscoveryInformation discovered = manager.associate(discoveries);

            // store the discovery information in the user's session
            // getContext().getAttributes().put("openid-disc", discovered);
            String sessionId = String.valueOf(System
                    .identityHashCode(discovered));
View Full Code Here

Examples of org.openid4java.consumer.ConsumerManager.associate()

                target = di.getOPEndpoint().toString();
            }
        }

        ConsumerManager manager = getManager(target);
        DiscoveryInformation discovered = manager.associate(discoveries);

        // store the discovery information in the user's session
        // getContext().getAttributes().put("openid-disc", discovered);
        String sessionId = String.valueOf(System.identityHashCode(discovered));
        session.put(sessionId, discovered);
View Full Code Here

Examples of org.picketlink.test.identity.federation.bindings.mock.MockCatalinaContextClassLoader.associate()

        ClassLoader tccl = Thread.currentThread().getContextClassLoader();
        URL configURL = tccl.getResource("config/test-idp-metadata-file-config.xml");
        URL[] urls = new URL[] { configURL };
        MockCatalinaContextClassLoader tcl = new MockCatalinaContextClassLoader(urls);
        tcl.associate("/WEB-INF/picketlink-idfed.xml", configURL.openStream());
        tcl.associate("/WEB-INF/picketlink-handlers.xml",
                tccl.getResourceAsStream("saml2/post/sp/employee/WEB-INF/picketlink-handlers.xml"));
        tcl.associate("/WEB-INF/testshib.org.idp-metadata.xml",
                tccl.getResourceAsStream("metadata/testshib.org.idp-metadata.xml"));
        tcl.setProfile("DUMMY");
View Full Code Here

Examples of org.wso2.carbon.registry.core.Aspect.associate()

            if ((resource.getAspects() == null) || (!resource.getAspects().contains(aspectName))) {
                Aspect aspect = getAspect(aspectName);
                if (aspect == null) {
                    throw new RegistryException("Couldn't find aspectName '" + aspectName + "'");
                }
                aspect.associate(resource, this);
                resource.addAspect(aspectName);
                put(resource.getPath(), resource);
                registryContext.getLogWriter().addLog(
                        resource.getPath(), CurrentSession.getUser(), LogEntry.ASSOCIATE_ASPECT,
                        aspectName);
View Full Code Here

Examples of seph.lang.persistent.IPersistentMap.associate()

            return receiver;
        } else {
            IPersistentMap args = PersistentArrayMap.EMPTY;
            try {
                for(int i = 0; i < keywordNames.length; i++) {
                    args = args.associate(keywordNames[i], (SephObject)keywordArguments[i].invokeExact(thread, scope, true, true));
                }
            } catch(Throwable e) {
                e.printStackTrace();
                return null;
            }
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.