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

de.schlichtherle.truezip.fs.http.HttpDriverService Maven / Gradle / Ivy

/*
 * Copyright (C) 2005-2015 Schlichtherle IT Services.
 * All rights reserved. Use is subject to license terms.
 */
package de.schlichtherle.truezip.fs.http;

import de.schlichtherle.truezip.fs.FsDriver;
import de.schlichtherle.truezip.fs.FsScheme;
import de.schlichtherle.truezip.fs.spi.FsDriverService;
import de.schlichtherle.truezip.socket.sl.IOPoolLocator;
import java.util.Map;
import javax.annotation.concurrent.Immutable;

/**
 * An immutable container of a map with a driver for accessing the {@code http}
 * and {@code https} schemes.
 * The map provided by this service consists of the following entries:
 * 

URI Schemes File System Driver Class
{@code http}, {@code https} {@link de.schlichtherle.truezip.fs.http.HttpDriver}
* * @author Christian Schlichtherle */ @Immutable public final class HttpDriverService extends FsDriverService { private static final Map DRIVERS = newMap(new Object[][] { { "http|https", new HttpDriver(IOPoolLocator.SINGLETON) }, }); @Override @SuppressWarnings("ReturnOfCollectionOrArrayField") public Map get() { return DRIVERS; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy