1 17 package org.apache.geronimo.axis; 18 import java.io.IOException ; 19 import java.io.InputStream ; 20 import java.net.URI ; 21 import java.util.Map ; 22 import java.util.HashMap ; 23 24 import org.apache.geronimo.webservices.WebServiceContainer; 25 26 public class AxisRequest implements WebServiceContainer.Request { 27 private int contentLength; 28 private String contentType; 29 private InputStream in; 30 private int method; 31 private Map parameters; 32 private URI uri; 33 private Map headers; 34 private Map attributes; 35 36 39 public AxisRequest( 40 int contentLength, 41 String contentType, 42 InputStream in, 43 int method, 44 Map parameters, 45 URI uri, 46 Map headers) { 47 this.contentType = contentType; 48 this.in = in; 49 this.method = method; 50 this.parameters = parameters; 51 this.uri = uri; 52 this.headers = headers; 53 this.attributes = new HashMap (); 54 } 55 56 public int getContentLength() { 57 return contentLength; 58 } 59 60 public String getContentType() { 61 return contentType; 62 } 63 64 public String getHeader(String name) { 65 return (String ) headers.get(name); 66 } 67 68 public InputStream getInputStream() throws IOException { 69 return in; 70 } 71 72 public int getMethod() { 73 return method; 74 } 75 76 public String getParameter(String name) { 77 return (String ) parameters.get(name); 78 } 79 80 public Map getParameters() { 81 return parameters; 82 } 83 84 public URI getURI() { 85 return uri; 86 } 87 88 public Object getAttribute(String name) { 89 return attributes.get(name); 90 } 91 92 public void setAttribute(String name, Object value){ 93 attributes.put(name, value); 94 } 95 } 96 | Popular Tags |