final int colonPos = hostHeader.indexOf(':'); if (colonPos < 0) { coyoteReq.serverName().setString(hostHeader); } else { coyoteReq.serverName().setString(hostHeader.substring(0, colonPos)); try { final int port = Integer.parseInt(hostHeader.substring(colonPos + 1));
/** * @return the server name responding to this Request. */ @Override public String getServerName() { return coyoteRequest.serverName().toString(); }
/** * Set the name of the server (virtual host) to process this request. * * @param name The server name */ public void setServerName(String name) { coyoteRequest.serverName().setString(name); }
/** * Set the name of the server (virtual host) to process this request. * * @param name The server name */ public void setServerName(String name) { coyoteRequest.serverName().setString(name); }
/** * Return the server name responding to this Request. */ @Override public String getServerName() { return coyoteRequest.serverName().toString(); }
/** * Return the server name responding to this Request. */ public String getServerName() { return (coyoteRequest.serverName().toString()); }
/** * Return the server name responding to this Request. */ @Override public String getServerName() { return coyoteRequest.serverName().toString(); }
/** * Set the name of the server (virtual host) to process this request. * * @param name The server name */ @Deprecated public void setServerName(String name) { coyoteRequest.serverName().setString(name); }
/** * @return the server name responding to this Request. */ @Override public String getServerName() { return coyoteRequest.serverName().toString(); }
/** * Set the name of the server (virtual host) to process this request. * * @param name The server name */ public void setServerName(String name) { coyoteRequest.serverName().setString(name); }
/** * Set the name of the server (virtual host) to process this request. * * @param name The server name */ @Deprecated public void setServerName(String name) { coyoteRequest.serverName().setString(name); }
/** * Return the server name responding to this Request. */ @Override public String getServerName() { return coyoteRequest.serverName().toString(); }
/* */ public void setServerName(String name) /* */ { /* 852 */ this.coyoteRequest.serverName().setString(name); /* */ } /* */
/** * Set the name of the server (virtual host) to process this request. * * @param name The server name */ public void setServerName(String name) { coyoteRequest.serverName().setString(name); }
/** * Set the name of the server (virtual host) to process this request. * * @param name The server name */ public void setServerName(String name) { coyoteRequest.serverName().setString(name); }
/** * Return the server name responding to this Request. */ public String getServerName() { return (coyoteRequest.serverName().toString()); }
/** * Return the server name responding to this Request. */ public String getServerName() { return (coyoteRequest.serverName().toString()); }
/** * Return the server name responding to this Request. */ @Override public String getServerName() { return coyoteRequest.serverName().toString(); }
/** * Set the name of the server (virtual host) to process this request. * * @param name The server name */ public void setServerName(String name) { coyoteRequest.serverName().setString(name); }
/** * Return the server name responding to this Request. */ @Override public String getServerName() { return coyoteRequest.serverName().toString(); }