private SSLContext initializeSSLContext() throws Exception {
		Assert.state(this.sslPropertiesLocation != null || (StringUtils.hasText
				(keyStore) && StringUtils.hasText(this.keyStorePassphrase))
				,"either 'sslPropertiesLocation' or 'keyStore' and 'keyStorePassphrase' "
						+ "must be set.");
		Assert.state( this.sslPropertiesLocation == null || (StringUtils.isEmpty
				(keyStore) && StringUtils.isEmpty(keyStorePassphrase)),
				"either 'sslPropertiesLocation' or 'keyStore' and 'keyStorePassphrase' "
						+ "must be set.");

		String keyStoreName = this.keyStore;
		String keyStorePassphrase = this.keyStorePassphrase;

		if (this.sslPropertiesLocation != null) {
			Properties sslProperties = new Properties();
			sslProperties.load(this.sslPropertiesLocation.getInputStream());
			keyStoreName = sslProperties.getProperty("keyStore");
			//For consistency, respect new inline property name and fall back to original
			keyStorePassphrase = sslProperties.getProperty("keyStorePassphrase");
			if (StringUtils.isEmpty(keyStorePassphrase)) {
				keyStorePassphrase = sslProperties.getProperty("keyStore.passPhrase");
			}
		}

		return createSSLContext(keyStoreName, keyStorePassphrase);
	}
Set the max content length; default 1Mb.
@param maxContentLength the max content length.
extensions/spring-xd-extension-http/src/main/java/org/springframework/integration/x/http/NettyHttpInboundChannelAdapter.java