Class MethodFactory
java.lang.Object
com.sun.ts.tests.common.webclient.http.MethodFactory
Simple factory class which returns HttpMethod implementations based on a request line.
 For example, a request line of 
GET /index.jsp HTTP/1.0 would return an HttpMethod implementation that
 handles GET requests using HTTP/1.0.- 
Method SummaryModifier and TypeMethodDescriptionstatic org.apache.commons.httpclient.HttpMethodgetInstance(String request) Returns the approriate request method based on the provided request string.
- 
Method Details- 
getInstanceReturns the approriate request method based on the provided request string. The request must be in the format of METHOD URI_PATH HTTP_VERSION, i.e. GET /index.jsp HTTP/1.1.- Returns:
- HttpMethod based in request.
 
 
-