All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.king.platform.net.http.netty.eventbus.Event Maven / Gradle / Ivy

There is a newer version: 3.0.26
Show newest version
// Copyright (C) king.com Ltd 2015
// https://github.com/king/king-http-client
// Author: Magnus Gustafsson
// License: Apache 2.0, https://raw.github.com/king/king-http-client/LICENSE-APACHE

package com.king.platform.net.http.netty.eventbus;

import com.king.platform.net.http.HttpResponse;
import com.king.platform.net.http.netty.HttpRequestContext;
import com.king.platform.net.http.netty.ServerInfo;
import com.king.platform.net.http.netty.WebSocketConf;
import io.netty.buffer.ByteBuf;
import io.netty.channel.Channel;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelPipeline;
import io.netty.handler.codec.http.HttpHeaders;
import io.netty.handler.codec.http.HttpResponseStatus;
import io.netty.handler.codec.http.websocketx.WebSocketFrame;

public interface Event {
	Event2 ERROR = new Event2<>("Error");
	Event1 COMPLETED = new Event1<>("Completed");
	Event1 TOUCH = new Event1<>("Touch");
	Event1 CLOSE = new Event1<>("Close");

	Event1 EXECUTE_REQUEST = new Event1<>("ExecuteRequest");
	Event1 WRITE_BODY = new Event1<>("WriteDelayedBody");
	Event2 POPULATE_CONNECTION_SPECIFIC_HEADERS = new Event2<>("PopulateConnectionSpecificHeaders");

	Event1 CREATED_CONNECTION = new Event1<>("CreatedConnection");
	Event1 REUSED_CONNECTION = new Event1<>("ReusedConnection");
	Event1 POOLED_CONNECTION = new Event1<>("PooledConnection");
	Event1 CLOSED_CONNECTION = new Event1<>("CloseConnection");

	Event1 onConnecting = new Event1<>("onConnecting");
	Event1 onAttachedToChannel = new Event1<>("onAttachedToChannel");
	Event1 onConnected = new Event1<>("onConnected");
	Event1 onWroteHeaders = new Event1<>("onWroteHeaders");
	Event1 onWroteContentStarted = new Event1<>("onWroteContentStarted");
	Event2 onWroteContentProgressed = new Event2<>("onWroteContentProgressed");
	Event1 onWroteContentCompleted = new Event1<>("onWroteContentCompleted");
	Event1 onReceivedStatus = new Event1<>("onReceivedStatus");
	Event1 onReceivedHeaders = new Event1<>("onReceivedHeaders");
	Event2 onReceivedContentPart = new Event2<>("onReceivedContentPart");
	Event2 onReceivedCompleted = new Event2<>("onReceivedCompleted");

	Event1 onHttpResponseDone = new Event1<>("onHttpResponseDone");

	Event1 onInternalCompletion = new Event1<>("onInternalCompletion");

	Event2 WS_UPGRADE_PIPELINE = new Event2<>("WS_UPGRADE_PIPELINE");
	Event2 onWsOpen = new Event2<>("onWsOpen");
	Event1 onWsFrame = new Event1<>("onWsFrame");


	String getName();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy