- public interface IRIDMapper
- NW04, SPS5
a service interface that can be implemented by an
the rendering process, classes request mappers for the
instances they need to persist on the html-page. So instead that many classes
write the complete RID on the page, they all just write the (shorter) mapping
on the page.
When the user clicked something on the html-page, the receiving class will
getRID(Sting mapper) method to retrieve the actual RID.
So the implementing class has to ensure that the mapping will survive the
public String getMapper(RID rid)
- to be used during the rendering process.
rid - the rid of the resource that a mapping is needed for. Must not
null. The RID should not have to be encoded.
- a (shorter) representation of the given RID. If several requests
for the same
RID have been received, they should all return
the same result.
public RID getRID(String mapper)
- to be used when an event has been received.
mapper - the mapper that has been created using the
method. Must not be
- the RID as it has been provided in the
ridProvided.equals(ridReturned) == true
If no RID exists for this mapper, a