public class ILocationService extends Objs
Objs.Constructor<T extends Objs>, Objs.Property<T>
Modifier | Constructor and Description |
---|---|
protected |
ILocationService(Objs.Constructor<?> c,
Object js) |
Modifier and Type | Method and Description |
---|---|
static ILocationService |
$as(Object obj) |
String |
absUrl() |
String |
hash() |
ILocationService |
hash(String newHash) |
String |
host() |
String |
path()
Return path of current url
|
ILocationService |
path(String path)
Change path when called with parameter and return $location.
|
double |
port() |
String |
protocol() |
ILocationService |
replace() |
Object |
search()
Return search part (as object) of current url
|
ILocationService |
search(Object search)
Change search part when called with parameter and return $location.
|
ILocationService |
search(String search,
Boolean paramValue)
Change search part when called with parameter and return $location.
|
ILocationService |
search(String search,
double paramValue)
Change search part when called with parameter and return $location.
|
ILocationService |
search(String search,
String paramValue)
Change search part when called with parameter and return $location.
|
ILocationService |
search(String search,
String[] paramValue)
Change search part when called with parameter and return $location.
|
Object |
state() |
ILocationService |
state(Object state) |
String |
url() |
ILocationService |
url(String url) |
$as, $cast, $delete, $get, $js, $set, create, create, defineProperties, defineProperty, freeze, getOwnPropertyDescriptor, getOwnPropertyNames, getPrototypeOf, hasOwnProperty, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, newObject, newObject, preventExtensions, propertyIsEnumerable, seal, toLocaleString, toString, valueOf
protected ILocationService(Objs.Constructor<?> c, Object js)
public static ILocationService $as(Object obj)
public String absUrl()
public String hash()
public ILocationService hash(String newHash)
public String host()
public String path()
public ILocationService path(String path)
path
- New pathpublic double port()
public String protocol()
public ILocationService replace()
public Object search()
public ILocationService search(Object search)
search
- When called with a single argument the method acts as a setter, setting the search component of $location to the specified value.
If the argument is a hash object containing an array of values, these values will be encoded as duplicate search parameters in the url.public ILocationService search(String search, String paramValue)
search
- New search paramsparamValue
- If search is a string or a Number, then paramValue will override only a single search property. If paramValue is null, the property specified via the first argument will be deleted. If paramValue is an array, it will override the property of the search component of $location specified via the first argument. If paramValue is true, the property specified via the first argument will be added with no value nor trailing equal sign.public ILocationService search(String search, double paramValue)
search
- New search paramsparamValue
- If search is a string or a Number, then paramValue will override only a single search property. If paramValue is null, the property specified via the first argument will be deleted. If paramValue is an array, it will override the property of the search component of $location specified via the first argument. If paramValue is true, the property specified via the first argument will be added with no value nor trailing equal sign.public ILocationService search(String search, String[] paramValue)
search
- New search paramsparamValue
- If search is a string or a Number, then paramValue will override only a single search property. If paramValue is null, the property specified via the first argument will be deleted. If paramValue is an array, it will override the property of the search component of $location specified via the first argument. If paramValue is true, the property specified via the first argument will be added with no value nor trailing equal sign.public ILocationService search(String search, Boolean paramValue)
search
- New search paramsparamValue
- If search is a string or a Number, then paramValue will override only a single search property. If paramValue is null, the property specified via the first argument will be deleted. If paramValue is an array, it will override the property of the search component of $location specified via the first argument. If paramValue is true, the property specified via the first argument will be added with no value nor trailing equal sign.public Object state()
public ILocationService state(Object state)
public String url()
public ILocationService url(String url)
Copyright © 2018. All rights reserved.