public class V10Service extends AbstractFbWireService implements FbWireService
FbWireService implementation for the V10 wire protocolFbWireAttachment.AcceptPacketprotocolDescriptor, wireOperationsserviceListenerDispatcherconnection, exceptionListenerDispatcher| Constructor and Description |
|---|
V10Service(WireServiceConnection connection,
ProtocolDescriptor descriptor) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
afterAttachActions() |
void |
attach()
Attach to the attachment type.
|
void |
authReceiveResponse(FbWireAttachment.AcceptPacket acceptPacket)
Receive authentication response from the server.
|
byte[] |
getServiceInfo(ServiceParameterBuffer serviceParameterBuffer,
ServiceRequestBuffer serviceRequestBuffer,
int maxBufferLength)
Performs a service info request (service query.
|
protected void |
internalDetach()
Actual implementation of service detach.
|
protected void |
processAttachResponse(GenericResponse genericResponse)
Processes the response from the server to the attach or create operation.
|
protected void |
sendAttachToBuffer(ServiceParameterBuffer spb)
Sends the buffer for op_service_attach
|
void |
startServiceAction(ServiceRequestBuffer serviceRequestBuffer)
Starts a service action.
|
checkAttached, checkConnected, closeConnection, createServiceParameterBuffer, createServiceRequestBuffer, finalize, forceClose, getHandle, getXdrIn, getXdrOut, getXdrStreamAccess, isAttached, readGenericResponse, setNetworkTimeoutaddServiceListener, close, getDescribeServiceRequestBuffer, getServiceInfo, getServiceInformationProcessor, getServiceWarningCallback, removeServiceListeneraddExceptionListener, getDatatypeCoder, getEncoding, getEncodingFactory, getNetworkTimeout, getServerVersion, getServerVersionInformation, isLockedByCurrentThread, removeExceptionListener, safelyDetach, setAttached, setDetached, setServerVersion, withLockclone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddServiceListener, createServiceParameterBuffer, createServiceRequestBuffer, getHandle, getServiceInfo, removeServiceListenergetXdrStreamAccess, readGenericResponseclose, forceClose, getDatatypeCoder, getEncoding, getEncodingFactory, getNetworkTimeout, getServerVersion, isAttached, isLockedByCurrentThread, setNetworkTimeout, withLockaddExceptionListener, removeExceptionListenerpublic V10Service(WireServiceConnection connection, ProtocolDescriptor descriptor)
public void attach()
throws java.sql.SQLException
FbAttachmentattach in interface FbAttachmentjava.sql.SQLExceptionprotected void processAttachResponse(GenericResponse genericResponse)
genericResponse - GenericResponse received from the server.protected void afterAttachActions()
throws java.sql.SQLException
java.sql.SQLExceptionprotected void sendAttachToBuffer(ServiceParameterBuffer spb) throws java.sql.SQLException, java.io.IOException
spb - Service parameter bufferjava.sql.SQLException - If the connection is not openjava.io.IOException - For errors writing to the connectionprotected void internalDetach()
throws java.sql.SQLException
AbstractFbService
Implementations of this method should only be called from AbstractFbService.close(), and should not
notify service listeners of the service ServiceListener.detaching(FbService) and
ServiceListener.detached(FbService) events.
internalDetach in class AbstractFbService<WireServiceConnection>java.sql.SQLExceptionpublic byte[] getServiceInfo(ServiceParameterBuffer serviceParameterBuffer, ServiceRequestBuffer serviceRequestBuffer, int maxBufferLength) throws java.sql.SQLException
FbServicegetServiceInfo in interface FbServiceserviceParameterBuffer - Service parameters (can be null)serviceRequestBuffer - Service request infomaxBufferLength - Maximum response buffer length to usemaxBufferLengthjava.sql.SQLException - For errors retrieving the information.public void startServiceAction(ServiceRequestBuffer serviceRequestBuffer) throws java.sql.SQLException
FbServicestartServiceAction in interface FbServiceserviceRequestBuffer - Service action request detailsjava.sql.SQLException - For errors starting the service action.public final void authReceiveResponse(FbWireAttachment.AcceptPacket acceptPacket) throws java.io.IOException, java.sql.SQLException
FbWireAttachmentThis method is only relevant for protocol V13 or higher.
authReceiveResponse in interface FbWireAttachmentacceptPacket - Packet with op_cond_accept data, or null when the data should be read from the
connection.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.Copyright © 2001-2023 Jaybird (Firebird JDBC) team. All rights reserved.