152153154155156157158159160161162
break; case UNINSTALL: task = new UninstallAction(in, out); break; case UPDATE: task = new UpdateAction(in, out); break; case STATUS: task = new StatusAction(in, out); break; case REFRESH:
145146147148149150151
public void update(long bundle) throws IOException, BundleException { if (socket == null) throw new IllegalStateException("Not connected"); Update update = new UpdateAction.Update(bundle, null); new UpdateAction(in, out).client(update); }
153154155156157158159
public void update(long bundle, String url) throws IOException, BundleException { if (socket == null) throw new IllegalStateException("Not connected"); Update update = new UpdateAction.Update(bundle, url); new UpdateAction(in, out).client(update); }