本文整理汇总了Java中org.takes.facets.fork.FkFixed类的典型用法代码示例。如果您正苦于以下问题:Java FkFixed类的具体用法?Java FkFixed怎么用?Java FkFixed使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
FkFixed类属于org.takes.facets.fork包,在下文中一共展示了FkFixed类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: TkRefresh
import org.takes.facets.fork.FkFixed; //导入依赖的package包/类
/**
* Ctor.
* @param path Path
* @throws IOException If fails
*/
public TkRefresh(final File path) throws IOException {
this.take = new TkFork(
new FkHitRefresh(
path,
() -> new VerboseProcess(
new ProcessBuilder(
"mvn",
"generate-resources"
)
).stdout(),
new TkFiles("./target/classes")
),
new FkFixed(new TkClasspath())
);
}
示例2: refresh
import org.takes.facets.fork.FkFixed; //导入依赖的package包/类
/**
* Ctor.
* @param path Path of files
* @return Take
* @throws IOException If fails
*/
private static Take refresh(final String path) throws IOException {
return new TkFork(
new FkHitRefresh(
new File(path),
() -> new VerboseProcess(
new ProcessBuilder(
"mvn",
"generate-resources"
)
).stdout(),
new TkFiles("./target/classes")
),
new FkFixed(new TkClasspath())
);
}
示例3: TkRefresh
import org.takes.facets.fork.FkFixed; //导入依赖的package包/类
/**
* Ctor.
* @param path Path of files
* @throws IOException If fails
*/
TkRefresh(final String path) throws IOException {
super(
new TkFork(
new FkHitRefresh(
new File(path),
() -> new VerboseProcess(
new ProcessBuilder(
"mvn",
"generate-resources"
)
).stdout(),
new TkFiles("./target/classes")
),
new FkFixed(new TkClasspath())
)
);
}
示例4: refresh
import org.takes.facets.fork.FkFixed; //导入依赖的package包/类
/**
* Hit refresh fork.
* @param path Path of files
* @return Fork
* @throws IOException If fails
*/
private static Take refresh(final String path) throws IOException {
return new TkFork(
new FkHitRefresh(
new File(path),
() -> new VerboseProcess(
new ProcessBuilder(
"mvn",
"generate-resources"
)
).stdout(),
new TkFiles("./target/classes")
),
new FkFixed(new TkClasspath())
);
}
示例5: refresh
import org.takes.facets.fork.FkFixed; //导入依赖的package包/类
/**
* Hit refresh fork.
* @param path Path of files
* @return Fork
* @throws IOException If fails
*/
@SuppressWarnings("PMD.DoNotUseThreads")
private static Take refresh(final String path) throws IOException {
return new TkFork(
new FkHitRefresh(
new File(path),
new Runnable() {
@Override
public void run() {
new VerboseProcess(
new ProcessBuilder(
"mvn",
"generate-resources"
)
).stdout();
}
},
new TkFiles("./target/classes")
),
new FkFixed(new TkClasspath())
);
}
示例6: TkServices
import org.takes.facets.fork.FkFixed; //导入依赖的package包/类
public TkServices(final Services services) {
super(
new TkFork(
new FkRegex("/service/(?<name>.*)/(?<environment>.*)", new TkServiceRequest(services)),
new FkFixed(new TkAllServices(services))
)
);
}
示例7: auth
import org.takes.facets.fork.FkFixed; //导入依赖的package包/类
/**
* Auth.
* @param take Takes
* @return Authenticated takes
*/
private static Take auth(final Take take) {
return new TkAuth(
new TkFork(
new FkParams(
PsByFlag.class.getSimpleName(),
Pattern.compile(".+"),
new TkRedirect()
),
new FkFixed(take)
),
new PsChain(
new PsFake(
Manifests.read("ThreeCopies-DynamoKey").startsWith("AAAA")
),
new PsByFlag(
new PsByFlag.Pair(
PsGithub.class.getSimpleName(),
new PsGithub(
Manifests.read("ThreeCopies-GithubId"),
Manifests.read("ThreeCopies-GithubSecret")
)
),
new PsByFlag.Pair(
PsLogout.class.getSimpleName(),
new PsLogout()
)
),
new PsCookie(
new CcSafe(
new CcHex(
new CcXor(
new CcSalted(new CcCompact()),
Manifests.read("ThreeCopies-SecurityKey")
)
)
)
)
)
);
}
示例8: make
import org.takes.facets.fork.FkFixed; //导入依赖的package包/类
/**
* Authenticated.
* @param take Takes
* @return Authenticated takes
*/
private static Take make(final Take take) {
return new TkAuth(
new TkFork(
new FkParams(
PsByFlag.class.getSimpleName(),
Pattern.compile(".+"),
new TkRedirect()
),
new FkFixed(take)
),
new PsChain(
new PsFake(
Manifests.read("Jare-DynamoKey").startsWith("AAAA")
),
new PsByFlag(
new PsByFlag.Pair(
PsGithub.class.getSimpleName(),
new PsGithub(
Manifests.read("Jare-GithubId"),
Manifests.read("Jare-GithubSecret")
)
),
new PsByFlag.Pair(
PsLogout.class.getSimpleName(),
new PsLogout()
)
),
new PsCookie(
new CcSafe(
new CcHex(
new CcXor(
new CcSalted(new CcCompact()),
Manifests.read("Jare-SecurityKey")
)
)
)
)
)
);
}
示例9: make
import org.takes.facets.fork.FkFixed; //导入依赖的package包/类
/**
* Authenticated.
* @param take Takes
* @return Authenticated takes
*/
private static Take make(final Take take) {
return new TkAuth(
new TkFork(
new FkParams(
PsByFlag.class.getSimpleName(),
Pattern.compile(".+"),
new TkRedirect()
),
new FkFixed(take)
),
new PsChain(
new PsFake(
Manifests.read("Wring-DynamoKey").startsWith("AAAA")
),
new PsByFlag(
new PsByFlag.Pair(
PsGithub.class.getSimpleName(),
new PsGithub(
Manifests.read("Wring-GithubId"),
Manifests.read("Wring-GithubSecret")
)
),
new PsByFlag.Pair(
PsLogout.class.getSimpleName(),
new PsLogout()
)
),
new PsCookie(
new CcSafe(
new CcHex(
new CcXor(
new CcSalted(new CcCompact()),
Manifests.read("Wring-SecurityKey")
)
)
)
)
)
);
}