KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > alt > org > apache > commons > httpclient > HttpMethodFactoryImpl


1 package alt.org.apache.commons.httpclient;
2
3 import org.apache.commons.httpclient.methods.*;
4
5 public class HttpMethodFactoryImpl implements HttpMethodFactory{
6     public PostMethod createPostMethod() {
7         return new PostMethod();
8     }
9
10     public GetMethod createGetMethod() {
11         return new GetMethod();
12     }
13
14     public PutMethod createPutMethod() {
15         return new PutMethod();
16     }
17
18     public DeleteMethod createDeleteMethod() {
19         return new DeleteMethod();
20     }
21
22     public HeadMethod createHeadMethod() {
23         return new HeadMethod();
24     }
25
26     public OptionsMethod createOptionsMethod() {
27         return new OptionsMethod();
28     }
29 }
30
Popular Tags