From: Steve L. <st...@us...> - 2005-09-23 17:03:11
|
Update of /cvsroot/smartfrog/core/components/deployapi/src/org/smartfrog/services/deployapi/client In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30332/src/org/smartfrog/services/deployapi/client Modified Files: ConsoleOperation.java Log Message: resources are working Index: ConsoleOperation.java =================================================================== RCS file: /cvsroot/smartfrog/core/components/deployapi/src/org/smartfrog/services/deployapi/client/ConsoleOperation.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** ConsoleOperation.java 23 Sep 2005 13:48:42 -0000 1.7 --- ConsoleOperation.java 23 Sep 2005 17:03:00 -0000 1.8 *************** *** 509,515 **** * @throws RemoteException */ ! public Element getResourcePropertyXom(QName property) throws RemoteException { ! GetResourcePropertyResponseDocument responseDoc = getPropertyResponse(property); GetResourcePropertyResponseDocument.GetResourcePropertyResponse resp; resp = responseDoc.getGetResourcePropertyResponse(); --- 509,515 ---- * @throws RemoteException */ ! public Element getPortalPropertyXom(QName property) throws RemoteException { ! GetResourcePropertyResponseDocument responseDoc = getPortalProperty(property); GetResourcePropertyResponseDocument.GetResourcePropertyResponse resp; resp = responseDoc.getGetResourcePropertyResponse(); *************** *** 517,536 **** } ! public String getResourcePropertyText(QName property) ! throws RemoteException { ! GetResourcePropertyResponseDocument doc = getPropertyResponse(property); ! GetResourcePropertyResponseDocument.GetResourcePropertyResponse resp; ! resp = doc.getGetResourcePropertyResponse(); ! return resp.xmlText(); } ! ! ! public GetResourcePropertyResponseDocument getPropertyResponse(QName property) throws RemoteException { GetResourcePropertyBinding binding=new GetResourcePropertyBinding(); GetResourcePropertyDocument request = binding.createRequest(); request.setGetResourceProperty(property); GetResourcePropertyResponseDocument response; ! response = binding.invokeBlocking(portal, Constants.WSRF_OPERATION_GETRESOURCEPROPERTY, request); return response; } --- 517,531 ---- } ! public GetResourcePropertyResponseDocument getPortalProperty(QName property) throws RemoteException { ! Endpointer endpoint = portal; ! return getPropertyResponse(endpoint, property); } ! public GetResourcePropertyResponseDocument getPropertyResponse(Endpointer endpoint, QName property) throws RemoteException { GetResourcePropertyBinding binding=new GetResourcePropertyBinding(); GetResourcePropertyDocument request = binding.createRequest(); request.setGetResourceProperty(property); GetResourcePropertyResponseDocument response; ! response = binding.invokeBlocking(endpoint, Constants.WSRF_OPERATION_GETRESOURCEPROPERTY, request); return response; } *************** *** 541,559 **** * @throws RemoteException */ ! public Element getResourcePropertyXom(QualifiedName property) throws RemoteException { ! return getResourcePropertyXom(Utils.convert(property)); } ! public String getResourcePropertyText(QualifiedName property) throws RemoteException { ! return getResourcePropertyText(Utils.convert(property)); } ! public GetResourcePropertyResponseDocument getPropertyResponse(QualifiedName property) throws RemoteException { ! return getPropertyResponse(Utils.convert(property)); } - /** * initiate an undeployment --- 536,553 ---- * @throws RemoteException */ ! public Element getPortalPropertyXom(QualifiedName property) throws RemoteException { ! return getPortalPropertyXom(Utils.convert(property)); } ! public GetResourcePropertyResponseDocument getPortalProperty(QualifiedName property) throws RemoteException { ! return getPortalProperty(Utils.convert(property)); } ! public GetResourcePropertyResponseDocument getResourceProperty(Endpointer endpoint,QualifiedName property) throws RemoteException { ! return getPropertyResponse(endpoint,Utils.convert(property)); } /** * initiate an undeployment *************** *** 574,615 **** } - /** - * test for a language being supported - * - * @param languageURI - * @return true if the URI is in the list of known languages - */ - /* - public boolean supportsLanguage(String languageURI) throws RemoteException { - ServerStatusType status = getStatus(); - return supportsLanguage(status, languageURI); - } - */ - - /** - * test for a language being supported - * - * @param status server status - * @param languageURI - * @return true if the URI is in the list of known languages - */ - /* - public boolean supportsLanguage(ServerStatusType status, - String languageURI) { - StaticServerStatusType staticStatus = status.get_static(); - LanguageListTypeLanguage[] languages = staticStatus.getLanguages() - .getLanguage(); - for (int i = 0; i < languages.length; i++) { - LanguageListTypeLanguage l = languages[i]; - org.apache.axis.types.URI nsURI = l.getUri(); - if (languageURI.equals(nsURI.toString())) { - //positive match - return true; - } - } - //if we get here, no match - return false; - } - */ /** --- 568,571 ---- |