/** {@inheritDoc} */ public int readInt() throws IOException { return unmarshaller.readInt(); }
/** {@inheritDoc} */ public int readInt() throws IOException { return input.readInt(); }
public int readInt() throws IOException { return unmarshaller.readInt(); }
protected ReceivedTransaction readTransaction(Unmarshaller unmarshaller) throws IOException { int type = unmarshaller.readByte(); if (type == 0) { return null; } else if (type == 1 || type == 2) { int formatId = unmarshaller.readInt(); int len = unmarshaller.readInt(); byte[] globalId = new byte[len]; unmarshaller.readFully(globalId); len = unmarshaller.readInt(); byte[] branchId = new byte[len]; unmarshaller.readFully(branchId); SimpleXid simpleXid = new SimpleXid(formatId, globalId, branchId); if (type == 2) { return new ReceivedTransaction(simpleXid, unmarshaller.readInt(), true); } return new ReceivedTransaction(simpleXid, 0, false); } else { throw EjbHttpClientMessages.MESSAGES.invalidTransactionType(type); } }
throw new IOException("Unexpected paramType"); int count = unmarshaller.readInt(); String[] attributes = new String[count]; for (int i = 0; i < count; i++) {
Unmarshaller unmarshaller = targetContext.createUnmarshaller(createMarshallingConf()); unmarshaller.start(new InputStreamByteInput(result)); int length = unmarshaller.readInt(); Xid[] ret = new Xid[length]; for(int i = 0; i < length; ++ i) { int formatId = unmarshaller.readInt(); int len = unmarshaller.readInt(); byte[] globalId = new byte[len]; unmarshaller.readFully(globalId); len = unmarshaller.readInt(); byte[] branchId = new byte[len]; unmarshaller.readFully(branchId);
Unmarshaller unmarshaller = targetContext.createUnmarshaller(createMarshallingConf()); unmarshaller.start(new InputStreamByteInput(result)); int formatId = unmarshaller.readInt(); int len = unmarshaller.readInt(); byte[] globalId = new byte[len]; unmarshaller.readFully(globalId); len = unmarshaller.readInt(); byte[] branchId = new byte[len]; unmarshaller.readFully(branchId);
throw new IOException("Unexpected paramType"); int count = unmarshaller.readInt(); String[] attributes = new String[count]; for (int i = 0; i < count; i++) {
if (paramType == INTEGER) { remoteNotification = true; listenerId = unmarshaller.readInt(); } else if (paramType == OBJECT_NAME) { remoteNotification = false;
if (paramType == INTEGER) { remoteNotification = true; listenerId = unmarshaller.readInt(); } else if (paramType == OBJECT_NAME) { remoteNotification = false;
final int len = unmarshaller.readInt(); final Class<?>[] interfaces = new Class<?>[len]; for (int i = 0; i < len; i ++) {
@Override public final void handleRequest(HttpServerExchange exchange) throws Exception { ContentType contentType = ContentType.parse(exchange.getRequestHeaders().getFirst(Headers.CONTENT_TYPE)); if (contentType == null || contentType.getVersion() != 1 || !contentType.getType().equals(TransactionConstants.XID)) { exchange.setStatusCode(StatusCodes.BAD_REQUEST); HttpRemoteTransactionMessages.MESSAGES.debugf("Exchange %s has incorrect or missing content type", exchange); return; } try { Unmarshaller unmarshaller = MARSHALLER_FACTORY.createUnmarshaller(createMarshallingConf()); unmarshaller.start(new InputStreamByteInput(exchange.getInputStream())); int formatId = unmarshaller.readInt(); int len = unmarshaller.readInt(); byte[] globalId = new byte[len]; unmarshaller.readFully(globalId); len = unmarshaller.readInt(); byte[] branchId = new byte[len]; unmarshaller.readFully(branchId); SimpleXid simpleXid = new SimpleXid(formatId, globalId, branchId); unmarshaller.finish(); ImportResult<LocalTransaction> transaction = transactionContext.findOrImportTransaction(simpleXid, 0); transaction.getTransaction().performFunction((ExceptionBiFunction<ImportResult<LocalTransaction>, HttpServerExchange, Void, Exception>) (o, exchange2) -> { handleImpl(exchange2, o); return null; }, transaction, exchange); } catch (Exception e) { sendException(exchange, StatusCodes.INTERNAL_SERVER_ERROR, e); } }
identifier = unmarshaller.readObject(EJBIdentifier.class); methodLocator = unmarshaller.readObject(EJBMethodLocator.class); int identityId = unmarshaller.readInt(); identity = identityId == 0 ? connection.getLocalIdentity() : connection.getLocalIdentity(identityId); } else {
/** {@inheritDoc} */ public int readInt() throws IOException { return unmarshaller.readInt(); }
/** {@inheritDoc} */ public int readInt() throws IOException { return unmarshaller.readInt(); }
/** {@inheritDoc} */ public int readInt() throws IOException { return unmarshaller.readInt(); }