Package org.firebirdsql.gds.ng.wire
Interface FbWireAttachment
- 
- All Superinterfaces:
- java.lang.AutoCloseable,- ExceptionListenable,- FbAttachment
 - All Known Subinterfaces:
- FbWireDatabase,- FbWireService
 - All Known Implementing Classes:
- AbstractFbWireDatabase,- AbstractFbWireService,- V10Database,- V10Service,- V11Database,- V12Database,- V13Database,- V15Database,- V16Database,- V18Database,- V19Database
 
 public interface FbWireAttachment extends FbAttachment - Since:
- 3.0
- Author:
- Mark Rotteveel
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Interface Description static classFbWireAttachment.AcceptPacketStruct-like class, reduced equivalent of Firebird p_acpd so we can store data for handling op_cond_accept.
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidauthReceiveResponse(FbWireAttachment.AcceptPacket acceptPacket)Receive authentication response from the server.FbWireOperationsgetWireOperations()XdrStreamAccessgetXdrStreamAccess()GenericResponsereadGenericResponse(WarningMessageCallback callback)Convenience method to read a Response to a GenericResponse- 
Methods inherited from interface org.firebirdsql.gds.ng.listeners.ExceptionListenableaddExceptionListener, removeExceptionListener
 - 
Methods inherited from interface org.firebirdsql.gds.ng.FbAttachmentattach, close, forceClose, getDatatypeCoder, getEncoding, getEncodingFactory, getHandle, getNetworkTimeout, getServerVersion, isAttached, isLockedByCurrentThread, setNetworkTimeout, withLock
 
- 
 
- 
- 
- 
Method Detail- 
getXdrStreamAccessXdrStreamAccess getXdrStreamAccess() - Returns:
- Instance of XdrStreamAccessfor this attachment.
 
 - 
getWireOperationsFbWireOperations getWireOperations() - Returns:
- Instance of FbWireOperationsfor this attachment.
 
 - 
readGenericResponseGenericResponse readGenericResponse(WarningMessageCallback callback) throws java.sql.SQLException, java.io.IOException Convenience method to read a Response to a GenericResponse- Parameters:
- callback- Callback object for warnings,- nullfor default callback
- Returns:
- GenericResponse
- Throws:
- java.sql.SQLException- For errors returned from the server, or when attempting to read.
- java.io.IOException- For errors reading the response from the connection.
 
 - 
authReceiveResponsevoid authReceiveResponse(FbWireAttachment.AcceptPacket acceptPacket) throws java.io.IOException, java.sql.SQLException Receive authentication response from the server.This method is only relevant for protocol V13 or higher. - Parameters:
- acceptPacket- Packet with- op_cond_acceptdata, or- nullwhen the data should be read from the connection.
- Throws:
- java.io.IOException- For errors reading the response from the connection.
- java.sql.SQLException- For errors returned from the server, or when attempting to read.
 
 
- 
 
-