Java Code Examples for org.apache.flink.shaded.netty4.io.netty.handler.codec.http.HttpResponseStatus#OK

The following examples show how to use org.apache.flink.shaded.netty4.io.netty.handler.codec.http.HttpResponseStatus#OK . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ConstantTextHandler.java    From flink with Apache License 2.0 5 votes vote down vote up
@Override
protected void channelRead0(ChannelHandlerContext ctx, RoutedRequest routed) throws Exception {
	HttpResponse response = new DefaultFullHttpResponse(
		HttpVersion.HTTP_1_1, HttpResponseStatus.OK, Unpooled.wrappedBuffer(encodedText));

	response.headers().set(HttpHeaders.Names.CONTENT_LENGTH, encodedText.length);
	response.headers().set(HttpHeaders.Names.CONTENT_TYPE, "text/plain");

	KeepAliveWrite.flush(ctx, routed.getRequest(), response);
}
 
Example 2
Source File: SubtasksTimesHeaders.java    From Flink-CEPplus with Apache License 2.0 4 votes vote down vote up
@Override
public HttpResponseStatus getResponseStatusCode() {
	return HttpResponseStatus.OK;
}
 
Example 3
Source File: AbstractAsynchronousOperationHandlersTest.java    From Flink-CEPplus with Apache License 2.0 4 votes vote down vote up
@Override
public HttpResponseStatus getResponseStatusCode() {
	return HttpResponseStatus.OK;
}
 
Example 4
Source File: SubtaskExecutionAttemptAccumulatorsHeaders.java    From Flink-CEPplus with Apache License 2.0 4 votes vote down vote up
@Override
public HttpResponseStatus getResponseStatusCode() {
	return HttpResponseStatus.OK;
}
 
Example 5
Source File: TaskManagerDetailsHeaders.java    From flink with Apache License 2.0 4 votes vote down vote up
@Override
public HttpResponseStatus getResponseStatusCode() {
	return HttpResponseStatus.OK;
}
 
Example 6
Source File: JarUploadHeaders.java    From flink with Apache License 2.0 4 votes vote down vote up
@Override
public HttpResponseStatus getResponseStatusCode() {
	return HttpResponseStatus.OK;
}
 
Example 7
Source File: MultipartUploadResource.java    From flink with Apache License 2.0 4 votes vote down vote up
@Override
public HttpResponseStatus getResponseStatusCode() {
	return HttpResponseStatus.OK;
}
 
Example 8
Source File: JobAccumulatorsHeaders.java    From flink with Apache License 2.0 4 votes vote down vote up
@Override
public HttpResponseStatus getResponseStatusCode() {
	return HttpResponseStatus.OK;
}
 
Example 9
Source File: CheckpointingStatisticsHeaders.java    From flink with Apache License 2.0 4 votes vote down vote up
@Override
public HttpResponseStatus getResponseStatusCode() {
	return HttpResponseStatus.OK;
}
 
Example 10
Source File: RestServerEndpointITCase.java    From flink with Apache License 2.0 4 votes vote down vote up
@Override
protected CompletableFuture<EmptyResponseBody> handleRequest(@Nonnull HandlerRequest<EmptyRequestBody, EmptyMessageParameters> request, @Nonnull RestfulGateway gateway) throws RestHandlerException {
	throw new RestHandlerException("test failure 1", HttpResponseStatus.OK);
}
 
Example 11
Source File: AbstractAggregatedMetricsHeaders.java    From flink with Apache License 2.0 4 votes vote down vote up
@Override
public HttpResponseStatus getResponseStatusCode() {
	return HttpResponseStatus.OK;
}
 
Example 12
Source File: JobVertexBackPressureHeaders.java    From flink with Apache License 2.0 4 votes vote down vote up
@Override
public HttpResponseStatus getResponseStatusCode() {
	return HttpResponseStatus.OK;
}
 
Example 13
Source File: ClusterConfigurationInfoHeaders.java    From flink with Apache License 2.0 4 votes vote down vote up
@Override
public HttpResponseStatus getResponseStatusCode() {
	return HttpResponseStatus.OK;
}
 
Example 14
Source File: DashboardConfigurationHeaders.java    From flink with Apache License 2.0 4 votes vote down vote up
@Override
public HttpResponseStatus getResponseStatusCode() {
	return HttpResponseStatus.OK;
}
 
Example 15
Source File: JobExceptionsHeaders.java    From flink with Apache License 2.0 4 votes vote down vote up
@Override
public HttpResponseStatus getResponseStatusCode() {
	return HttpResponseStatus.OK;
}
 
Example 16
Source File: JobVertexWatermarksHeaders.java    From flink with Apache License 2.0 4 votes vote down vote up
@Override
public HttpResponseStatus getResponseStatusCode() {
	return HttpResponseStatus.OK;
}
 
Example 17
Source File: SubtaskExecutionAttemptDetailsHeaders.java    From flink with Apache License 2.0 4 votes vote down vote up
@Override
public HttpResponseStatus getResponseStatusCode() {
	return HttpResponseStatus.OK;
}
 
Example 18
Source File: JobIdsWithStatusesOverviewHeaders.java    From flink with Apache License 2.0 4 votes vote down vote up
@Override
public HttpResponseStatus getResponseStatusCode() {
	return HttpResponseStatus.OK;
}
 
Example 19
Source File: CheckpointStatisticDetailsHeaders.java    From flink with Apache License 2.0 4 votes vote down vote up
@Override
public HttpResponseStatus getResponseStatusCode() {
	return HttpResponseStatus.OK;
}
 
Example 20
Source File: RestServerEndpointITCase.java    From flink with Apache License 2.0 4 votes vote down vote up
@Override
public HttpResponseStatus getResponseStatusCode() {
	return HttpResponseStatus.OK;
}