Examples of Volantis


Examples of com.volantis.mcs.runtime.Volantis

        if (instances == null || instances.trim().length() == 0) {
            instances = "";
        } else {
            instances += ",";
        }
        final Volantis volantis = ApplicationInternals.getVolantisBean(
            requestContext.getMarinerApplication());
        if (instances.indexOf(volantis.getMCSInstanceIdentifier()) < 0) {
            instances += volantis.getMCSInstanceIdentifier();
            pipelineContext.setProperty(
                URLConfigurationFactory.VISITED_MCS_INSTANCES_HEADER_NAME,
                instances, false);
        }
    }
View Full Code Here

Examples of com.volantis.mcs.runtime.Volantis

    /**
     * todo XDIME-CP
     * @throws Exception
     */
    public void notestInitialisePreferredLocationFor() throws Exception {
        Volantis volantis = getVolantis();

        TestMarinerPageContext context = new TestMarinerPageContext();
        context.pushRequestContext(new TestMarinerRequestContext());
        context.setVolantis(volantis);
        protocol.setMarinerPageContext(context);
View Full Code Here

Examples of com.volantis.mcs.runtime.Volantis

     * @param accesskeyValue the device policy's value
     * @param expected the expected support setting
     */
    protected void doAccesskeySupportTest(String accesskeyValue,
                                        boolean expected) {
        Volantis volantis = getVolantis();
        TestMarinerPageContext context = new TestMarinerPageContext();
        context.pushRequestContext(new TestMarinerRequestContext());
        context.setVolantis(volantis);
        protocol.setMarinerPageContext(context);
        context.setProtocol(protocol);
View Full Code Here

Examples of com.volantis.mcs.runtime.Volantis

     */
    private boolean containsCurrentInstanceIdentifier(
            final String identifierList) {
        boolean found = false;
        if (identifierList != null && identifierList.trim().length() > 0) {
            final Volantis volantis =
                ApplicationInternals.getVolantisBean(application);
            final String mcsInstanceIdentifier =
                volantis.getMCSInstanceIdentifier();
            final StringTokenizer tokenizer =
                new StringTokenizer(identifierList, ", \t");
            while (tokenizer.hasMoreTokens() && !found) {
                final String identifier = tokenizer.nextToken();
                if (identifier.equals(mcsInstanceIdentifier)) {
View Full Code Here

Examples of com.volantis.mcs.runtime.Volantis

     * repository
     */
    private void addDescendantDevices() throws RepositoryException {
        RepositoryConnection connection = null;
        try {
            Volantis volantis =
                    ApplicationInternals.getVolantisBean(application);
            connection = volantis.getDeviceConnection();

            // Create a copy of the list to iterate over. This must be done
            // because child devices are added to the original list during
            // iteration.
            List excCopy = new ArrayList(excludedDevices);
View Full Code Here

Examples of com.volantis.mcs.runtime.Volantis

            throws RepositoryException {

        RepositoryEnumeration immediateChildren = null;

        try {
            Volantis volantis =
                    ApplicationInternals.getVolantisBean(application);
            immediateChildren =
                    volantis.getDeviceRepositoryAccessor().
                    enumerateDevicesChildren(conn, deviceName);

            // If there are no children, then an empty list is returned.
            final List allChildren =
                    immediateChildren.hasNext() ? new ArrayList() :
View Full Code Here

Examples of com.volantis.mcs.runtime.Volantis

            if (password != null && portString != null) {
                int port = Integer.parseInt(portString);
                MarinerServletApplication msa =
                        MarinerServletApplication.getInstance(
                                this.getServletContext());
                Volantis volantis = ApplicationInternals.getVolantisBean(msa);
                marinerAgent = new MarinerAgent(password, host, port, volantis);
                marinerAgent.start();
            }
        }
    }
View Full Code Here

Examples of com.volantis.mcs.runtime.Volantis

        super.init(servletConfig);

        MarinerServletApplication application = MarinerServletApplication.
                getInstance(servletConfig.getServletContext());

        Volantis volantis = ApplicationInternals.getVolantisBean(application);

        // Get the servlet configuration from the mcs-config.xml file. This
        // is an optional configuration. If not present no special handling of
        // XDIME responses can be performed.
        ServletFilterConfiguration config =
                volantis.getServletFilterConfiguration();

        if (config != null) {
            xdimeRequestProcessor = new SimpleXDIMERequestProcessor(
                    servletConfig.getServletContext(), config.getMimeTypes());
        }
View Full Code Here

Examples of com.volantis.mcs.runtime.Volantis

    }

    public void testInitialiseDiallingLinkWithPrefix() throws Exception {
        final String prefix = "prefix:";

        Volantis volantis = getVolantis();
        TestMarinerPageContext context = new TestMarinerPageContext();
        context.pushRequestContext(new TestMarinerRequestContext());

        context.setVolantis(volantis);
        protocol.setMarinerPageContext(context);
View Full Code Here

Examples of com.volantis.mcs.runtime.Volantis

     * cutting and pasting.
     *
     * @return An instance of Volantis
     */
    protected Volantis getVolantis() {
        Volantis volantis = new Volantis();
        ProtocolsConfiguration config = new ProtocolsConfiguration();
        config.setWmlPreferredOutputFormat("wmlc");
        volantis.setProtocolsConfiguration(config);

        try {
            PrivateAccessor.setField(volantis, "pageURLRewriter",
                new RuntimePageURLRewriter(null, null));
        } catch (Exception e) {
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.