James Moger
2014-03-14 fea7c52e9584ff117be8529b431b40590deef0ca
Renamed SshContext->SshCommandContext for clarity of purpose
1 files renamed
2 files modified
12 ■■■■ changed files
src/main/java/com/gitblit/transport/ssh/SshCommandContext.java 4 ●●●● patch | view | raw | blame | history
src/main/java/com/gitblit/transport/ssh/SshCommandFactory.java 2 ●●● patch | view | raw | blame | history
src/main/java/com/gitblit/transport/ssh/commands/BaseCommand.java 6 ●●●● patch | view | raw | blame | history
src/main/java/com/gitblit/transport/ssh/SshCommandContext.java
File was renamed from src/main/java/com/gitblit/transport/ssh/SshContext.java
@@ -15,12 +15,12 @@
 */
package com.gitblit.transport.ssh;
public class SshContext {
public class SshCommandContext {
    private final SshDaemonClient client;
    private final String commandLine;
    public SshContext(SshDaemonClient client, String commandLine) {
    public SshCommandContext(SshDaemonClient client, String commandLine) {
        this.client = client;
        this.commandLine = commandLine;
    }
src/main/java/com/gitblit/transport/ssh/SshCommandFactory.java
@@ -133,7 +133,7 @@
        private void onStart() throws IOException {
          synchronized (this) {
            SshContext ctx = new SshContext(session.getAttribute(SshDaemonClient.KEY), cmdLine);
            SshCommandContext ctx = new SshCommandContext(session.getAttribute(SshDaemonClient.KEY), cmdLine);
            try {
              cmd = dispatcher;
              cmd.setArguments(argv);
src/main/java/com/gitblit/transport/ssh/commands/BaseCommand.java
@@ -33,7 +33,7 @@
import org.slf4j.LoggerFactory;
import com.gitblit.transport.ssh.AbstractSshCommand;
import com.gitblit.transport.ssh.SshContext;
import com.gitblit.transport.ssh.SshCommandContext;
import com.gitblit.utils.IdGenerator;
import com.gitblit.utils.WorkQueue;
import com.gitblit.utils.WorkQueue.CancelableRunnable;
@@ -52,7 +52,7 @@
  private String[] argv;
  /** Ssh context */
  protected SshContext ctx;
  protected SshCommandContext ctx;
  /** The task, as scheduled on a worker thread. */
  private final AtomicReference<Future<?>> task;
@@ -66,7 +66,7 @@
    this.executor = w.getDefaultQueue();
  }
  public void setContext(SshContext ctx) {
  public void setContext(SshCommandContext ctx) {
    this.ctx = ctx;
  }