Save This Page
Home » cactus-1.8.0-src » org.apache.cactus.mock » [javadoc | source]
org.apache.cactus.mock
public class: MockHttpURLConnection [javadoc | source]
java.lang.Object
   java.net.URLConnection
      java.net.HttpURLConnection
         org.apache.cactus.mock.MockHttpURLConnection
Mock implementation of HttpURLConnection.
Fields inherited from java.net.HttpURLConnection:
HTTP_OK,  HTTP_CREATED,  HTTP_ACCEPTED,  HTTP_NOT_AUTHORITATIVE,  HTTP_NO_CONTENT,  HTTP_RESET,  HTTP_PARTIAL,  HTTP_MULT_CHOICE,  HTTP_MOVED_PERM,  HTTP_MOVED_TEMP,  HTTP_SEE_OTHER,  HTTP_NOT_MODIFIED,  HTTP_USE_PROXY,  HTTP_BAD_REQUEST,  HTTP_UNAUTHORIZED,  HTTP_PAYMENT_REQUIRED,  HTTP_FORBIDDEN,  HTTP_NOT_FOUND,  HTTP_BAD_METHOD,  HTTP_NOT_ACCEPTABLE,  HTTP_PROXY_AUTH,  HTTP_CLIENT_TIMEOUT,  HTTP_CONFLICT,  HTTP_GONE,  HTTP_LENGTH_REQUIRED,  HTTP_PRECON_FAILED,  HTTP_ENTITY_TOO_LARGE,  HTTP_REQ_TOO_LONG,  HTTP_UNSUPPORTED_TYPE,  HTTP_SERVER_ERROR,  HTTP_INTERNAL_ERROR,  HTTP_NOT_IMPLEMENTED,  HTTP_BAD_GATEWAY,  HTTP_UNAVAILABLE,  HTTP_GATEWAY_TIMEOUT,  HTTP_VERSION
Constructor:
 public MockHttpURLConnection(URL theURL) 
    Parameters:
    theURL - the underlying URL
Method from org.apache.cactus.mock.MockHttpURLConnection Summary:
connect,   disconnect,   getHeaderField,   getInputStream,   setExpectedGetHeaderField,   setExpectedGetInputStream,   usingProxy
Methods from java.net.HttpURLConnection:
disconnect,   getErrorStream,   getFollowRedirects,   getHeaderField,   getHeaderFieldDate,   getHeaderFieldKey,   getInstanceFollowRedirects,   getPermission,   getRequestMethod,   getResponseCode,   getResponseMessage,   setChunkedStreamingMode,   setFixedLengthStreamingMode,   setFollowRedirects,   setInstanceFollowRedirects,   setRequestMethod,   usingProxy
Methods from java.net.URLConnection:
addRequestProperty,   connect,   getAllowUserInteraction,   getConnectTimeout,   getContent,   getContent,   getContentEncoding,   getContentLength,   getContentType,   getDate,   getDefaultAllowUserInteraction,   getDefaultRequestProperty,   getDefaultUseCaches,   getDoInput,   getDoOutput,   getExpiration,   getFileNameMap,   getHeaderField,   getHeaderField,   getHeaderFieldDate,   getHeaderFieldInt,   getHeaderFieldKey,   getHeaderFields,   getIfModifiedSince,   getInputStream,   getLastModified,   getOutputStream,   getPermission,   getReadTimeout,   getRequestProperties,   getRequestProperty,   getURL,   getUseCaches,   guessContentTypeFromName,   guessContentTypeFromStream,   setAllowUserInteraction,   setConnectTimeout,   setContentHandlerFactory,   setDefaultAllowUserInteraction,   setDefaultRequestProperty,   setDefaultUseCaches,   setDoInput,   setDoOutput,   setFileNameMap,   setIfModifiedSince,   setReadTimeout,   setRequestProperty,   setUseCaches,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.cactus.mock.MockHttpURLConnection Detail:
 public  void connect() 
 public  void disconnect() 
 public String getHeaderField(int theFieldNumber) 
 public InputStream getInputStream() 
 public  void setExpectedGetHeaderField(String theValue) 
    Sets the header field value that will be returned by getHeaderField().
 public  void setExpectedGetInputStream(InputStream theValue) 
    Sets the input stream value that will be returned by getInputStream().
 public boolean usingProxy()