|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.dlese.dpc.ndr.connection.NDRConnection
public class NDRConnection
Constructor Summary | |
---|---|
protected |
NDRConnection()
|
|
NDRConnection(String _serviceURI)
|
|
NDRConnection(String _serviceURI,
boolean _sslFlag)
|
Method Summary | |
---|---|
NDRAPIProxy |
connect()
Connect via this NDR connection. |
String |
getAgentHandle()
Get the NDR agentHandle for this connection object. |
String |
getCanonicalHeader()
Get the canonical header for this connection object. |
String |
getConnection()
Retrieve the URL for this connection. |
String |
getContent()
|
String |
getHeaderValue(String key)
Get a header value for the given key. |
File |
getKeyFile()
|
Exception |
getLastError()
|
PrivateKey |
getPrivateKeyObject()
Get the private key for this connection. |
String |
getServer()
Get the server for this object. |
String |
getSignedHeader()
Get the signed header ( canonical + x-nsdl-auth ). |
boolean |
isConnectionOK()
Determine if the server for this connection is responding and operational. |
String |
request()
|
String |
request(String _content)
|
String |
requestGET(String _content)
|
String |
requestGET(String _content,
boolean _withParameters)
|
void |
setAgentHandle(String _handle)
Set the NDR connection agentHandle for this object. |
void |
setCanonicalHeader(boolean signed)
Set the NDR specified canonical header for this connection. |
void |
setConnection(String _url)
Set the connection for this object give a url. |
void |
setContent(String _requestContent)
|
void |
setKeyFile(File f)
|
void |
setServer(String _server)
Set the server for this object. |
void |
setTimeout(int millisecs)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected NDRConnection() throws Exception
Exception
public NDRConnection(String _serviceURI) throws Exception
Exception
public NDRConnection(String _serviceURI, boolean _sslFlag) throws Exception
Exception
Method Detail |
---|
public File getKeyFile()
public void setKeyFile(File f)
public String getServer()
public void setServer(String _server)
_server
- - the serverpublic String getAgentHandle()
public void setAgentHandle(String _handle)
_handle
- public Exception getLastError()
public boolean isConnectionOK()
public PrivateKey getPrivateKeyObject()
PrivateKey
object for this connection.public String getConnection()
public void setConnection(String _url)
url
- public void setTimeout(int millisecs)
public NDRAPIProxy connect()
public void setCanonicalHeader(boolean signed)
http://ndr.comm.nsdl.com
.
signed
- - set the canonical x-ndsl-auth property or notpublic String getCanonicalHeader()
public String getSignedHeader()
public String getHeaderValue(String key)
key
- - the key of interest
public void setContent(String _requestContent)
public String getContent()
public String requestGET(String _content)
public String requestGET(String _content, boolean _withParameters)
public String request() throws Exception
Exception
public String request(String _content) throws Exception
Exception
|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |