Skip to content

Commit dc6f12c

Browse files
committed
fix #171: fix compilation problems
1 parent 9208f87 commit dc6f12c

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

lib/src/main/java/ua/naiksoftware/stomp/dto/StompHeader.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ public class StompHeader {
88
public static final String VERSION = "accept-version";
99
public static final String HEART_BEAT = "heart-beat";
1010
public static final String DESTINATION = "destination";
11+
public static final String SUBSCRIPTION = "subscription";
1112
public static final String CONTENT_TYPE = "content-type";
1213
public static final String MESSAGE_ID = "message-id";
1314
public static final String ID = "id";

lib/src/main/java/ua/naiksoftware/stomp/pathmatcher/SubscriptionPathMatcher.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
11
package ua.naiksoftware.stomp.pathmatcher;
22

3+
import ua.naiksoftware.stomp.StompClient;
34
import ua.naiksoftware.stomp.dto.StompHeader;
5+
import ua.naiksoftware.stomp.dto.StompHeader.*;
46
import ua.naiksoftware.stomp.dto.StompMessage;
57

68
public class SubscriptionPathMatcher implements PathMatcher {
79

10+
private final StompClient stompClient;
11+
12+
public SubscriptionPathMatcher(StompClient stompClient) {
13+
this.stompClient = stompClient;
14+
}
15+
816
@Override
917
public boolean matches(String path, StompMessage msg) {
1018
// Compare subscription

0 commit comments

Comments
 (0)