public interface ContextResultURIConverterFactory
Currently ContextResultURIConverterFactory
is used in two different
contexts, and it receives critically different information as flags
argument for each context.
ResultURIConverter
for each of its children
- receives replayURIPrefix
as flags
.
(AccessPointAdapter
)ReplayParseContext
- receives resource type (such as "cs_"
) as flags
.
(ArchivalUrlSAXRewriteReplayRenderer
and
ArchivalURLJSStringTransformerReplayRenderer
).Using single interface in semantically different contexts leads to a lot of confusion and awkward code. Redesign is highly desired. Current plan is to do away with usage 2, and design better interface for usage 1.
ReplayParseContext#makeConverter
,
AccessPointAdapter.getUriConverter()
Modifier and Type | Method and Description |
---|---|
ResultURIConverter |
getContextConverter(String flags) |
ResultURIConverter getContextConverter(String flags)
Copyright © 2005–2015 IIPC. All rights reserved.