From: Steve L. <st...@us...> - 2005-09-23 20:14:31
|
Update of /cvsroot/smartfrog/core/components/deployapi/src/org/smartfrog/services/deployapi/transport/endpoints In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14620/src/org/smartfrog/services/deployapi/transport/endpoints Modified Files: SystemEndpoint.java Log Message: epr work, and preparing system instances Index: SystemEndpoint.java =================================================================== RCS file: /cvsroot/smartfrog/core/components/deployapi/src/org/smartfrog/services/deployapi/transport/endpoints/SystemEndpoint.java,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** SystemEndpoint.java 22 Sep 2005 17:08:59 -0000 1.9 --- SystemEndpoint.java 23 Sep 2005 20:14:21 -0000 1.10 *************** *** 35,38 **** --- 35,40 ---- import javax.xml.namespace.QName; + import java.net.URL; + import java.net.MalformedURLException; /* *************** *** 69,85 **** } if (Constants.API_ELEMENT_RESOLVE_REQUEST.equals(action)) { - return Resolve(request); } if (Constants.API_ELEMENT_ADDFILE_REQUEST.equals(action)) { - return AddFile(request); } if (Constants.API_ELEMENT_RUN_REQUEST.equals(action)) { - return Run(request); } if (Constants.API_ELEMENT_TERMINATE_REQUEST.equals(action)) { - return Terminate(request); } if (Constants.API_ELEMENT_PING_REQUEST.equals(action)) { - return Ping(request); } return null; --- 71,82 ---- *************** *** 87,90 **** --- 84,99 ---- protected Job lookupJob(MessageContext inMessage) { + String address = inMessage.getTo().getAddress(); + URL url=null; + try { + url = new URL(address); + } catch (MalformedURLException e) { + throw new RuntimeException("Couldnt turn an addr into a URL "+address,e); + } + String query = url.getRef(); + if(query==null) { + throw FaultRaiser.raiseNoSuchApplicationFault("No app at "+address); + } + FaultRaiser.throwNotImplemented(); return null; *************** *** 108,135 **** } - public OMElement Resolve(OMElement request) throws BaseException { - FaultRaiser.throwNotImplemented(); - return null; - } - - public OMElement Run(OMElement request) throws BaseException { - FaultRaiser.throwNotImplemented(); - return null; - } - - public OMElement Terminate(OMElement request) throws BaseException { - FaultRaiser.throwNotImplemented(); - return null; - } - - public OMElement Ping(OMElement request) throws BaseException { - FaultRaiser.throwNotImplemented(); - return null; - } - - public OMElement Destroy(OMElement request) throws BaseException { - FaultRaiser.throwNotImplemented(); - return null; - } - } --- 117,119 ---- |