1 22 package org.jboss.test.webservice.header; 23 24 import org.jboss.logging.Logger; 25 import org.jboss.util.id.UID; 26 27 import java.rmi.RemoteException ; 28 29 33 public class BeanHeaderEndpointImpl implements BeanHeaderEndpoint 34 { 35 private final Logger log = Logger.getLogger(BeanHeaderEndpointImpl.class); 37 38 public boolean doStuff(String parameter, SessionHeader header) throws RemoteException 39 { 40 if (parameter == null) 41 throw new IllegalArgumentException ("Null parameter"); 42 43 String username = header.getUsername(); 44 String sessionID = header.getSessionID(); 45 46 log.info("username: " + username); 47 log.info("sessionID: " + sessionID); 48 49 if (sessionID == null) 50 header.setSessionID(UID.asString()); 51 52 return true; 53 } 54 } 55 | Popular Tags |