Code example for ProtocolVersion

0
	public final class MockHttpResponse extends BasicHttpResponse {
 
		private MockEntity entity;
 
		public MockHttpResponse(String content) {
			super(new ProtocolVersion("HTTP", 1, 0), 0, "");
			this.entity = new MockEntity(content);
		} 
		 
		@Override 
		public HttpEntity getEntity() {
			return entity;
		} 
 
		private class MockEntity extends BasicHttpEntity {
			private String content;
 
			private MockEntity(String content) {
				this.content = content;
			}