Examples of createSession()


Examples of org.apache.chemistry.opencmis.client.runtime.SessionFactoryImpl.createSession()

        parameter.put(SessionParameter.WEBSERVICES_VERSIONING_SERVICE, serviceUrl("VersioningService?wsdl"));

        parameter.put(SessionParameter.REPOSITORY_ID, "cmis_repo:default");

        // create session
        session = factory.createSession(parameter, null, new StandardAuthenticationProvider(), null);
    }

    @Test
    public void shouldAccessRootFolder() throws Exception {
        Folder root = session.getRootFolder();
View Full Code Here

Examples of org.apache.cocoon.sunshine.SunShine.createSession()

        SunShine sunShine = null;
        try {
            sunShine = (SunShine)this.manager.lookup(SunShine.ROLE);
            final String action = par.getParameter("action", "create");
            if ( action.equals("create") == true ) {
                sunShine.createSession();
            } else if ( action.equals("terminate") == true ) {
                final String mode = par.getParameter("mode", "immediately");
                if ( mode.equals("immediately") == true) {
                    sunShine.terminateSession(true);
                } else if ( mode.equals("if-unused") == true ) {
View Full Code Here

Examples of org.apache.cocoon.webapps.session.SessionManager.createSession()

            final String action = par.getParameter("action", "create");
         
            if ( action.equals("create") ) {
               
                // create a session
                sessionManager.createSession();
               
            } else if ( action.equals("terminate") ) {
               
                // terminate a session
                final String mode = par.getParameter("mode", "immediately");
View Full Code Here

Examples of org.apache.cocoon.webapps.session.components.SessionManager.createSession()

        SessionManager sessionManager = null;
        try {
            sessionManager = (SessionManager)this.manager.lookup(SessionManager.ROLE);
            final String action = par.getParameter("action", "create");
            if ( action.equals("create") == true ) {
                sessionManager.createSession();
            } else if ( action.equals("terminate") == true ) {
                final String mode = par.getParameter("mode", "immediately");
                if ( mode.equals("immediately") == true) {
                    sessionManager.terminateSession(true);
                } else if ( mode.equals("if-unused") == true ) {
View Full Code Here

Examples of org.apache.felix.service.command.CommandProcessor.createSession()

    protected String executeCommand(final String command, final Long timeout, final Boolean silent) {
        String response;
        final ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
        final PrintStream printStream = new PrintStream(byteArrayOutputStream);
        final CommandProcessor commandProcessor = getOsgiService(CommandProcessor.class);
        final CommandSession commandSession = commandProcessor.createSession(System.in, printStream, System.err);
        FutureTask<String> commandFuture = new FutureTask<String>(
                new Callable<String>() {
                    public String call() {
                        try {
                            if (!silent) {
View Full Code Here

Examples of org.apache.hadoop.eclipse.server.HadoopServer.createSession()

        hostname });

    HadoopServer server = ServerRegistry.getInstance().getServer(serverid);

    try {
      Session session = server.createSession();
      // session.setTimeout(TIMEOUT);

      log.log(Level.FINER, "Connected");

      /*
 
View Full Code Here

Examples of org.apache.jackrabbit.core.SessionImpl.createSession()

        }

        SessionImpl sImpl = (SessionImpl) superuser;
        Subject subject = sImpl.getSubject();

        Session s1 = sImpl.createSession(currentWsp);
        try {
            assertFalse(s1 == sImpl);
            assertFalse(subject == ((SessionImpl) s1).getSubject());
            assertEquals(subject, ((SessionImpl) s1).getSubject());
            assertEquals(currentWsp, s1.getWorkspace().getName());
View Full Code Here

Examples of org.apache.karaf.shell.security.impl.SecuredCommandProcessorImpl.createSession()

        }
        DelegateSession is = (DelegateSession) session;

        // make it active
        SecuredCommandProcessorImpl secCP = new SecuredCommandProcessorImpl(bundleContext);
        CommandSession s = secCP.createSession(consoleInput, out, err);

        // before the session is activated attributes may have been set on it. Pass these on to the real session now
        is.setDelegate(s);
        return secCP;
    }
View Full Code Here

Examples of org.apache.oozie.jms.ConnectionContext.createSession()

        assertFalse(jmsService.isConnectionInRetryList(connInfo));
        assertFalse(jmsService.isTopicInRetryList(connInfo, topic));
        ConnectionContext connCtxt = jmsService.createConnectionContext(connInfo);
        broker.stop();
        try {
            connCtxt.createSession(Session.AUTO_ACKNOWLEDGE);
            fail("Exception expected");
        }
        catch (Exception e) {
            Thread.sleep(100);
            assertFalse(jmsService.isListeningToTopic(connInfo, topic));
View Full Code Here

Examples of org.apache.qpid.amqp_1_0.client.Connection.createSession()

        _connection = connection;
        _acknowledgeMode = acknowledgeMode;
        Connection clientConn = _connection.getClientConnection();
        try
        {
            _session = clientConn.createSession();
        }
        catch (ConnectionException e)
        {
            JMSException jmsException;
            if (e instanceof ChannelsExhaustedException)
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.