source: java/main/src/main/java/com/framsticks/communication/queries/RegisterRequest.java @ 193

Last change on this file since 193 was 193, checked in by Maciej Komosinski, 10 years ago

Set svn:eol-style native for all textual files

  • Property svn:eol-style set to native
File size: 711 bytes
Line 
1package com.framsticks.communication.queries;
2
3import com.framsticks.structure.Path;
4import com.framsticks.util.lang.Pair;
5
6/**
7 * @author Piotr Sniegowski
8 */
9public class RegisterRequest extends ApplicationRequest {
10
11        protected String actualPath;
12        protected String eventName;
13
14        public RegisterRequest register() {
15                return this;
16        }
17
18        public String getCommand() {
19                return "reg";
20        }
21
22        @Override
23        public RegisterRequest path(String path) {
24                super.path(path);
25                Pair<String, String> p = Path.removeLastElement(path);
26                actualPath = p.first;
27                eventName = p.second;
28                return this;
29        }
30
31        @Override
32        public String getActualPath() {
33                return actualPath;
34        }
35
36        public String getEventName() {
37                return eventName;
38        }
39
40}
Note: See TracBrowser for help on using the repository browser.