|
Esri Geoportal Server 1.2.9
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.esri.gpt.agp.client.AgpConnection
public class AgpConnection
An ArcGIS Portal connection.
Constructor Summary | |
---|---|
AgpConnection()
Default constructor. |
Method Summary | |
---|---|
void |
appendToken(StringBuilder params)
Appends the token parameter to a URL buffer. |
void |
close()
Closes any open resources. |
AgpClient |
ensureClient()
Ensures the existence of a client. |
void |
generateToken()
Generates a security token. |
AgpClient |
getClient()
Gets the client. |
AgpContext |
getContext()
Gets the context. |
String |
getHost()
Gets the host. |
int |
getPort()
Gets the port. |
AgpToken |
getToken()
Gets the token. |
AgpTokenCriteria |
getTokenCriteria()
Gets the criteria to use when generating a security token. |
String |
getWebContext()
Gets a web context. |
String |
makeBaseUrl(String protocol)
Makes the base url. |
String |
makeGenerateTokenUrl()
Makes the generate token url. |
AgpProperties |
makeRequestHeaderProperties()
Makes properties for the request header. |
String |
makeSharingUrl()
Makes the sharing url. |
protected AgpClient |
newAgpClient()
Create new instance of AgpClient |
void |
setClient(AgpClient client)
Sets the client. |
void |
setContext(AgpContext context)
Sets the context. |
void |
setHost(String host)
Sets the host. |
void |
setPort(int port)
Sets the port. |
void |
setToken(AgpToken token)
Sets the token. |
void |
setTokenCriteria(AgpTokenCriteria tokenCriteria)
Sets the criteria to use when generating a security token. |
void |
setWebContext(String webContext)
Sets web context. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AgpConnection()
Method Detail |
---|
public AgpClient getClient()
public void setClient(AgpClient client)
client
- the clientpublic AgpContext getContext()
public void setContext(AgpContext context)
context
- the contextpublic String getHost()
public void setHost(String host)
host
- the hostpublic String getWebContext()
null
if no web contextpublic void setWebContext(String webContext)
null
.
If web context is a non empty string it will be assured that it has "/" in front of it.
webContext
- web contextpublic int getPort()
public void setPort(int port)
port
- the portpublic AgpToken getToken()
public void setToken(AgpToken token)
token
- the tokenpublic AgpTokenCriteria getTokenCriteria()
public void setTokenCriteria(AgpTokenCriteria tokenCriteria)
tokenCriteria
- the token criteriapublic void appendToken(StringBuilder params)
params
- the bufferpublic void close()
public AgpClient ensureClient()
public void generateToken() throws Exception
Exception
public String makeBaseUrl(String protocol)
public String makeGenerateTokenUrl()
public AgpProperties makeRequestHeaderProperties()
public String makeSharingUrl()
protected AgpClient newAgpClient()
AgpClient
|
Esri Geoportal Server 1.2.9
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |