1 15 16 package com.jdon.bussinessproxy.remote.http; 17 18 25 public class HttpServerParam { 26 27 28 private static final String SERVER_HOST = "localhost"; 29 30 31 private static final int SERVER_PORT = 8080; 32 33 34 private static final String SERVICE_PATH = "/AuthTest/auth/EJBInvokerServlet"; 35 36 protected static final String LOGIN_PATH = "/AuthTest/auth/EJBInvokerServlet"; 37 38 private String host; 39 40 private String servletPath; 41 42 43 private int port = -1; 44 45 private String loginPath; 46 47 private boolean debug = false; 48 49 public HttpServerParam() { 50 51 } 52 53 public HttpServerParam(String host, int port, String servletPath) { 54 this.host = host; 55 this.port = port; 56 this.servletPath = servletPath; 57 } 58 59 60 61 64 public boolean isDebug() { 65 return debug; 66 } 67 70 public void setDebug(boolean debug) { 71 this.debug = debug; 72 } 73 74 public String getHost() { 75 return (this.host == null) ? SERVER_HOST : this.host; 76 } 77 78 public void setHost(String host) { 79 this.host = host; 80 } 81 82 public String getServletPath() { 83 return (this.servletPath == null) ? SERVICE_PATH : this.servletPath; 84 } 85 86 public void setServletPath(String servletPath) { 87 this.servletPath = servletPath; 88 89 } 90 91 public String getLoginPath() { 92 return (this.loginPath == null) ? LOGIN_PATH : this.loginPath; 93 } 94 95 public void setLoginPath(String loginPath) { 96 this.loginPath = loginPath; 97 98 } 99 100 public int getPort() { 101 return (this.port == -1) ? SERVER_PORT : this.port; 102 } 103 104 public void setPort(int port) { 105 this.port = port; 106 } 107 108 } 109 | Popular Tags |