Author: thorsten
Date: Tue Sep 25 11:09:38 2012
New Revision: 1389798
URL: http://svn.apache.org/viewvc?rev=1389798&view=rev
Log:
white noise - formating changes
Modified:
cocoon/subprojects/cocoon-block-deployment/trunk/src/main/java/org/apache/cocoon/blockdeployment/BlockContextURLConnection.java
Modified: cocoon/subprojects/cocoon-block-deployment/trunk/src/main/java/org/apache/cocoon/blockdeployment/BlockContextURLConnection.java
URL: http://svn.apache.org/viewvc/cocoon/subprojects/cocoon-block-deployment/trunk/src/main/java/org/apache/cocoon/blockdeployment/BlockContextURLConnection.java?rev=1389798&r1=1389797&r2=1389798&view=diff
==============================================================================
--- cocoon/subprojects/cocoon-block-deployment/trunk/src/main/java/org/apache/cocoon/blockdeployment/BlockContextURLConnection.java (original)
+++ cocoon/subprojects/cocoon-block-deployment/trunk/src/main/java/org/apache/cocoon/blockdeployment/BlockContextURLConnection.java Tue Sep 25 11:09:38 2012
@@ -30,7 +30,8 @@ public class BlockContextURLConnection e
private URLConnection urlConnection;
- protected BlockContextURLConnection(URL url, Map<String, String> blockContexts) {
+ protected BlockContextURLConnection(URL url,
+ Map<String, String> blockContexts) {
super(url);
// check if there the BlockContext map is not null.
@@ -38,9 +39,11 @@ public class BlockContextURLConnection e
// environments, the cocoon-block-deployment library is available, but
// you don't necessarily use the blockcontext protocol.
if (blockContexts == null) {
- throw new BlockContextInitializationException("There are no block contexts available. Make sure that the "
- + BlockDeploymentServletContextListener.class.getName()
- + " is configured correctly in the web.xml.");
+ throw new BlockContextInitializationException(
+ "There are no block contexts available. Make sure that the "
+ + BlockDeploymentServletContextListener.class
+ .getName()
+ + " is configured correctly in the web.xml.");
}
this.blockContexts = blockContexts;
this.url = url;
@@ -73,19 +76,23 @@ public class BlockContextURLConnection e
String blockContext = this.blockContexts.get(blockName);
if (blockContext == null) {
- throw new RuntimeException("There is no block '" + blockName
- + "' deployed. The available blocks are " + this.blockContexts + ".");
+ throw new RuntimeException("There is no block '"
+ + blockName
+ + "' deployed. The available blocks are "
+ + this.blockContexts + ".");
}
try {
resolvedPath = new URL(new URL(blockContext), path);
this.urlConnection = resolvedPath.openConnection();
} catch (IOException e) {
- throw new RuntimeException("Can create URL for '" + blockContext + path + "'.'");
+ throw new RuntimeException("Can create URL for '"
+ + blockContext + path + "'.'");
}
} else {
- throw new RuntimeException("The block name part of a block context uri must end with a '/' in "
- + location);
+ throw new RuntimeException(
+ "The block name part of a block context uri must end with a '/' in "
+ + location);
}
}
return this.urlConnection;
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.