Code example for HttpURLConnection

Methods: getContentType

0
		return connection == null ? null : connection.getContentLength();
	} 
 
	@Override 
	public String getContentType() {
		return connection == null ? null : connection.getContentType();
	} 
 
	@Override 
	public InputStream getContentStream() throws IOException {
		return connection == null ? null : connection.getInputStream();
	} 
	 
	@Override 
	public HttpMethod getRequestMethod() {
		return connection == null ? null : HttpMethod.fromName(connection.getRequestMethod());
	} 
 
	@Override 
	public void close() {