public abstract class URISchema<T,P> extends Object
Constructor and Description |
---|
URISchema() |
Modifier and Type | Method and Description |
---|---|
protected static <P> P |
copyData(P source,
P target) |
static String |
decodeURI(String value) |
static String |
encodeURI(String value) |
static String |
getData(List<String> ignored,
Object... beans) |
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.
|
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) |
static void |
setData(URI uri,
HashMap<String,Object> properties,
Set<String> allowableProperties,
Map<String,String> query) |
protected static <P> P |
setData(URI uri,
P obj,
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
public static String decodeURI(String value) throws UnsupportedEncodingException
UnsupportedEncodingException
public static String encodeURI(String value) throws UnsupportedEncodingException
UnsupportedEncodingException
public static Map<String,String> parseQuery(String uri, Map<String,String> propertyOverrides) throws URISyntaxException
URISyntaxException
protected static <P> P setData(URI uri, P obj, Map<String,String> query) throws Exception
Exception
public static void setData(URI uri, HashMap<String,Object> properties, Set<String> allowableProperties, Map<String,String> query)
Copyright © 2016 JBoss by Red Hat. All rights reserved.