WSDDRequestFlow req = new WSDDRequestFlow();
serv.setRequestFlow(req);
while ( st.hasMoreElements() ) {
hName = st.nextToken();
WSDDHandler h = new WSDDHandler();
h.setType(new QName("",hName));
req.addHandler(h);
}
}
Hashtable opts = new Hashtable();
getOptions( elem, opts );
serv.setOptionsHashtable(opts);
/**
* Pivots only make sense on the server.
*/
if (isServer) {
Handler pivotHandler = deployment.getHandler(new QName("", pivot));
if (pivotHandler == null)
throw new AxisFault(JavaUtils.getMessage("noPivot00", pivot));
Class pivotClass = pivotHandler.getClass();
if (pivotClass == RPCProvider.class) {
serv.setProviderQName(WSDDConstants.JAVARPC_PROVIDER);
} else if (pivotClass == MsgProvider.class) {
serv.setProviderQName(WSDDConstants.JAVAMSG_PROVIDER);
} else {
serv.setParameter("handlerClass", pivotClass.getName());
serv.setProviderQName(WSDDConstants.HANDLER_PROVIDER);
}
}
if ( response != null && !"".equals(response) ) {
st = new StringTokenizer( response, " \t\n\r\f," );
WSDDResponseFlow resp = new WSDDResponseFlow();
serv.setResponseFlow(resp);
while ( st.hasMoreElements() ) {
hName = st.nextToken();
WSDDHandler h = new WSDDHandler();
h.setType(new QName("", hName));
resp.addHandler(h);
}
}
try {