/*
 * #%L
 * %%
 * Copyright (C) 2011 - 2017 BMW Car IT GmbH
 * %%
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * #L%
 */
package joynr;

public abstract class Message {
    public static final String CUSTOM_HEADER_PREFIX = "custom-";
    public static final String HEADER_EFFORT = "effort";
    public static final String HEADER_ID = "id";
    public static final String HEADER_MSG_TYPE = "type";
    public static final String HEADER_REPLY_TO = "replyTo";

    public static final String CUSTOM_HEADER_REQUEST_REPLY_ID = "z4";
    public static final String VALUE_MESSAGE_TYPE_BROADCAST_SUBSCRIPTION_REQUEST = "broadcastSubscriptionRequest";
    public static final String VALUE_MESSAGE_TYPE_MULTICAST = "multicast";
    public static final String VALUE_MESSAGE_TYPE_MULTICAST_SUBSCRIPTION_REQUEST = "multicastSubscriptionRequest";
    public static final String VALUE_MESSAGE_TYPE_ONE_WAY = "oneWay";
    public static final String VALUE_MESSAGE_TYPE_PUBLICATION = "subscriptionPublication";
    public static final String VALUE_MESSAGE_TYPE_REPLY = "reply";
    public static final String VALUE_MESSAGE_TYPE_REQUEST = "request";
    public static final String VALUE_MESSAGE_TYPE_SUBSCRIPTION_REPLY = "subscriptionReply";
    public static final String VALUE_MESSAGE_TYPE_SUBSCRIPTION_REQUEST = "subscriptionRequest";
    public static final String VALUE_MESSAGE_TYPE_SUBSCRIPTION_STOP = "subscriptionStop";

    private transient boolean localMessage;

    public boolean isLocalMessage() {
        return localMessage;
    }

    public void setLocalMessage(boolean message) {
        this.localMessage = message;
    }
}

@@ -1126,34 +1126,9 @@
  %22br
-oadcastSubscriptionRequest
+q
 %22;%0A 
@@ -1185,29 +1185,44 @@
 ULTICAST
- = %22multicast
+_SUBSCRIPTION_REQUEST = %22mrq
 %22;%0A    p
@@ -1279,61 +1279,13 @@
 CAST
-_SUBSCRIPTION_REQUEST = %22multicastSubscriptionRequest
+ = %22m
 %22;%0A 
@@ -1349,13 +1349,8 @@
 = %22o
-neWay
 %22;%0A 
@@ -1417,31 +1417,9 @@
  = %22
-subscriptionPublication
+p
 %22;%0A 
@@ -1477,20 +1477,17 @@
 PLY = %22r
-eply
+p
 %22;%0A    p
@@ -1543,22 +1543,17 @@
 EST = %22r
-equest
+q
 %22;%0A    p
@@ -1624,24 +1624,10 @@
 = %22s
-ubscriptionReply
+rp
 %22;%0A 
@@ -1703,27 +1703,11 @@
  = %22
-subscriptionRequest
+arq
 %22;%0A 
@@ -1781,23 +1781,10 @@
 = %22s
-ubscriptionStop
+st
 %22;%0A%0A

reduce length of message type identifiers