UrlBuilder

org.beangle.web.servlet.url.UrlBuilder
See theUrlBuilder companion object
class UrlBuilder(cxtPath: String)

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Concise view

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.

Attributes

def buildUrl(): String

Returns full url

Returns full url

Attributes

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

ContextPath should start with / but not ended with /

ContextPath should start with / but not ended with /

Attributes

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 /

Attributes

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 /

Attributes

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