Trimming trailing spaces, removing tabs - appserver/webservices
diff --git a/appserver/webservices/jsr109-impl/src/main/java/org/glassfish/webservices/ServerPipeCreator.java b/appserver/webservices/jsr109-impl/src/main/java/org/glassfish/webservices/ServerPipeCreator.java
index fa34394..e205948 100644
--- a/appserver/webservices/jsr109-impl/src/main/java/org/glassfish/webservices/ServerPipeCreator.java
+++ b/appserver/webservices/jsr109-impl/src/main/java/org/glassfish/webservices/ServerPipeCreator.java
@@ -17,23 +17,23 @@
package org.glassfish.webservices;
-import jakarta.xml.ws.http.HTTPBinding;
-
-import com.sun.xml.ws.api.pipe.Pipe;
-import com.sun.xml.ws.assembler.metro.ServerPipelineHook;
-import com.sun.xml.ws.api.pipe.ServerPipeAssemblerContext;
-
import com.sun.enterprise.deployment.WebServiceEndpoint;
import com.sun.xml.ws.api.model.SEIModel;
import com.sun.xml.ws.api.model.wsdl.WSDLPort;
+import com.sun.xml.ws.api.pipe.Pipe;
+import com.sun.xml.ws.api.pipe.ServerPipeAssemblerContext;
import com.sun.xml.ws.api.server.WSEndpoint;
+import com.sun.xml.ws.assembler.metro.ServerPipelineHook;
import com.sun.xml.ws.policy.PolicyMap;
+
import org.jvnet.hk2.annotations.Contract;
+import jakarta.xml.ws.http.HTTPBinding;
+
/**
* This is used by JAXWSContainer to return proper 196 security and
- * app server monitoing pipes to the StandAlonePipeAssembler and
- * TangoPipeAssembler
+ * app server monitoing pipes to the StandAlonePipeAssembler and
+ * TangoPipeAssembler
*/
@Contract
public abstract class ServerPipeCreator extends ServerPipelineHook {
@@ -41,21 +41,23 @@
protected WebServiceEndpoint endpoint;
protected boolean isHttpBinding;
- protected ServerPipeCreator(){
+ protected ServerPipeCreator() {
}
- public void init(WebServiceEndpoint ep){
+
+ public void init(WebServiceEndpoint ep) {
endpoint = ep;
- isHttpBinding =
- ((HTTPBinding.HTTP_BINDING.equals
- (endpoint.getProtocolBinding())) ? true : false);
+ isHttpBinding = ((HTTPBinding.HTTP_BINDING.equals(endpoint.getProtocolBinding())) ? true : false);
}
+
+ @Override
public Pipe createMonitoringPipe(ServerPipeAssemblerContext ctxt, Pipe tail) {
return new MonitoringPipe(ctxt, tail, endpoint);
}
- public abstract Pipe createSecurityPipe(PolicyMap map, SEIModel sei,
- WSDLPort port, WSEndpoint owner, Pipe tail);
+
+ @Override
+ public abstract Pipe createSecurityPipe(PolicyMap map, SEIModel sei, WSDLPort port, WSEndpoint owner, Pipe tail);
}
diff --git a/appserver/webservices/jsr109-impl/src/main/java/org/glassfish/webservices/ServletImplInvocationHandler.java b/appserver/webservices/jsr109-impl/src/main/java/org/glassfish/webservices/ServletImplInvocationHandler.java
index ff20c83..13ea51b 100644
--- a/appserver/webservices/jsr109-impl/src/main/java/org/glassfish/webservices/ServletImplInvocationHandler.java
+++ b/appserver/webservices/jsr109-impl/src/main/java/org/glassfish/webservices/ServletImplInvocationHandler.java
@@ -34,14 +34,15 @@
private static final Logger logger = LogUtils.getLogger();
- private Object servletImplDelegate;
- private Class servletImplClass;
+ private final Object servletImplDelegate;
+ private final Class servletImplClass;
public ServletImplInvocationHandler(Object delegate) {
servletImplDelegate = delegate;
servletImplClass = delegate.getClass();
}
+ @Override
public Object invoke(Object proxy, Method method, Object[] args)
throws Throwable {
@@ -58,8 +59,7 @@
try {
// Since impl class isn't subtype of SEI, we need to do a
// method lookup to get method object to use for invocation.
- Method implMethod = servletImplClass.getMethod
- (method.getName(), method.getParameterTypes());
+ Method implMethod = servletImplClass.getMethod(method.getName(), method.getParameterTypes());
returnValue = implMethod.invoke(servletImplDelegate, args);
} catch(InvocationTargetException ite) {
if (logger.isLoggable(Level.FINE)) {
@@ -71,13 +71,11 @@
throw t;
}
- return returnValue;
+ return returnValue;
}
- private Object invokeJavaObjectMethod(InvocationHandler handler,
- Method method, Object[] args)
- throws Throwable {
+ private Object invokeJavaObjectMethod(InvocationHandler handler, Method method, Object[] args) throws Throwable {
Object returnValue = null;
// Can only be one of :
@@ -100,8 +98,7 @@
returnValue = handler.toString();
break;
default :
- throw new Throwable("Object method " + method.getName() +
- "not found");
+ throw new Throwable("Object method " + method.getName() + "not found");
}
return returnValue;