public abstract class URISchema<T,P> extends Object
Constructor and Description |
---|
URISchema() |
Modifier and Type | Method and Description |
---|---|
protected URI |
getDefaultURI() |
protected URIFactory<T,P> |
getFactory() |
protected String |
getHost(URI uri) |
protected int |
getPort(URI uri) |
abstract String |
getSchemaName() |
protected abstract T |
internalNewObject(URI uri,
Map<String,String> query,
P param) |
protected URI |
internalNewURI(T bean)
This is the default implementation.
|
protected void |
internalPopulateObject(URI uri,
Map<String,String> query,
T bean) |
T |
newObject(URI uri,
Map<String,String> propertyOverrides,
P param)
It will create a new Object for the URI selected schema.
|
T |
newObject(URI uri,
P param) |
URI |
newURI(T bean) |
static Map<String,String> |
parseQuery(String uri,
Map<String,String> propertyOverrides) |
void |
populateObject(URI uri,
T bean) |
protected String |
printQuery(Map<String,String> query) |
public abstract String getSchemaName()
protected URIFactory<T,P> getFactory()
protected URI getDefaultURI()
protected int getPort(URI uri)
public T newObject(URI uri, Map<String,String> propertyOverrides, P param) throws Exception
uri
- The URIpropertyOverrides
- used to replace whatever was defined on the URL stringException
- On errorprotected abstract T internalNewObject(URI uri, Map<String,String> query, P param) throws Exception
Exception
protected URI internalNewURI(T bean) throws Exception
Exception
protected void internalPopulateObject(URI uri, Map<String,String> query, T bean) throws Exception
Exception
public static Map<String,String> parseQuery(String uri, Map<String,String> propertyOverrides) throws URISyntaxException
URISyntaxException
Copyright © 2021 JBoss by Red Hat. All rights reserved.