public abstract class AbstractVersionNegotiator extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String[] |
basicAuthorizationTokens |
protected CalculationCache<String,String> |
capabilitiesCache |
protected String |
currentVersion |
protected boolean |
headless |
protected String |
serviceName |
protected String[] |
supportedVersions |
| Constructor and Description |
|---|
AbstractVersionNegotiator(CalculationCache<String,String> capabilitiesCache)
Creates a new AbstractVersionNegotiator object.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
getCapabilitiesDocument(String link)
DOCUMENT ME!
|
protected String |
getDocumentVersion(StringBuilder document)
DOCUMENT ME!
|
protected String |
getOlderCapabilitiesDocument(String link)
Invokes the GetCapabilities operation of the server with an older version string.
|
protected String |
getVersionFromLink(String link)
DOCUMENT ME!
|
protected abstract void |
initVersion()
This m,ethod must be overidden by the sub classes and should initialize the constant SUPPORTED_VERSIONS.
|
protected StringBuilder |
readStringFromlink(String url)
read the document from the given link.
|
protected String[] supportedVersions
protected String currentVersion
protected String serviceName
protected boolean headless
protected String[] basicAuthorizationTokens
protected CalculationCache<String,String> capabilitiesCache
public AbstractVersionNegotiator(CalculationCache<String,String> capabilitiesCache)
capabilitiesCache - DOCUMENT ME!protected abstract void initVersion()
protected String getOlderCapabilitiesDocument(String link) throws MalformedURLException, Exception
link - DOCUMENT ME!MalformedURLException - DOCUMENT ME!Exception - DOCUMENT ME!protected String getCapabilitiesDocument(String link) throws MalformedURLException, Exception
link - DOCUMENT ME!MalformedURLException - DOCUMENT ME!Exception - DOCUMENT ME!protected String getVersionFromLink(String link)
link - DOCUMENT ME!protected String getDocumentVersion(StringBuilder document)
document - the GetCapabilities documentprotected StringBuilder readStringFromlink(String url) throws MalformedURLException, Exception
url - DOCUMENT ME!MalformedURLException - DOCUMENT ME!Exception - DOCUMENT ME!Copyright © 2012–2026 cismet GmbH. All rights reserved.