本文整理匯總了Java中org.springframework.restdocs.operation.OperationRequestPart類的典型用法代碼示例。如果您正苦於以下問題:Java OperationRequestPart類的具體用法?Java OperationRequestPart怎麽用?Java OperationRequestPart使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
OperationRequestPart類屬於org.springframework.restdocs.operation包,在下文中一共展示了OperationRequestPart類的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: buildRequest
import org.springframework.restdocs.operation.OperationRequestPart; //導入依賴的package包/類
private OperationRequest buildRequest() {
List<OperationRequestPart> parts = new ArrayList<>();
for (OperationRequestPartBuilder builder : this.partBuilders) {
parts.add(builder.buildPart());
}
return new OperationRequestFactory().create(this.requestUri, this.method,
this.content, this.headers, this.parameters, parts);
}
示例2: buildPart
import org.springframework.restdocs.operation.OperationRequestPart; //導入依賴的package包/類
private OperationRequestPart buildPart() {
return new OperationRequestPartFactory().create(this.name,
this.submittedFileName, this.content, this.headers);
}
示例3: getParts
import org.springframework.restdocs.operation.OperationRequestPart; //導入依賴的package包/類
@Override
public Collection<OperationRequestPart> getParts() {
return delegate.getParts();
}