1 7 package org.jboss.test.remoting.marshall.http.metadata; 8 9 import java.io.IOException ; 10 import java.io.InputStream ; 11 import java.util.HashMap ; 12 import java.util.Map ; 13 import org.jboss.remoting.marshal.http.HTTPUnMarshaller; 14 15 18 public class HTTPUnMarshallerMock extends HTTPUnMarshaller 19 { 20 private Map metadata = new HashMap (); 21 22 31 public Object read(InputStream inputStream, Map metadata) throws IOException , ClassNotFoundException 32 { 33 Object ret = super.read(inputStream, metadata); 34 this.metadata.putAll(metadata); 35 return ret; 36 } 37 38 public Map getMetadata() 39 { 40 return metadata; 41 } 42 } | Popular Tags |