return rvalue;
}
private boolean addMessageSecurityHandler(Service service) throws Exception
{
HandlerRegistry registry = service.getHandlerRegistry();
Iterator ports = null;
try {
ports = service.getPorts();
} catch (Exception e) {
// FIXME: should make sure that the exception was thrown because
// the service is not fully defined; but for now just return.
ports = null;
}
while(ports != null && ports.hasNext()) {
QName nextPort = (QName) ports.next();
List handlerChain = registry.getHandlerChain(nextPort);
// append security handler to the end of every handler chain
// ASSUMPTION 1: that registry.getHandlerChain() never returns null.
// ASSUMPTION 2: that handlers from ServiceRef have already been added