本文整理汇总了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())
);
}
开发者ID:yegor256,项目名称:rehttp,代码行数:21,代码来源:TkRefresh.java
示例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())
);
}
开发者ID:yegor256,项目名称:threecopies,代码行数:22,代码来源:TkApp.java
示例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())
)
);
}
开发者ID:yegor256,项目名称:jare,代码行数:23,代码来源:TkRefresh.java
示例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())
);
}
开发者ID:yegor256,项目名称:wring,代码行数:22,代码来源:TkApp.java
示例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())
);
}
开发者ID:yegor256,项目名称:thindeck,代码行数:28,代码来源:TkApp.java
示例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))
)
);
}
开发者ID:aliceice,项目名称:roster,代码行数:9,代码来源:TkServices.java
示例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")
)
)
)
)
)
);
}
开发者ID:yegor256,项目名称:threecopies,代码行数:46,代码来源:TkApp.java
示例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")
)
)
)
)
)
);
}
开发者ID:yegor256,项目名称:jare,代码行数:46,代码来源:TkAppAuth.java
示例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")
)
)
)
)
)
);
}
开发者ID:yegor256,项目名称:wring,代码行数:46,代码来源:TkAppAuth.java
注:本文中的org.takes.facets.fork.FkFixed类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论