public abstract class JobRelatedResource extends BaseResource
Modifier and Type | Field and Description |
---|---|
protected IdentityHashMap<Object,String> |
beanToNameMap |
protected CrawlJob |
cj |
protected static HashSet<String> |
HIDDEN_PROPS
suppress problematic properties
|
Constructor and Description |
---|
JobRelatedResource(org.restlet.Context ctx,
org.restlet.data.Request req,
org.restlet.data.Response res) |
Modifier and Type | Method and Description |
---|---|
protected void |
addPresentableNestedNames(Collection<Object> namedBeans,
Object obj,
Set<Object> alreadyWritten)
Starting at (and including) the given object, adds nested Map
representations of named beans to the
namedBeans Collection. |
protected void |
defaultUpdateDescriptor(PropertyDescriptor pd) |
protected Engine |
getEngine() |
protected PropertyDescriptor[] |
getPropertyDescriptors(org.springframework.beans.BeanWrapperImpl bwrap)
Get and modify the PropertyDescriptors associated with the BeanWrapper.
|
protected Map<String,Object> |
makePresentableMapFor(String field,
Object object)
Constructs a nested Map data structure of the information represented
by
object . |
protected Map<String,Object> |
makePresentableMapFor(String field,
Object object,
HashSet<Object> alreadyWritten,
String beanPathPrefix)
Constructs a nested Map data structure of the information represented
by
object . |
protected Map<String,Object> |
makePresentableMapFor(String field,
Object object,
String beanPath)
Constructs a nested Map data structure of the information represented
by
object . |
getPreferredVariant, getStaticRef
acceptRepresentation, allowDelete, allowGet, allowPost, allowPut, delete, getPreferredRepresentation, getRepresentation, getVariants, handleDelete, handleGet, handlePost, handlePut, init, isAvailable, isModifiable, isNegotiateContent, isReadable, post, put, removeRepresentations, represent, represent, setAvailable, setModifiable, setNegotiateContent, setReadable, setVariants, storeRepresentation
protected CrawlJob cj
protected IdentityHashMap<Object,String> beanToNameMap
public JobRelatedResource(org.restlet.Context ctx, org.restlet.data.Request req, org.restlet.data.Response res) throws org.restlet.resource.ResourceException
org.restlet.resource.ResourceException
protected Engine getEngine()
protected void addPresentableNestedNames(Collection<Object> namedBeans, Object obj, Set<Object> alreadyWritten)
namedBeans
Collection. The
nested Map representations are particularly suitable for use with with
XmlMarshaller
.namedBeans
- the Collection to add toobj
- object to make a presentable Map for, if it has a beanNamealreadyWritten
- Set of objects already made presentable whose addition to
namedBeans
should be suppressedprotected Map<String,Object> makePresentableMapFor(String field, Object object)
object
. The result is particularly suitable for use with with
XmlMarshaller
.field
- field name for objectobject
- object to make presentable map forprotected Map<String,Object> makePresentableMapFor(String field, Object object, String beanPath)
object
. The result is particularly suitable for use with with
XmlMarshaller
.field
- field name for objectobject
- object to make presentable map forbeanPathPrefix
- beanPath prefix to apply to sub fields browse linksprotected Map<String,Object> makePresentableMapFor(String field, Object object, HashSet<Object> alreadyWritten, String beanPathPrefix)
object
. The result is particularly suitable for use with with
XmlMarshaller
.field
- field name for objectobject
- object to make presentable map foralreadyWritten
- Set of objects already made presentable whose addition to the
Map should be suppressedbeanPathPrefix
- beanPath prefix to apply to sub fields browse linksprotected PropertyDescriptor[] getPropertyDescriptors(org.springframework.beans.BeanWrapperImpl bwrap)
bwrap
- protected void defaultUpdateDescriptor(PropertyDescriptor pd)
Copyright © 2003-2014 Internet Archive. All Rights Reserved.