
com.ithit.webdav.integration.servlet.websocket.DavWebSocketNotificationEncoder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jakarta-integration Show documentation
Show all versions of jakarta-integration Show documentation
IT Hit WebDAV integration for new Jakarta Java servlet containers
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