Search in sources :

Example 1 with IndyRawHttpModule

use of org.commonjava.indy.client.core.module.IndyRawHttpModule in project indy by Commonjava.

the class DownloadContentHasLengthHeaderHostedTest method getAdditionalClientModules.

@Override
protected Collection<IndyClientModule> getAdditionalClientModules() {
    List<IndyClientModule> mods = new ArrayList<>();
    Collection<IndyClientModule> fromParent = super.getAdditionalClientModules();
    if (fromParent != null) {
        mods.addAll(fromParent);
    }
    mods.add(new IndyRawHttpModule());
    return mods;
}
Also used : ArrayList(java.util.ArrayList) IndyRawHttpModule(org.commonjava.indy.client.core.module.IndyRawHttpModule) IndyClientModule(org.commonjava.indy.client.core.IndyClientModule)

Example 2 with IndyRawHttpModule

use of org.commonjava.indy.client.core.module.IndyRawHttpModule in project indy by Commonjava.

the class DownloadContentHasLengthHeaderTest method getAdditionalClientModules.

@Override
protected Collection<IndyClientModule> getAdditionalClientModules() {
    List<IndyClientModule> mods = new ArrayList<>();
    Collection<IndyClientModule> fromParent = super.getAdditionalClientModules();
    if (fromParent != null) {
        mods.addAll(fromParent);
    }
    mods.add(new IndyRawHttpModule());
    return mods;
}
Also used : ArrayList(java.util.ArrayList) IndyRawHttpModule(org.commonjava.indy.client.core.module.IndyRawHttpModule) IndyClientModule(org.commonjava.indy.client.core.IndyClientModule)

Aggregations

ArrayList (java.util.ArrayList)2 IndyClientModule (org.commonjava.indy.client.core.IndyClientModule)2 IndyRawHttpModule (org.commonjava.indy.client.core.module.IndyRawHttpModule)2