
com.ithit.webdav.integration.servlet.websocket.DavWebSocketNotificationEncoder Maven / Gradle / Ivy
package com.ithit.webdav.integration.servlet.websocket;
import jakarta.websocket.EncodeException;
import jakarta.websocket.Encoder;
import jakarta.websocket.EndpointConfig;
/**
* Encodes notification object to the JSON
*/
public class DavWebSocketNotificationEncoder implements Encoder.Text {
@Override
public void init(EndpointConfig config) {
}
@Override
public void destroy() {
}
@Override
public String encode(DavWebSocketNotification notification) throws EncodeException {
return notification.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy