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

ru.sendto.rest.server.api.WSBundle Maven / Gradle / Ivy

The newest version!
package ru.sendto.rest.server.api;

import javax.websocket.CloseReason;
import javax.websocket.HandshakeResponse;
import javax.websocket.Session;
import javax.websocket.server.HandshakeRequest;
import javax.websocket.server.ServerEndpointConfig;

import lombok.Data;

public class WSBundle {

	@Data
	static class HandshakeBundle {
		ServerEndpointConfig	config;
		HandshakeRequest		handshakeRequest;
		HandshakeResponse		handshakeResponse;
	}

	@Data
	static class OnOpen {
		Session					session;
		ServerEndpointConfig	config;
	}

	@Data
	static class OnMessage {
		Session session;
	}

	@Data
	static class OnClose {
		Session		session;
		CloseReason	closeReason;
	}

	@Data
	static class OnError {
		Session		session;
		Throwable	throwable;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy