mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-27 13:53:18 +01:00
Support for ephemeral provisioning communication channels.
// FREEBIE
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
package org.whispersystems.textsecuregcm.mappers;
|
||||
|
||||
import org.whispersystems.textsecuregcm.websocket.InvalidWebsocketAddressException;
|
||||
|
||||
import javax.ws.rs.core.Response;
|
||||
import javax.ws.rs.ext.ExceptionMapper;
|
||||
import javax.ws.rs.ext.Provider;
|
||||
|
||||
@Provider
|
||||
public class InvalidWebsocketAddressExceptionMapper implements ExceptionMapper<InvalidWebsocketAddressException> {
|
||||
@Override
|
||||
public Response toResponse(InvalidWebsocketAddressException exception) {
|
||||
return Response.status(Response.Status.BAD_REQUEST).build();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user