Author: richard.opalka(a)jboss.com
Date: 2009-08-04 07:07:12 -0400 (Tue, 04 Aug 2009)
New Revision: 10474
Modified:
container/jboss50/branches/ropalka-jboss510/src/main/java/org/jboss/webservices/integration/tomcat/AbstractSecurityBuilder.java
container/jboss50/branches/ropalka-jboss510/src/main/java/org/jboss/webservices/integration/tomcat/SecurityBuilder.java
container/jboss50/branches/ropalka-jboss510/src/main/java/org/jboss/webservices/integration/tomcat/SecurityBuilderEJB21.java
container/jboss50/branches/ropalka-jboss510/src/main/java/org/jboss/webservices/integration/tomcat/SecurityBuilderEJB3.java
container/jboss50/branches/ropalka-jboss510/src/main/java/org/jboss/webservices/integration/tomcat/WebMetaDataModifier.java
container/jboss50/branches/ropalka-jboss510/src/main/java/org/jboss/webservices/integration/tomcat/WebMetaDataModifyingDeploymentAspect.java
Log:
fix whitespaces
Modified:
container/jboss50/branches/ropalka-jboss510/src/main/java/org/jboss/webservices/integration/tomcat/AbstractSecurityBuilder.java
===================================================================
---
container/jboss50/branches/ropalka-jboss510/src/main/java/org/jboss/webservices/integration/tomcat/AbstractSecurityBuilder.java 2009-08-04
10:55:23 UTC (rev 10473)
+++
container/jboss50/branches/ropalka-jboss510/src/main/java/org/jboss/webservices/integration/tomcat/AbstractSecurityBuilder.java 2009-08-04
11:07:12 UTC (rev 10474)
@@ -26,7 +26,7 @@
import org.jboss.wsf.spi.deployment.Deployment;
/**
- * Creates web app security meta data for EJB deployment.
+ * Creates web app security meta data for EJB deployment.
*
* @author <a href="mailto:ropalka@redhat.com">Richard Opalka</a>
* @author <a href="mailto:tdiesler@redhat.com">Thomas Diesler</a>
@@ -44,10 +44,10 @@
{
super();
}
-
+
/**
* @see
org.jboss.webservices.integration.tomcat.SecurityBuilder#addSecurityDomain(JBossWebMetaData,
Deployment)
- *
+ *
* @param jbossWebMD jboss web meta data
* @param dep webservice deployment
*/
@@ -64,7 +64,7 @@
/**
* @see
org.jboss.webservices.integration.tomcat.SecurityBuilder#addSecurityRoles(JBossWebMetaData,
Deployment)
- *
+ *
* @param jbossWebMD jboss web meta data
* @param dep webservice deployment
*/
@@ -80,7 +80,7 @@
/**
* Template method for obtaining security domain from EJB deployment.
- *
+ *
* @param dep webservice deployment
* @return security domain associated with EJB deployment
*/
@@ -88,7 +88,7 @@
/**
* Template method for obtaining security roles from EJB deployment.
- *
+ *
* @param dep webservice deployment
* @return security roles associated with EJB deployment
*/
@@ -96,7 +96,7 @@
/**
* Appends 'java:/jaas/' prefix to security domain if it's not prefixed
with it.
- *
+ *
* @param securityDomain security domain to be prefixed
* @return security domain prefixed with jaas JNDI prefix
*/
@@ -105,13 +105,13 @@
if ( securityDomain != null )
{
final boolean hasJaasPrefix = securityDomain.startsWith(
AbstractSecurityBuilder.JAAS_JNDI_PREFIX );
-
+
if ( !hasJaasPrefix )
{
return AbstractSecurityBuilder.JAAS_JNDI_PREFIX + securityDomain;
}
}
-
+
return securityDomain;
}
Modified:
container/jboss50/branches/ropalka-jboss510/src/main/java/org/jboss/webservices/integration/tomcat/SecurityBuilder.java
===================================================================
---
container/jboss50/branches/ropalka-jboss510/src/main/java/org/jboss/webservices/integration/tomcat/SecurityBuilder.java 2009-08-04
10:55:23 UTC (rev 10473)
+++
container/jboss50/branches/ropalka-jboss510/src/main/java/org/jboss/webservices/integration/tomcat/SecurityBuilder.java 2009-08-04
11:07:12 UTC (rev 10474)
@@ -25,8 +25,8 @@
import org.jboss.wsf.spi.deployment.Deployment;
/**
- * Creates web app security meta data for EJB deployments.
- *
+ * Creates web app security meta data for EJB deployments.
+ *
* @author <a href="mailto:ropalka@redhat.com">Richard Opalka</a>
* @author <a href="mailto:tdiesler@redhat.com">Thomas Diesler</a>
*/
@@ -40,7 +40,7 @@
* @param dep webservice deployment
*/
void addSecurityDomain( JBossWebMetaData jbossWebMD, Deployment dep );
-
+
/**
* Adds security roles to web.xml.
*
Modified:
container/jboss50/branches/ropalka-jboss510/src/main/java/org/jboss/webservices/integration/tomcat/SecurityBuilderEJB21.java
===================================================================
---
container/jboss50/branches/ropalka-jboss510/src/main/java/org/jboss/webservices/integration/tomcat/SecurityBuilderEJB21.java 2009-08-04
10:55:23 UTC (rev 10473)
+++
container/jboss50/branches/ropalka-jboss510/src/main/java/org/jboss/webservices/integration/tomcat/SecurityBuilderEJB21.java 2009-08-04
11:07:12 UTC (rev 10474)
@@ -30,13 +30,13 @@
/**
* Creates web app security meta data for EJB 21 deployment.
- *
+ *
* @author <a href="mailto:ropalka@redhat.com">Richard Opalka</a>
* @author <a href="mailto:tdiesler@redhat.com">Thomas Diesler</a>
*/
public final class SecurityBuilderEJB21 extends AbstractSecurityBuilder
{
-
+
/**
* Constructor.
*/
@@ -44,10 +44,10 @@
{
super();
}
-
+
/**
* @see
org.jboss.webservices.integration.tomcat.AbstractSecurityBuilder#getSecurityDomain(Deployment)
- *
+ *
* @param dep webservice deployment
* @return security domain associated with EJB 21 deployment
*/
@@ -60,7 +60,7 @@
/**
* @see
org.jboss.webservices.integration.tomcat.AbstractSecurityBuilder#getSecurityRoles(Deployment)
- *
+ *
* @param dep webservice deployment
* @return security roles associated with EJB 21 deployment
*/
@@ -69,7 +69,7 @@
final JBossMetaData jbossWebMD = WSHelper.getRequiredAttachment( dep,
JBossMetaData.class );
final IAssemblyDescriptorMetaData assemblyDescriptorMD =
jbossWebMD.getAssemblyDescriptor();
- return ( assemblyDescriptorMD != null ) ? assemblyDescriptorMD.getSecurityRoles() :
null;
+ return ( assemblyDescriptorMD != null ) ? assemblyDescriptorMD.getSecurityRoles() :
null;
}
-
+
}
Modified:
container/jboss50/branches/ropalka-jboss510/src/main/java/org/jboss/webservices/integration/tomcat/SecurityBuilderEJB3.java
===================================================================
---
container/jboss50/branches/ropalka-jboss510/src/main/java/org/jboss/webservices/integration/tomcat/SecurityBuilderEJB3.java 2009-08-04
10:55:23 UTC (rev 10473)
+++
container/jboss50/branches/ropalka-jboss510/src/main/java/org/jboss/webservices/integration/tomcat/SecurityBuilderEJB3.java 2009-08-04
11:07:12 UTC (rev 10474)
@@ -34,8 +34,8 @@
import org.jboss.wsf.spi.deployment.integration.WebServiceDeployment;
/**
- * Creates web app security meta data for EJB 3 deployment.
- *
+ * Creates web app security meta data for EJB 3 deployment.
+ *
* @author <a href="mailto:ropalka@redhat.com">Richard Opalka</a>
* @author <a href="mailto:tdiesler@redhat.com">Thomas Diesler</a>
*/
@@ -52,7 +52,7 @@
/**
* @see
org.jboss.webservices.integration.tomcat.AbstractSecurityBuilder#getSecurityDomain(Deployment)
- *
+ *
* @param dep webservice deployment
* @return security domain associated with EJB 3 deployment
*/
@@ -69,13 +69,13 @@
securityDomain = this.getDomain( securityDomain, nextSecurityDomain );
}
-
+
return securityDomain;
}
-
+
/**
* @see
org.jboss.webservices.integration.tomcat.AbstractSecurityBuilder#getSecurityRoles(Deployment)
- *
+ *
* @param dep webservice deployment
* @return security roles associated with EJB 21 deployment
*/
@@ -90,25 +90,25 @@
final WebServiceDeclaration ejbContainer = ejbContainers.next();
final RolesAllowed allowedRoles = ejbContainer.getAnnotation( RolesAllowed.class
);
final boolean hasAllowedRoles = allowedRoles != null;
-
+
if ( hasAllowedRoles )
{
for ( final String roleName : allowedRoles.value() )
{
final SecurityRoleMetaData securityRoleMD = new SecurityRoleMetaData();
-
+
securityRoleMD.setRoleName( roleName );
securityRolesMD.add( securityRoleMD );
}
}
}
-
+
return securityRolesMD;
}
/**
* Returns security domain value. This method checks domain is the same for every EJB
3 endpoint.
- *
+ *
* @param oldSecurityDomain our security domain
* @param nextSecurityDomain next security domain
* @return security domain value
@@ -120,7 +120,7 @@
{
return oldSecurityDomain;
}
-
+
if ( oldSecurityDomain == null )
{
return nextSecurityDomain.value();
@@ -130,10 +130,10 @@
return oldSecurityDomain;
}
-
+
/**
* This method ensures both passed domains contain the same value.
- *
+ *
* @param oldSecurityDomain our security domain
* @param newSecurityDomain next security domain
* @throws IllegalStateException if domains have different values
Modified:
container/jboss50/branches/ropalka-jboss510/src/main/java/org/jboss/webservices/integration/tomcat/WebMetaDataModifier.java
===================================================================
---
container/jboss50/branches/ropalka-jboss510/src/main/java/org/jboss/webservices/integration/tomcat/WebMetaDataModifier.java 2009-08-04
10:55:23 UTC (rev 10473)
+++
container/jboss50/branches/ropalka-jboss510/src/main/java/org/jboss/webservices/integration/tomcat/WebMetaDataModifier.java 2009-08-04
11:07:12 UTC (rev 10474)
@@ -37,7 +37,7 @@
import org.jboss.wsf.spi.deployment.Endpoint;
/**
- * The modifier of jboss web meta data.
+ * The modifier of jboss web meta data.
* It configures WS transport for every webservice endpoint
* plus propagates WS stack specific context parameters if required.
*
@@ -57,7 +57,7 @@
/**
* Modifies web meta data to configure webservice stack transport and properties.
- *
+ *
* @param dep webservice deployment
*/
public void modify( final Deployment dep )
@@ -70,7 +70,7 @@
/**
* Propagates stack specific context parameters if specified.
- *
+ *
* @param dep webservice deployment
* @param jbossWebMD web meta data
*/
@@ -79,7 +79,7 @@
{
final Map< String, String > stackContextParams = ( Map< String, String
> )
dep.getProperty( WSConstants.STACK_CONTEXT_PARAMS );
-
+
if ( stackContextParams != null )
{
final List< ParamValueMetaData > contextParams = this.getContextParams(
jbossWebMD );
@@ -94,14 +94,14 @@
/**
* Configures transport servlet class for every found webservice endpoint.
- *
+ *
* @param dep webservice deployment
* @param jbossWebMD web meta data
*/
private void configureEndpoints( final Deployment dep, final JBossWebMetaData
jbossWebMD )
{
final Iterator< JBossServletMetaData > servlets =
jbossWebMD.getServlets().iterator();
-
+
while ( servlets.hasNext() )
{
final ServletMetaData servletMD = servlets.next();
@@ -118,15 +118,15 @@
final List< ParamValueMetaData > initParams =
this.getServletInitParams( servletMD );
final ParamValueMetaData endpointParam = this.newParameter(
Endpoint.SEPID_DOMAIN_ENDPOINT, endpointClassName );
-
+
initParams.add( endpointParam );
}
}
}
-
+
/**
* Returns stack specific transport class name.
- *
+ *
* @param dep webservice deployment
* @return stack specific transport class name
* @throws IllegalStateException if transport class name is not found in deployment
properties map
@@ -134,18 +134,18 @@
private String getTransportClassName( final Deployment dep )
{
final String transportClassName = ( String ) dep.getProperty(
WSConstants.STACK_TRANSPORT_CLASS );
-
+
if ( transportClassName == null )
{
throw new IllegalStateException( "Cannot obtain deployment property: "
+ WSConstants.STACK_TRANSPORT_CLASS );
}
-
+
return transportClassName;
}
-
+
/**
* Creates new parameter with specified key and value.
- *
+ *
* @param key the key
* @param value the value
* @return new parameter
@@ -155,13 +155,13 @@
final ParamValueMetaData paramMD = new ParamValueMetaData();
paramMD.setParamName( key );
paramMD.setParamValue( value );
-
+
return paramMD;
}
-
+
/**
* Gets servlet init params list. Constructs new init params list if it does not exist
yet.
- *
+ *
* @param servletMD servlet meta data
* @return servlet init params list
*/
@@ -174,26 +174,26 @@
initParams = new ArrayList< ParamValueMetaData >();
servletMD.setInitParam( initParams );
}
-
+
return initParams;
}
/**
* Gets context params list. Constructs new context params list if it does not exist
yet.
- *
+ *
* @param jbossWebMD web meta data
* @return context params list
*/
private List< ParamValueMetaData > getContextParams( final JBossWebMetaData
jbossWebMD )
{
List< ParamValueMetaData > contextParams = jbossWebMD.getContextParams();
-
+
if ( contextParams == null )
{
contextParams = new ArrayList< ParamValueMetaData >();
jbossWebMD.setContextParams( contextParams );
}
-
+
return contextParams;
}
Modified:
container/jboss50/branches/ropalka-jboss510/src/main/java/org/jboss/webservices/integration/tomcat/WebMetaDataModifyingDeploymentAspect.java
===================================================================
---
container/jboss50/branches/ropalka-jboss510/src/main/java/org/jboss/webservices/integration/tomcat/WebMetaDataModifyingDeploymentAspect.java 2009-08-04
10:55:23 UTC (rev 10473)
+++
container/jboss50/branches/ropalka-jboss510/src/main/java/org/jboss/webservices/integration/tomcat/WebMetaDataModifyingDeploymentAspect.java 2009-08-04
11:07:12 UTC (rev 10474)
@@ -26,13 +26,13 @@
/**
* Modifies web meta data to configure webservice stack endpoints and properties.
- *
+ *
* @author <a href="mailto:ropalka@redhat.com">Richard Opalka</a>
* @author <a href="mailto:tdiesler@redhat.com">Thomas Diesler</a>
*/
public final class WebMetaDataModifyingDeploymentAspect extends DeploymentAspect
{
-
+
/** Web meta data modifier. */
private WebMetaDataModifier webMetaDataModifier;
@@ -46,7 +46,7 @@
/**
* Sets Web meta data modifier. This method is called using MC injection.
- *
+ *
* @param webMDModifier web meta data modifier
*/
public void setWebMetaDataModifier( final WebMetaDataModifier webMDModifier )
@@ -56,12 +56,12 @@
/**
* Modifies web meta data.
- *
+ *
* @param dep webservice deployment
*/
public void start( final Deployment dep )
{
this.webMetaDataModifier.modify( dep );
}
-
+
}