public class NDRConnection
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
NDRConnection() |
|
NDRConnection(java.lang.String _serviceURI) |
|
NDRConnection(java.lang.String _serviceURI,
boolean _sslFlag) |
Modifier and Type | Method and Description |
---|---|
NDRAPIProxy |
connect()
Connect via this NDR connection.
|
java.lang.String |
getAgentHandle()
Get the NDR agentHandle for this connection object.
|
java.lang.String |
getCanonicalHeader()
Get the canonical header for this connection object.
|
java.lang.String |
getConnection()
Retrieve the URL for this connection.
|
java.lang.String |
getContent() |
java.lang.String |
getHeaderValue(java.lang.String key)
Get a header value for the given key.
|
java.io.File |
getKeyFile() |
java.lang.Exception |
getLastError() |
java.security.PrivateKey |
getPrivateKeyObject()
Get the private key for this connection.
|
java.lang.String |
getServer()
Get the server for this object.
|
java.lang.String |
getSignedHeader()
Get the signed header ( canonical + x-nsdl-auth ).
|
boolean |
isConnectionOK()
Determine if the server for this connection is responding
and operational.
|
java.lang.String |
request() |
java.lang.String |
request(java.lang.String _content) |
java.lang.String |
requestGET(java.lang.String _content) |
java.lang.String |
requestGET(java.lang.String _content,
boolean _withParameters) |
void |
setAgentHandle(java.lang.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(java.lang.String _url)
Set the connection for this object give a url.
|
void |
setContent(java.lang.String _requestContent) |
void |
setKeyFile(java.io.File f) |
void |
setServer(java.lang.String _server)
Set the server for this object.
|
void |
setTimeout(int millisecs) |
protected NDRConnection() throws java.lang.Exception
java.lang.Exception
public NDRConnection(java.lang.String _serviceURI) throws java.lang.Exception
java.lang.Exception
public NDRConnection(java.lang.String _serviceURI, boolean _sslFlag) throws java.lang.Exception
java.lang.Exception
public java.io.File getKeyFile()
public void setKeyFile(java.io.File f)
public java.lang.String getServer()
public void setServer(java.lang.String _server)
_server
- - the serverpublic java.lang.String getAgentHandle()
public void setAgentHandle(java.lang.String _handle)
_handle
- public java.lang.Exception getLastError()
public boolean isConnectionOK()
public java.security.PrivateKey getPrivateKeyObject()
PrivateKey
object for this connection.public java.lang.String getConnection()
public void setConnection(java.lang.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 java.lang.String getCanonicalHeader()
public java.lang.String getSignedHeader()
public java.lang.String getHeaderValue(java.lang.String key)
key
- - the key of interestpublic void setContent(java.lang.String _requestContent)
public java.lang.String getContent()
public java.lang.String requestGET(java.lang.String _content)
public java.lang.String requestGET(java.lang.String _content, boolean _withParameters)
public java.lang.String request() throws java.lang.Exception
java.lang.Exception
public java.lang.String request(java.lang.String _content) throws java.lang.Exception
java.lang.Exception