1 25 26 package org.objectweb.easybeans.component.smartclient.message; 27 28 import java.nio.ByteBuffer ; 29 30 34 public abstract class AbsNameMessage extends AbsMessage { 35 36 39 private String name = null; 40 41 42 46 public AbsNameMessage(final String name) { 47 super(); 48 this.name = name; 49 } 50 51 55 public AbsNameMessage(final ByteBuffer dataBuffer) { 56 super(); 57 58 this.name = decode(dataBuffer); 60 61 } 62 63 67 public String getName() { 68 return name; 69 } 70 71 75 @Override 76 public abstract byte getOpCode(); 77 78 82 @Override 83 public ByteBuffer getSubMessage() { 84 ByteBuffer nameBuffer = encode(name); 86 87 return nameBuffer; 88 } 89 90 91 92 } 93 | Popular Tags |