All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ociweb.pronghorn.network.http.HTTPClientConnection Maven / Gradle / Ivy

The newest version!
package com.ociweb.pronghorn.network.http;

import java.io.IOException;

import javax.net.ssl.SSLEngine;

import com.ociweb.pronghorn.network.ClientConnection;
import com.ociweb.pronghorn.struct.StructRegistry;
import com.ociweb.pronghorn.util.TrieParser;

public class HTTPClientConnection extends ClientConnection {

	private final StructRegistry schema;
	public final TrieParser headerParser;
	
	public HTTPClientConnection(SSLEngine engine, CharSequence host, 
			 int hostId, int port, int sessionId, int pipeIdx,
			 long conId, 
			 StructRegistry schema, int structId, TrieParser headerParser) throws IOException {
		super(engine, host, hostId, port, sessionId, pipeIdx, conId, structId);
		this.schema = schema;
		this.headerParser = headerParser;
		
		
	}
	
	public  T associatedFieldObject(long fieldToken) {
		return schema.getAssociatedObject(fieldToken);
	}

	public int totalSizeOfIndexes() {
		return schema.totalSizeOfIndexes(structureId);
	}

	public TrieParser headerParser() {
		return headerParser;
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy