@Override public void write(byte[] b) throws IOException { send(op, b); } };
/** * Gets the recorded content. */ public byte[] getRecord() { return recorder.toByteArray(); }
/** * Returns true if the named command exists. */ public boolean hasCommand(String name) { return entryPoint.hasCommand(name); }
@Override protected void printUsageSummary(PrintStream stderr) { super.printUsageSummary(stderr); stderr.println(Messages.LogoutCommand_FullDescription()); }
@Override protected void printUsageSummary(PrintStream stderr) { super.printUsageSummary(stderr); stderr.println(Messages.LoginCommand_FullDescription()); }
@Override protected void printUsageSummary(PrintStream stderr) { super.printUsageSummary(stderr); stderr.println(Messages.DisablePluginCommand_PrintUsageSummary()); }
@Override public void run() { cta.authenticate(protocol,channel,new Connection(c2s.getIn(), s2c.getOut())); } }.start();
/** * Loads RSA/DSA private key in a PEM format into {@link KeyPair}. */ public static KeyPair loadKey(File f, String passwd) throws IOException, GeneralSecurityException { return PrivateKeyProvider.loadKey(f, passwd); }
/** * Convenience method to call {@link #authorization} with the HTTP basic authentication. * Currently unused. */ public CLIConnectionFactory basicAuth(String username, String password) { return basicAuth(username+':'+password); }
DiagnosedStreamCorruptionException(Exception cause, Exception diagnoseFailure, byte[] readBack, byte[] readAhead) { initCause(cause); this.diagnoseFailure = diagnoseFailure; this.readBack = readBack; this.readAhead = readAhead; }
/** * Rewinds the record buffer and forget everything that was recorded. */ public void clear() { recorder = new ByteArrayRingBuffer(BUFFER_SIZE); }
/** * Print the result of all the process * @param results the list of results for the disablement of each plugin */ private void printResults(List<PluginWrapper.PluginDisableResult> results) { for (PluginWrapper.PluginDisableResult oneResult : results) { printResult(oneResult, 0); } }
@Override public String getShortDescription() { return Messages.ConnectNodeCommand_ShortDescription(); }
@Override public String getShortDescription() { return Messages.SetBuildParameterCommand_ShortDescription(); }
@Override public String getShortDescription() { return Messages.AddJobToViewCommand_ShortDescription(); }
@Override public String getShortDescription() { return Messages.CreateJobCommand_ShortDescription(); }
@Override public String getShortDescription() { return Messages.GroovyCommand_ShortDescription(); }
@Override public void write(byte[] b, int off, int len) throws IOException { send(op, b, off, len); } @Override
/** * Loads RSA/DSA private key in a PEM format into {@link KeyPair}. */ public static KeyPair loadKey(String pemString, String passwd) throws IOException, GeneralSecurityException { return PrivateKeyProvider.loadKey(pemString, passwd); }
@Override public void write(int b) throws IOException { send(op, new byte[] {(byte) b}); } @Override