• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package com.xtremelabs.robolectric.tester.org.apache.http;
2 
3 import org.apache.http.Header;
4 import org.apache.http.HttpEntity;
5 import org.apache.http.HttpException;
6 import org.apache.http.HttpRequest;
7 import org.apache.http.HttpResponse;
8 
9 import java.io.IOException;
10 import java.io.InputStream;
11 import java.io.OutputStream;
12 
13 public class HttpEntityStub implements HttpEntity {
isRepeatable()14     @Override public boolean isRepeatable() {
15         throw new UnsupportedOperationException();
16     }
17 
isChunked()18     @Override public boolean isChunked() {
19         throw new UnsupportedOperationException();
20     }
21 
getContentLength()22     @Override public long getContentLength() {
23         throw new UnsupportedOperationException();
24     }
25 
getContentType()26     @Override public Header getContentType() {
27         throw new UnsupportedOperationException();
28     }
29 
getContentEncoding()30     @Override public Header getContentEncoding() {
31         throw new UnsupportedOperationException();
32     }
33 
getContent()34     @Override public InputStream getContent() throws IOException, IllegalStateException {
35         throw new UnsupportedOperationException();
36     }
37 
writeTo(OutputStream outputStream)38     @Override public void writeTo(OutputStream outputStream) throws IOException {
39         throw new UnsupportedOperationException();
40     }
41 
isStreaming()42     @Override public boolean isStreaming() {
43         throw new UnsupportedOperationException();
44     }
45 
consumeContent()46     @Override public void consumeContent() throws IOException {
47         throw new UnsupportedOperationException();
48     }
49 
50     public static interface ResponseRule {
matches(HttpRequest request)51         boolean matches(HttpRequest request);
52 
getResponse()53         HttpResponse getResponse() throws HttpException, IOException;
54     }
55 }
56