Tabnine Logo
ServerConnectionStruct
Code IndexAdd Tabnine to your IDE (free)

How to use
ServerConnectionStruct
in
com.ociweb.pronghorn.network

Best Java code snippets using com.ociweb.pronghorn.network.ServerConnectionStruct (Showing top 9 results out of 315)

origin: oci-pronghorn/Pronghorn

public HTTPServerConfigImpl(int bindPort, 
              PipeConfigManager pcmIn,
              PipeConfigManager pcmOut,
              StructRegistry recordTypeData) {
  this.bindPort = bindPort;
  if (bindPort<=0 || (bindPort>=(1<<16))) {
    throw new UnsupportedOperationException("invalid port "+bindPort);
  }
  this.pcmIn = pcmIn;
  this.pcmOut = pcmOut;

  //NOTE: this is set at the minimum sizes to support example, template and favicon.ico files
  this.pcmOut.ensureSize(ServerResponseSchema.class, 4, Math.max(ICO_FILE_SIZE, maxResponseSize));	
  
  this.scs = new ServerConnectionStruct(recordTypeData);
  beginDeclarations();
}

origin: oci-pronghorn/Pronghorn

@Override
public boolean hasHeadersToEcho() {
  return scs.hasHeadersToEcho();
}

origin: oci-pronghorn/Pronghorn

@Override
public HTTPServerConfig echoHeaders(int maxSingleHeaderLength, HTTPHeader... headers) {
  scs.headersToEcho(maxSingleHeaderLength, headers);
  return this;
  
}
origin: oci-pronghorn/Pronghorn

this.connectionStruct().inFlightPayloadSize());
origin: oci-pronghorn/Pronghorn

if ((echoIndex = serverConnection.scs.isEchoHeader(header)) >= 0 ) {
origin: oci-pronghorn/GreenLightning

int spaceForEchos = serverCoord.connectionStruct().inFlightPayloadSize();
origin: oci-pronghorn/Pronghorn

private int echoHeaders(DataOutputBlobWriter<NetPayloadSchema> outputStream, int len, final int blobMask,
    byte[] blob, final int bytePosition, ChannelReader reader) {
  HTTPHeader[] headersToEcho = conStruct.headersToEcho();
   if (null!=headersToEcho) {
     int newLinePos = (bytePosition+len-2);
     assert(blob[newLinePos&blobMask]=='\r');
     assert(blob[(1+newLinePos)&blobMask]=='\n');						 
     if (blob[newLinePos&blobMask]=='\r') {
       len-=2;//confirm it is \r\n? add assert!
       DataOutputBlobWriter.write(outputStream, blob, bytePosition, len, blobMask);
       len = 0;//so the following write will not write a second time.
       for(int i=0; i<headersToEcho.length; i++) {
         HTTPHeader header = headersToEcho[i];
      
         if (!reader.structured().isNull(header)) {	
           System.err.println("echo header "+header);
           spec.writeHeader(outputStream, header, reader.structured().read(header));
         }
         //TODO: confirm works with chunked and not
                }
       outputStream.write(BYTES_NEWLINE);
     }
   }
  return len;
}
origin: oci-pronghorn/Pronghorn

  serverConfig.ensureServerCanWrite(SSLUtil.MinTLSBlock);
ServerConnectionStruct scs = new ServerConnectionStruct(gm.recordTypeData);
ServerCoordinator serverCoord = new ServerCoordinator(tlsCertificates,
        bindHost, port, scs,                                
origin: oci-pronghorn/Pronghorn

HTTPHeader[] toEcho = scs.headersToEcho();
if (null != toEcho) {
  int h = toEcho.length;
com.ociweb.pronghorn.networkServerConnectionStruct

Most used methods

  • inFlightPayloadSize
  • <init>
  • hasHeadersToEcho
  • headersToEcho
  • isEchoHeader

Popular in Java

  • Parsing JSON documents to java classes using gson
  • addToBackStack (FragmentTransaction)
  • requestLocationUpdates (LocationManager)
  • setContentView (Activity)
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Reference (javax.naming)
  • JTextField (javax.swing)
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now