1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.eclipse.jetty.websocket.jsr356.annotations;
20
21 import org.eclipse.jetty.websocket.common.events.annotated.InvalidSignatureException;
22
23 public abstract class JsrParamIdOnMessage extends JsrParamIdBase implements IJsrParamId
24 {
25 protected void assertPartialMessageSupportDisabled(Param param, JsrCallable callable)
26 {
27 if (callable instanceof OnMessageCallable)
28 {
29 OnMessageCallable onmessage = (OnMessageCallable)callable;
30 if (onmessage.isPartialMessageSupported())
31 {
32 StringBuilder err = new StringBuilder();
33 err.append("Unable to support parameter type <");
34 err.append(param.type.getName()).append("> in conjunction with the partial message indicator boolean.");
35 err.append(" Only type <String> is supported with partial message boolean indicator.");
36 throw new InvalidSignatureException(err.toString());
37 }
38 }
39 }
40 }