1 2 29 30 package com.jcraft.jhttptunnel; 31 32 import java.io.*; 33 34 abstract class Bound{ 35 private String host=null;; 36 private int port=80; 37 private Proxy proxy=null; 38 public void setHost(String host){ this.host=host; } 39 public void setPort(int port){ this.port=port; } 40 public void setProxy(Proxy proxy){ this.proxy=proxy; } 41 protected String getHost(){return host;} 42 protected int getPort(){return port;} 43 protected Proxy getProxy(){return proxy;} 44 45 abstract public void connect() throws IOException; 46 abstract public void close() throws IOException; 47 } 48 | Popular Tags |