/[projects]/android/TrainInfoService/src/dk/thoerup/traininfoservice/banedk/HtmlunitInvocation.java
ViewVC logotype

Annotation of /android/TrainInfoService/src/dk/thoerup/traininfoservice/banedk/HtmlunitInvocation.java

Parent Directory Parent Directory | Revision Log Revision Log


Revision 939 - (hide annotations) (download)
Mon Jun 28 12:35:35 2010 UTC (13 years, 11 months ago) by torben
File size: 485 byte(s)
HtmlunitInvocation is a more correct name
1 torben 421 package dk.thoerup.traininfoservice.banedk;
2    
3 torben 470 import com.gargoylesoftware.htmlunit.Page;
4 torben 421 import com.gargoylesoftware.htmlunit.WebClient;
5    
6 torben 468 import dk.thoerup.circuitbreaker.CircuitInvocation;
7 torben 421
8 torben 939 public class HtmlunitInvocation implements CircuitInvocation {
9 torben 421
10     WebClient client;
11     String uri;
12    
13 torben 939 public HtmlunitInvocation(WebClient client, String uri) {
14 torben 421 this.client = client;
15     this.uri = uri;
16     }
17    
18    
19     @Override
20 torben 470 public Page proceed() throws Exception {
21 torben 421 return client.getPage(uri);
22     }
23    
24     }

  ViewVC Help
Powered by ViewVC 1.1.20