Code example for MethodNotSupportedException

0
				Log.v(TAG, "reqLine=" + reqLine); 
 
				String method = reqLine.getMethod().toUpperCase(Locale.ENGLISH); 
				if (method.equals("GET") == false) 
				{ 
					throw new MethodNotSupportedException(method + 
					  " method not supported"); 
				} 
 
				response.setEntity(new MyBoilerPlateEntity()); 
				response.setStatusCode(HttpStatus.SC_OK); 
			} 
		}; 
 
		public static class MyBoilerPlateEntity extends EntityTemplate
		{ 
			public MyBoilerPlateEntity() 
			{ 
				super(new ContentProducer() {
					public void writeTo(OutputStream out)
					  throws IOException