Class PostMethodWebRequest

    • Constructor Detail

      • PostMethodWebRequest

        public PostMethodWebRequest​(java.lang.String urlString)
        Constructs a web request using a specific absolute url string.
      • PostMethodWebRequest

        public PostMethodWebRequest​(java.lang.String urlString,
                                    boolean mimeEncoded)
        Constructs a web request using a specific absolute url string, with optional mime encoding.
      • PostMethodWebRequest

        public PostMethodWebRequest​(java.net.URL urlBase,
                                    java.lang.String urlString,
                                    java.lang.String target)
        Constructs a web request with a specific target.
      • PostMethodWebRequest

        public PostMethodWebRequest​(java.net.URL urlBase,
                                    java.lang.String urlString,
                                    java.lang.String target,
                                    boolean mimeEncoded)
        Constructs a web request with a specific target, with optional mime encoding.
      • PostMethodWebRequest

        public PostMethodWebRequest​(java.lang.String urlString,
                                    java.io.InputStream source,
                                    java.lang.String contentType)
        Constructs a web request using a specific absolute url string and input stream.
        Parameters:
        urlString - the URL to which the request should be issued
        source - an input stream which will provide the body of this request
        contentType - the MIME content type of the body, including any character set
    • Method Detail

      • getMethod

        public java.lang.String getMethod()
        Returns the HTTP method defined for this request.
        Overrides:
        getMethod in class WebRequest
        Returns:
        the method
      • getQueryString

        public java.lang.String getQueryString()
        Returns the query string defined for this request.
        Overrides:
        getQueryString in class WebRequest
      • maySelectFile

        protected boolean maySelectFile​(java.lang.String parameterName)
        Returns true if selectFile may be called with this parameter.
        Overrides:
        maySelectFile in class WebRequest
      • getMessageBody

        protected com.meterware.httpunit.protocol.MessageBody getMessageBody()
        Description copied from class: MessageBodyWebRequest
        Subclasses may override this method to provide a message body for the request.
        Overrides:
        getMessageBody in class MessageBodyWebRequest