public interface SCU
Base SCU interface with methods available to any implementation.
The general call sequence of an SCU implementation is like:
createAssociationRequest()associate()release()| Modifier and Type | Method and Description |
|---|---|
void |
abort(int source,
int reason) |
void |
addSCUProgressListener(SCUProgressListener scuProgressListener)
adds a listener that can be informed of SCU message exchanges
|
AssociationResult |
associate()
executes an A-ASSOCIATE message exchange.
|
AssociationResult |
associate(AssociationRequest associationRequest)
executes an A-ASSOCIATE message exchange.
|
void |
cancel(boolean graceful)
Cancels the current and future SCU message exchanges.
|
AssociationRequest |
createAssociationRequest()
scans the input (if appropriate) and prepares a request that can be sent during association setup
|
int |
getConnectTimeout()
The connect timeout in milliseconds
|
int |
getMaxReceivePduSize()
the maximum pdu length that we are willing to receive.
|
int |
getMaxSendPduSize()
The maximum pdu length with which Dimse messages will be sent.
|
int |
getReadTimeout()
The read timeout in milliseconds
|
javax.net.SocketFactory |
getSocketFactory()
returns the currently configured socket factory
|
UserIdentityNegotiationRequest |
getUserIdentityNegotationRequest() |
boolean |
isCancelled()
has this SCU been cancelled ?
|
void |
release()
executes an A-RELEASE message exchange
|
void |
removeSCUProgressListener(SCUProgressListener scuProgressListener)
removes a registered progress listener
|
void |
setConnectTimeout(int connectTimeout) |
void |
setMaxReceivePduSize(int maxReceivePduSize) |
void |
setMaxSendPduSize(int maxSendPduSize) |
void |
setReadTimeout(int readTimeout) |
void |
setSocketFactory(javax.net.SocketFactory socketFactory)
set the socket factory and replaces the default socket factory.
|
void |
setUserIdentityNegotationRequest(UserIdentityNegotiationRequest userIdentityNegotationRequest) |
AssociationRequest createAssociationRequest() throws SCUException
SCUExceptionAssociationResult associate() throws SCUException, java.io.IOException
createAssociationRequest() has been executed first.SCUExceptionjava.io.IOExceptionAssociationResult associate(AssociationRequest associationRequest) throws SCUException, java.io.IOException
createAssociationRequest() has been executed first.SCUExceptionjava.io.IOExceptionvoid release()
throws SCUException,
java.io.IOException
SCUExceptionjava.io.IOExceptionvoid cancel(boolean graceful)
graceful - if true, the SCU will be cancelled after the current operation
and will release the association properly;
if false, the current operation will be interrupted
and the association will be aborted without a proper message exchangeboolean isCancelled()
cancel(boolean)void addSCUProgressListener(SCUProgressListener scuProgressListener)
scuProgressListener - the listenervoid removeSCUProgressListener(SCUProgressListener scuProgressListener)
scuProgressListener - the listenervoid abort(int source,
int reason)
throws java.io.IOException,
SCUException
java.io.IOExceptionSCUExceptionjavax.net.SocketFactory getSocketFactory()
void setSocketFactory(javax.net.SocketFactory socketFactory)
ConfigurableTLSSocketFactorysocketFactory - socketFactoryUserIdentityNegotiationRequest getUserIdentityNegotationRequest()
void setUserIdentityNegotationRequest(UserIdentityNegotiationRequest userIdentityNegotationRequest)
int getMaxSendPduSize()
void setMaxSendPduSize(int maxSendPduSize)
int getMaxReceivePduSize()
void setMaxReceivePduSize(int maxReceivePduSize)
int getConnectTimeout()
void setConnectTimeout(int connectTimeout)
int getReadTimeout()
void setReadTimeout(int readTimeout)