UrlBuilder

class UrlBuilder(cxtPath: String)
Companion:
object
class Object
trait Matchable
class Any

Value members

Concrete methods

def buildOrigin(): String
def buildRequestUrl(): String

Returns request Url contain pathinfo and queryString but without contextPath.

Returns request Url contain pathinfo and queryString but without contextPath.

def buildUrl(): String

Returns full url

Returns full url

def setContextPath(contextPath: String): UrlBuilder.this.type

ContextPath should start with / but not ended with /

ContextPath should start with / but not ended with /

def setPathInfo(pathInfo: String): UrlBuilder.this.type
def setPort(port: Int): UrlBuilder.this.type
def setQueryString(queryString: String): UrlBuilder.this.type
def setRequestURI(requestURI: String): UrlBuilder.this.type

Set requestURI ,it should start with /

Set requestURI ,it should start with /

def setScheme(scheme: String): UrlBuilder.this.type
def setServerName(serverName: String): UrlBuilder.this.type
def setServletPath(servletPath: String): UrlBuilder.this.type

Set servletPath ,start with /

Set servletPath ,start with /

Concrete fields

var contextPath: String
var pathInfo: String
var port: Int
var queryString: String
var requestURI: String
var scheme: String
var serverName: String
var servletPath: String