1 25 26 package org.objectweb.easybeans.component.smartclient.message; 27 28 import java.nio.ByteBuffer ; 29 30 import org.objectweb.easybeans.component.smartclient.api.ProtocolConstants; 31 32 36 public class ClassAnswer extends AbsNameBytesMessage { 37 38 43 public ClassAnswer(final String name, final byte[] bytes) { 44 super(name, bytes); 45 } 46 47 51 public ClassAnswer(final ByteBuffer buffer) { 52 super(buffer); 53 } 54 55 59 @Override 60 public byte getOpCode() { 61 return ProtocolConstants.CLASS_ANSWER; 62 } 63 64 68 public String getClassName() { 69 return getName(); 70 } 71 72 76 public byte[] getByteCode() { 77 return getBytes(); 78 } 79 } 80 | Popular Tags |