|
Esri Geoportal Server 1.2.2
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.esri.gpt.catalog.arcgis.agportal.publication.AgpBaseRequest
public abstract class AgpBaseRequest
Base ArcGIS Portal request.
Nested Class Summary | |
---|---|
protected static class |
AgpBaseRequest.AttrMap
|
static class |
AgpBaseRequest.ItemDesc
Item description. |
static class |
AgpBaseRequest.ItemEntry
Item entry |
static class |
AgpBaseRequest.ItemType
Item type. |
Field Summary | |
---|---|
protected CredentialProvider |
credentialProvider
|
protected EndPoint |
ep
|
protected RequestContext |
requestContext
|
protected static XsltTemplates |
XSLTTEMPLATES
|
Constructor Summary | |
---|---|
AgpBaseRequest(RequestContext requestContext,
CredentialProvider credtialProvider,
EndPoint endPoint)
Creates instance of the request. |
Method Summary | |
---|---|
protected void |
checkError(String response)
Checks response for errors. |
protected void |
execute(HttpClientRequest request)
Executes HTTP request. |
protected static CredentialProvider |
extractCredentialProvider(RequestContext ctx)
Extracts credential provider for ArcGIS Portal from configuration via context. |
protected Map<String,List<String>> |
extractEsriItemAttributes(Node esriItemInfo)
Extracts ESRI item attributes. |
protected String |
extractId(String response)
Gets newly created document response |
protected Node |
extractItemInfo(String metadata)
Extracts ESRI Item Information from metadata. |
protected String |
fetchToken()
Fetch ArcGIS portal token. |
protected XsltTemplate |
getCompiledTemplate(String xsltPath)
Gets a compiled XSLT template. |
protected String |
getFolderUrl(String folderId)
Gets folder URL. |
protected String |
getItemUrl(String folderId,
String itemId)
Gets item URL. |
protected void |
processEsriItemAttributes(MultiPartContentProvider provider,
Map<String,List<String>> attributes)
Process attributes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static XsltTemplates XSLTTEMPLATES
protected CredentialProvider credentialProvider
protected RequestContext requestContext
protected EndPoint ep
Constructor Detail |
---|
public AgpBaseRequest(RequestContext requestContext, CredentialProvider credtialProvider, EndPoint endPoint)
requestContext
- request contextendPoint
- ArcGIS Portal end pointcredtialProvider
- credential providerMethod Detail |
---|
protected String fetchToken() throws AgpServerException, AgpPublishException
IOException
- if communication with the server fails
org.json.JSONException
- if unable to parse server response
AgpServerException
AgpPublishException
protected void execute(HttpClientRequest request) throws AgpServerException, AgpPublishException
request
- HTTP client request
AgpServerException
- server exception
AgpPublishException
- publish exceptionprotected static CredentialProvider extractCredentialProvider(RequestContext ctx)
ctx
- request context
protected Node extractItemInfo(String metadata) throws AgpPublishException
metadata
- metadata
AgpPublishException
- if extracting ESRI Item Information failsprotected Map<String,List<String>> extractEsriItemAttributes(Node esriItemInfo)
esriItemInfo
- DOM node with ESRI item info
protected void processEsriItemAttributes(MultiPartContentProvider provider, Map<String,List<String>> attributes) throws AgpPublishException
provider
- attributes
-
AgpPublishException
protected void checkError(String response) throws AgpServerException
response
- response
IOException
- if error found in the response
AgpServerException
protected String extractId(String response) throws org.json.JSONException
response
- response
org.json.JSONException
protected XsltTemplate getCompiledTemplate(String xsltPath) throws TransformerException
xsltPath
- the path to an XSLT
IOException
- if an IO exception occurs
TransformerException
- if a transformation exception occursprotected String getFolderUrl(String folderId)
folderId
- folder id
protected String getItemUrl(String folderId, String itemId)
folderId
- folder nameitemId
- item id
|
Esri Geoportal Server 1.2.2
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |