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