Home » geronimo-2.2-source-release » org.apache.geronimo.axis » [javadoc | source]

    1   package org.apache.geronimo.axis;
    2   import java.io.IOException;
    3   import java.io.InputStream;
    4   import java.net.URI;
    5   import java.util.Map;
    6   import java.util.HashMap;
    7   
    8   import org.apache.geronimo.webservices.WebServiceContainer;
    9   
   10   public class AxisRequest implements WebServiceContainer.Request {
   11       private int contentLength;
   12       private String contentType;
   13       private InputStream in;
   14       private int method;
   15       private Map parameters;
   16       private URI uri;
   17       private Map headers;
   18       private Map attributes;
   19   
   20       /**
   21        * 
   22        */
   23       public AxisRequest(
   24           int contentLength,
   25           String contentType,
   26           InputStream in,
   27           int method,
   28           Map parameters,
   29           URI uri,
   30           Map headers) {
   31           this.contentType = contentType;
   32           this.in = in;
   33           this.method = method;
   34           this.parameters = parameters;
   35           this.uri = uri;
   36           this.headers = headers;
   37           this.attributes = new HashMap();
   38       }
   39   
   40       public int getContentLength() {
   41           return contentLength;
   42       }
   43   
   44       public String getContentType() {
   45           return contentType;
   46       }
   47   
   48       public String getHeader(String name) {
   49           return (String) headers.get(name);
   50       }
   51   
   52       public InputStream getInputStream() throws IOException {
   53           return in;
   54       }
   55   
   56       public int getMethod() {
   57           return method;
   58       }
   59   
   60       public String getParameter(String name) {
   61           return (String) parameters.get(name);
   62       }
   63   
   64       public Map getParameters() {
   65           return parameters;
   66       }
   67   
   68       public URI getURI() {
   69           return uri;
   70       }
   71   
   72       public Object getAttribute(String name) {
   73           return attributes.get(name);
   74       }
   75   
   76       public void setAttribute(String name, Object value){
   77           attributes.put(name, value);
   78       }
   79   }

Home » geronimo-2.2-source-release » org.apache.geronimo.axis » [javadoc | source]