Package com.google.apphosting.runtime
Class RequestRunner
java.lang.Object
com.google.apphosting.runtime.RequestRunner
- All Implemented Interfaces:
Runnable
Runs an inbound request within the context of the given app, whether ordinary inbound HTTP or
background request.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionRequestRunner(UPRequestHandler upRequestHandler, RequestManager requestManager, BackgroundRequestCoordinator coordinator, boolean compressResponse, AppVersion appVersion, AnyRpcServerContext rpc, com.google.apphosting.base.protos.RuntimePb.UPRequest upRequest, MutableUpResponse upResponse) -
Method Summary
Modifier and TypeMethodDescriptionstatic RequestRunner.Builderbuilder()Get a partly-initialized builder.voidrun()static voidsetFailure(MutableUpResponse response, com.google.apphosting.base.protos.RuntimePb.UPResponse.ERROR error, String message) Create a failure response from the given code and message.static boolean
-
Constructor Details
-
RequestRunner
public RequestRunner(UPRequestHandler upRequestHandler, RequestManager requestManager, BackgroundRequestCoordinator coordinator, boolean compressResponse, AppVersion appVersion, AnyRpcServerContext rpc, com.google.apphosting.base.protos.RuntimePb.UPRequest upRequest, MutableUpResponse upResponse)
-
-
Method Details
-
builder
Get a partly-initialized builder. -
setFailure
public static void setFailure(MutableUpResponse response, com.google.apphosting.base.protos.RuntimePb.UPResponse.ERROR error, String message) Create a failure response from the given code and message. -
shouldKillCloneAfterException
-
run
public void run()
-