Package com.google.apphosting.runtime
Class MutableUpResponse
java.lang.Object
com.google.apphosting.runtime.MutableUpResponse
A mutable object that exports an interface similar to
RuntimePb.UPResponse.Builder but that is
thread-safe.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAppLog(com.google.apphosting.base.protos.AppLogsPb.AppLogLine.Builder line) voidaddHttpOutputHeaders(com.google.apphosting.base.protos.HttpPb.ParsedHttpHeader.Builder header) voidaddHttpResponseHeader(com.google.apphosting.base.protos.HttpPb.ParsedHttpHeader.Builder header) com.google.apphosting.base.protos.RuntimePb.UPResponsebuild()voidcom.google.apphosting.base.protos.AppLogsPb.AppLogLinegetAppLog(int i) booleanintgetError()List<com.google.apphosting.base.protos.HttpPb.ParsedHttpHeader>com.google.apphosting.base.protos.HttpPb.HttpResponsecom.google.protobuf.ByteStringcom.google.apphosting.base.protos.RuntimePb.PendingCloudDebuggerActioncom.google.apphosting.base.protos.RuntimePb.UPResponse.RuntimeLogLinegetRuntimeLogLine(int i) intcom.google.protobuf.ByteStringbooleanbooleanbooleanbooleanbooleanbooleanvoidsetCloneIsInUncleanState(boolean unclean) voidsetError(int error) voidsetErrorMessage(String message) voidsetHttpResponseCode(int code) voidsetHttpResponseCodeAndResponse(int code, String string) voidsetHttpResponseResponse(com.google.protobuf.ByteString string) voidvoidvoidsetTerminateClone(boolean terminate) voidsetUserMcycles(long cycles)
-
Constructor Details
-
MutableUpResponse
public MutableUpResponse()
-
-
Method Details
-
build
public com.google.apphosting.base.protos.RuntimePb.UPResponse build() -
getError
public int getError() -
setError
public void setError(int error) -
setErrorMessage
-
hasSerializedTrace
public boolean hasSerializedTrace() -
getSerializedTrace
public com.google.protobuf.ByteString getSerializedTrace() -
getAppLog
public com.google.apphosting.base.protos.AppLogsPb.AppLogLine getAppLog(int i) -
addAppLog
public void addAppLog(com.google.apphosting.base.protos.AppLogsPb.AppLogLine.Builder line) -
setPendingCloudDebuggerActionBreakpointUpdates
public void setPendingCloudDebuggerActionBreakpointUpdates(boolean x) -
setPendingCloudDebuggerActionDebuggeeRegistration
public void setPendingCloudDebuggerActionDebuggeeRegistration(boolean x) -
hasPendingCloudDebuggerAction
public boolean hasPendingCloudDebuggerAction() -
getPendingCloudDebuggerAction
public com.google.apphosting.base.protos.RuntimePb.PendingCloudDebuggerAction getPendingCloudDebuggerAction() -
setUserMcycles
public void setUserMcycles(long cycles) -
getRuntimeLogLineCount
public int getRuntimeLogLineCount() -
getRuntimeLogLine
public com.google.apphosting.base.protos.RuntimePb.UPResponse.RuntimeLogLine getRuntimeLogLine(int i) -
getTerminateClone
public boolean getTerminateClone() -
setTerminateClone
public void setTerminateClone(boolean terminate) -
hasCloneIsInUncleanState
public boolean hasCloneIsInUncleanState() -
getCloneIsInUncleanState
public boolean getCloneIsInUncleanState() -
setCloneIsInUncleanState
public void setCloneIsInUncleanState(boolean unclean) -
clearHttpResponse
public void clearHttpResponse() -
hasHttpResponse
public boolean hasHttpResponse() -
getHttpResponse
public com.google.apphosting.base.protos.HttpPb.HttpResponse getHttpResponse() -
hasHttpResponseResponse
public boolean hasHttpResponseResponse() -
getHttpResponseResponse
public com.google.protobuf.ByteString getHttpResponseResponse() -
setHttpResponseResponse
public void setHttpResponseResponse(com.google.protobuf.ByteString string) -
setHttpResponseCodeAndResponse
-
setHttpResponseCode
public void setHttpResponseCode(int code) -
addHttpResponseHeader
public void addHttpResponseHeader(com.google.apphosting.base.protos.HttpPb.ParsedHttpHeader.Builder header) -
getHttpOutputHeadersList
-
addHttpOutputHeaders
public void addHttpOutputHeaders(com.google.apphosting.base.protos.HttpPb.ParsedHttpHeader.Builder header)
-