类 PartGenerator
java.lang.Object
reactor.core.publisher.BaseSubscriber<MultipartParser.Token>
cn.taketoday.http.codec.multipart.PartGenerator
- 所有已实现的接口:
org.reactivestreams.Subscriber<MultipartParser.Token>,org.reactivestreams.Subscription,reactor.core.CoreSubscriber<MultipartParser.Token>,reactor.core.Disposable
Subscribes to a token stream (i.e. the result of
MultipartParser.parse(Flux, byte[], int, Charset), and produces a flux of Part objects.- 从以下版本开始:
- 4.0
- 作者:
- Arjen Poutsma
-
嵌套类概要
嵌套类修饰符和类型类说明private final classThe creator state when waiting for a temporary file to be created.private static final classprivate final classThe creator state when a form field is received.private final classprivate final classThe initial state of the creator.private final classThe creator state whenstreamingisfalse(and not handling a form field).private static classRepresents the internal state of thePartGeneratorfor creating a singlePart.private final classThe creator state whenstreamingistrue(and not handling a form field).private final class从接口继承的嵌套类/接口 reactor.core.Disposable
reactor.core.Disposable.Composite, reactor.core.Disposable.Swap -
字段概要
字段修饰符和类型字段说明private final reactor.core.scheduler.Schedulerprivate final reactor.core.publisher.Mono<Path>private static final cn.taketoday.logging.Loggerprivate final longprivate final intprivate final AtomicBooleanprivate final reactor.core.publisher.MonoSink<Part>private final AtomicReference<PartGenerator.State>private final boolean -
构造器概要
构造器限定符构造器说明privatePartGenerator(reactor.core.publisher.MonoSink<Part> sink, int maxInMemorySize, long maxDiskUsagePerPart, boolean streaming, reactor.core.publisher.Mono<Path> fileStorageDirectory, reactor.core.scheduler.Scheduler blockingOperationScheduler) -
方法概要
修饰符和类型方法说明(专用程序包) booleanchangeState(PartGenerator.State oldState, PartGenerator.State newState) private voidchangeStateInternal(PartGenerator.State newState) static reactor.core.publisher.Mono<Part>createPart(reactor.core.publisher.Flux<MultipartParser.Token> tokens, int maxInMemorySize, long maxDiskUsagePerPart, boolean streaming, reactor.core.publisher.Mono<Path> fileStorageDirectory, reactor.core.scheduler.Scheduler blockingOperationScheduler) Creates parts from a given stream of tokens.reactor.util.context.Contextvoiddispose()(专用程序包) void(专用程序包) voidprotected voidprotected voidhookOnError(Throwable throwable) protected voidhookOnNext(MultipartParser.Token token) protected voidhookOnSubscribe(org.reactivestreams.Subscription subscription) private voidnewPart(PartGenerator.State currentState, HttpHeaders headers) (专用程序包) void从类继承的方法 reactor.core.publisher.BaseSubscriber
cancel, hookFinally, hookOnCancel, isDisposed, onComplete, onError, onNext, onSubscribe, request, requestUnbounded, toString, upstream
-
字段详细资料
-
log
private static final cn.taketoday.logging.Logger log -
sink
-
requestOutstanding
-
state
-
streaming
private final boolean streaming -
maxInMemorySize
private final int maxInMemorySize -
maxDiskUsagePerPart
private final long maxDiskUsagePerPart -
fileStorageDirectory
-
blockingOperationScheduler
private final reactor.core.scheduler.Scheduler blockingOperationScheduler
-
-
构造器详细资料
-
PartGenerator
-
-
方法详细资料
-
createPart
public static reactor.core.publisher.Mono<Part> createPart(reactor.core.publisher.Flux<MultipartParser.Token> tokens, int maxInMemorySize, long maxDiskUsagePerPart, boolean streaming, reactor.core.publisher.Mono<Path> fileStorageDirectory, reactor.core.scheduler.Scheduler blockingOperationScheduler) Creates parts from a given stream of tokens. -
currentContext
public reactor.util.context.Context currentContext() -
hookOnSubscribe
protected void hookOnSubscribe(org.reactivestreams.Subscription subscription) - 覆盖:
hookOnSubscribe在类中reactor.core.publisher.BaseSubscriber<MultipartParser.Token>
-
hookOnNext
- 覆盖:
hookOnNext在类中reactor.core.publisher.BaseSubscriber<MultipartParser.Token>
-
newPart
-
hookOnComplete
protected void hookOnComplete()- 覆盖:
hookOnComplete在类中reactor.core.publisher.BaseSubscriber<MultipartParser.Token>
-
hookOnError
- 覆盖:
hookOnError在类中reactor.core.publisher.BaseSubscriber<MultipartParser.Token>
-
dispose
public void dispose()- 指定者:
dispose在接口中reactor.core.Disposable- 覆盖:
dispose在类中reactor.core.publisher.BaseSubscriber<MultipartParser.Token>
-
changeState
-
changeStateInternal
-
emitPart
-
emitError
-
requestToken
void requestToken()
-