public class SlugRegistry extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SlugRegistry.BucketThing |
Constructor and Description |
---|
SlugRegistry() |
Modifier and Type | Method and Description |
---|---|
SlugRegistry |
addDisplayable(Displayable item) |
Map<String,SlugRegistry.BucketThing> |
getSlugMap() |
boolean |
hasUrl(String url) |
static SlugRegistry |
instance() |
Collection<Displayable> |
listAll() |
static SlugRegistry |
load() |
Displayable |
lookup(String url) |
Displayable |
lookup(String url,
Displayable defaultObj) |
void |
registerRedirect(String fromUrl,
String toUrl) |
String |
returnRedirectIfExists(String fromUrl) |
void |
shutdown() |
public SlugRegistry()
public static SlugRegistry instance()
public static SlugRegistry load()
public void shutdown()
public Collection<Displayable> listAll()
public SlugRegistry addDisplayable(Displayable item)
public Displayable lookup(String url)
public Displayable lookup(String url, Displayable defaultObj)
public Map<String,SlugRegistry.BucketThing> getSlugMap()
public void registerRedirect(String fromUrl, String toUrl)
public String returnRedirectIfExists(String fromUrl)
Copyright © 2016. All rights reserved.