- cancel() - Method in class com.bytelightning.opensource.pokerface.TargetResponseConsumer
-
This method also notifies the ResponseProducer
about the cancellation by invoking our failed
method with an InterruptedIOException
.
- cancelWatch(Object) - Method in class com.bytelightning.opensource.pokerface.DirectoryWatchService
-
Cancel a previously established watch
- checkClientTrusted(X509Certificate[], String) - Method in class com.bytelightning.opensource.pokerface.X509TrustAllManager
-
- checkServerTrusted(X509Certificate[], String) - Method in class com.bytelightning.opensource.pokerface.X509TrustAllManager
-
- chooseClientAlias(String[], Principal[], Socket) - Method in class com.bytelightning.opensource.pokerface.PokerFaceKeyManager
-
- chooseEngineClientAlias(String[], Principal[], SSLEngine) - Method in class com.bytelightning.opensource.pokerface.PokerFaceKeyManager
-
- chooseEngineServerAlias(String, Principal[], SSLEngine) - Method in class com.bytelightning.opensource.pokerface.PokerFaceKeyManager
-
Always returns the hard coded alias specified in the constructor.
- chooseServerAlias(String, Principal[], Socket) - Method in class com.bytelightning.opensource.pokerface.PokerFaceKeyManager
-
Always returns the hard coded alias specified in the constructor.
- close() - Method in class com.bytelightning.opensource.pokerface.AbsClientRequestConsumer
-
This specialization currently does nothing.
- close() - Method in class com.bytelightning.opensource.pokerface.BufferContentProducer
-
This specialization closes the content buffer.
- close() - Method in class com.bytelightning.opensource.pokerface.BufferIOController
-
This method MUST be called to clean up any borrowed ByteBuffer
s.
- close() - Method in class com.bytelightning.opensource.pokerface.NJavascriptFunctionEntity
-
- close() - Method in class com.bytelightning.opensource.pokerface.RequestForScriptConsumer
-
This specialization currently does nothing.
- close() - Method in class com.bytelightning.opensource.pokerface.ResponseProducer
-
Close the content buffer.
- close() - Method in class com.bytelightning.opensource.pokerface.ScriptHelperImpl
-
Close out any resources that are owned by this object.
- close() - Method in class com.bytelightning.opensource.pokerface.TargetRequestProducer
-
Close the content buffer given to us by the RequestForTargetConsumer
.
- close() - Method in class com.bytelightning.opensource.pokerface.TargetResponseConsumer
-
- com.bytelightning.opensource.pokerface - package com.bytelightning.opensource.pokerface
-
- config(HierarchicalConfiguration) - Method in class com.bytelightning.opensource.pokerface.PokerFace
-
Configures all the needed components, but does not actually start the server.
- configureScripts(List<Path>, HierarchicalConfiguration, Path, boolean) - Method in class com.bytelightning.opensource.pokerface.PokerFace
-
If requested by the user, this method walks the script directory discovering, loading, compiling, and initialing an .js javascript files it finds in the specified directory or it's children.
- connectingReactor - Variable in class com.bytelightning.opensource.pokerface.PokerFace
-
- connectionDispatcher - Variable in class com.bytelightning.opensource.pokerface.PokerFace
-
- consumeContent(ContentDecoder, IOControl) - Method in class com.bytelightning.opensource.pokerface.AbsClientRequestConsumer
-
This method is only called if the request had content (e.g.
- consumeContent(ContentDecoder, IOControl) - Method in class com.bytelightning.opensource.pokerface.TargetResponseConsumer
-
This method is only called if the response had content (which it typically does).
- contentProducer - Variable in class com.bytelightning.opensource.pokerface.ResponseProducer
-
- context - Variable in class com.bytelightning.opensource.pokerface.AbsClientRequestConsumer
-
- context - Variable in class com.bytelightning.opensource.pokerface.ResponseProducer
-
- createBuffer() - Method in interface com.bytelightning.opensource.pokerface.ScriptHelper
-
Returns a ByteBuffer
that will be automatically cleaned up once the transaction completes.
- createBuffer() - Method in class com.bytelightning.opensource.pokerface.ScriptHelperImpl
-
- CreateHttpViaHeader(Header, ProtocolVersion) - Static method in class com.bytelightning.opensource.pokerface.TargetBase
-
Create an appropriate http 'Via' header as specified in (http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.45)
- generateRequest() - Method in class com.bytelightning.opensource.pokerface.TargetRequestProducer
-
- generateResponse() - Method in class com.bytelightning.opensource.pokerface.ResponseProducer
-
Someone else always generates the response and invokes one of our setResponse
or setException
methods.
- generateResponse() - Method in class com.bytelightning.opensource.pokerface.ScriptResponseProducer
-
Someone else always generates the response and invokes one of our setResponse
or setException
methods.
- getAcceptableLocales() - Method in interface com.bytelightning.opensource.pokerface.ScriptHelper
-
Return the language Locales accepted by the requesting client in order of preference (best to least).
- getAcceptableLocales() - Method in class com.bytelightning.opensource.pokerface.ScriptHelperImpl
-
- getAcceptedIssuers() - Method in class com.bytelightning.opensource.pokerface.X509TrustAllManager
-
- getByteBuffer() - Method in class com.bytelightning.opensource.pokerface.BufferIOController
-
Returns the ByteBuffer
, lazily obtaining one from the pool if need be.
- getCertificateChain(String) - Method in class com.bytelightning.opensource.pokerface.PokerFaceKeyManager
-
- getCharacterEncoding() - Method in interface com.bytelightning.opensource.pokerface.ScriptHelper
-
Returns the charset of the Content-Type header
- getCharacterEncoding() - Method in class com.bytelightning.opensource.pokerface.ScriptHelperImpl
-
- GetCharsetFromContentType(String) - Static method in class com.bytelightning.opensource.pokerface.ScriptHelperImpl
-
Parse the character encoding from the specified content type header.
- getClientAliases(String, Principal[]) - Method in class com.bytelightning.opensource.pokerface.PokerFaceKeyManager
-
- getContent() - Method in class com.bytelightning.opensource.pokerface.NJavascriptFunctionEntity
-
- getContentLength() - Method in class com.bytelightning.opensource.pokerface.NJavascriptFunctionEntity
-
- getException() - Method in class com.bytelightning.opensource.pokerface.AbsClientRequestConsumer
-
- getException() - Method in class com.bytelightning.opensource.pokerface.TargetResponseConsumer
-
This method returns null as any failure will have already been propagated to the ResponseProducer
- getHOSTName() - Method in interface com.bytelightning.opensource.pokerface.ScriptHelper
-
Returns the host name as seen by the calling client.
- getHOSTName() - Method in class com.bytelightning.opensource.pokerface.ScriptHelperImpl
-
- getHOSTPort() - Method in interface com.bytelightning.opensource.pokerface.ScriptHelper
-
Returns the host port as seen by the calling client.
- getHOSTPort() - Method in class com.bytelightning.opensource.pokerface.ScriptHelperImpl
-
- getHTTPDateFormater() - Method in interface com.bytelightning.opensource.pokerface.ScriptHelper
-
Get a new date formatter compatible with HTTP headers protocol.
- getHTTPDateFormater() - Method in class com.bytelightning.opensource.pokerface.ScriptHelperImpl
-
- GetHTTPDateFormater() - Static method in class com.bytelightning.opensource.pokerface.Utils
-
Get a new date formatter compatible with HTTP headers protocol.
- getLocalAddress() - Method in interface com.bytelightning.opensource.pokerface.ScriptHelper
-
Return the underlying local InetAddress
for this request / response transaction
- getLocalAddress() - Method in class com.bytelightning.opensource.pokerface.ScriptHelperImpl
-
- getLocalPort() - Method in interface com.bytelightning.opensource.pokerface.ScriptHelper
-
Return the underlying local socket port for this request / response transaction
- getLocalPort() - Method in class com.bytelightning.opensource.pokerface.ScriptHelperImpl
-
- getPool() - Method in class com.bytelightning.opensource.pokerface.BufferIOController
-
Returns the pool from which this IOEontroller allocates ByteBuffer
s.
- getPrefixDiscardCount() - Method in class com.bytelightning.opensource.pokerface.TargetDescriptor
-
Returns the number of prefix characters of the incoming request uri *path* that should be removed before appending the remaining characters to end of target + targetPath
.
- getPrivateKey(String) - Method in class com.bytelightning.opensource.pokerface.PokerFaceKeyManager
-
- getRemoteAddress() - Method in interface com.bytelightning.opensource.pokerface.ScriptHelper
-
Return the underlying remote InetAddress
for this request / response transaction
- getRemoteAddress() - Method in class com.bytelightning.opensource.pokerface.ScriptHelperImpl
-
- getRemotePort() - Method in interface com.bytelightning.opensource.pokerface.ScriptHelper
-
Return the underlying remote socket port for this request / response transaction
- getRemotePort() - Method in class com.bytelightning.opensource.pokerface.ScriptHelperImpl
-
- getResult() - Method in class com.bytelightning.opensource.pokerface.AbsClientRequestConsumer
-
Returns the ResponseProducer
that will ultimately send the result of this request/response transaction back to the client.
- getResult() - Method in class com.bytelightning.opensource.pokerface.TargetResponseConsumer
-
- getScheme() - Method in interface com.bytelightning.opensource.pokerface.ScriptHelper
-
Returns http or https scheme of this transaction
- getScheme() - Method in class com.bytelightning.opensource.pokerface.ScriptHelperImpl
-
- getServerAliases(String, Principal[]) - Method in class com.bytelightning.opensource.pokerface.PokerFaceKeyManager
-
- getTarget() - Method in class com.bytelightning.opensource.pokerface.TargetDescriptor
-
Returns the remote Target server FQDN
- getTarget() - Method in class com.bytelightning.opensource.pokerface.TargetRequestProducer
-
- getTargetPath() - Method in class com.bytelightning.opensource.pokerface.TargetDescriptor
-
Returns the path to a resource 'root' on the target
(which would typically be an empty string "", but is not required to be so).
- requestCompleted(HttpContext) - Method in class com.bytelightning.opensource.pokerface.AbsClientRequestConsumer
-
Invoked once the request has been fully received by this server.
- requestCompleted(HttpContext) - Method in class com.bytelightning.opensource.pokerface.TargetRequestProducer
-
- RequestForFileConsumer - Class in com.bytelightning.opensource.pokerface
-
Specialization of AbsClientRequestConsumer
to consume a client request for a local static file and which generates the ResponseProducer
.
- RequestForScriptConsumer - Class in com.bytelightning.opensource.pokerface
-
Specialization of AbsClientRequestConsumer
to consume a client request that will be processed by a JavaScript endpoint.
- RequestForTargetConsumer - Class in com.bytelightning.opensource.pokerface
-
Specialization of AbsClientRequestConsumer
to consume a client request that will be forwarded to a remote Target.
- RequestForTargetConsumer(HttpContext, HttpAsyncRequester, BasicNIOConnPool, Map<String, TargetDescriptor>, ConcurrentMap<String, HttpHost>, HttpRequest, BufferIOController, BufferIOController, ScriptObjectMirror) - Constructor for class com.bytelightning.opensource.pokerface.RequestForTargetConsumer
-
Primary constructor
- RequestHandler - Class in com.bytelightning.opensource.pokerface
-
Analyzes each new request from a client (the content of which will not yet be fully received),
checks for a matching JavaScript endpoint and invokes it's inspectRequest
method if it exist,
analyzes the script response (and if appropriate delegates further processing to the script),
otherwise resolves the remote Target (if any),
and finally creates either a RequestForScriptConsumer
or a RequestForTargetConsumer
to actually consume the request.
- RequestHandler(HttpAsyncRequester, BasicNIOConnPool, ObjectPool<ByteBuffer>, Path, Map<String, TargetDescriptor>, NavigableMap<String, ScriptObjectMirror>, ConcurrentMap<String, HttpHost>) - Constructor for class com.bytelightning.opensource.pokerface.RequestHandler
-
Primary constructor.
- requestReceived(HttpRequest) - Method in class com.bytelightning.opensource.pokerface.RequestForFileConsumer
-
Once we have fully received the request from the client, generate a response and tell the ResponseProducer
about it.
- requestReceived(HttpRequest) - Method in class com.bytelightning.opensource.pokerface.RequestForScriptConsumer
-
Since the RequestHandler
already asked the endpoint to evaluate the request, *and* since the scripts don't currently perform async loading of request content, this method does nothing.
- requestReceived(HttpRequest) - Method in class com.bytelightning.opensource.pokerface.RequestForTargetConsumer
-
Find a remote target that matches the requested uri, *or* return a 404 NOT_FOUND response if a mapping is not present.
- resetRequest() - Method in class com.bytelightning.opensource.pokerface.TargetRequestProducer
-
Does nothing as this class is not repeatable because it is created solely for this transaction.
- response - Variable in class com.bytelightning.opensource.pokerface.ResponseProducer
-
- responseCompleted(HttpContext) - Method in class com.bytelightning.opensource.pokerface.ResponseProducer
-
- responseCompleted(HttpContext) - Method in class com.bytelightning.opensource.pokerface.ScriptResponseProducer
-
Invoke the endpoint's responseCompleted function, and close out our ScriptHelper
.
- responseCompleted(HttpContext) - Method in class com.bytelightning.opensource.pokerface.TargetResponseConsumer
-
This method also lets the ResponseProducer
know that we have received all the content from the remote Target.
- ResponseDateInterceptor - Class in com.bytelightning.opensource.pokerface
-
Similar to org.apache.http.ResponseDate, this class adds the Date header to the outgoing responses.
- ResponseDateInterceptor() - Constructor for class com.bytelightning.opensource.pokerface.ResponseDateInterceptor
-
- ResponseProducer - Class in com.bytelightning.opensource.pokerface
-
Produce a response (back to the client) in response to the HttpRequest from the client.
- ResponseProducer(String, HttpContext, HttpAsyncContentProducer) - Constructor for class com.bytelightning.opensource.pokerface.ResponseProducer
-
Primary constructor.
- ResponseProducer(String, HttpContext, BufferIOController) - Constructor for class com.bytelightning.opensource.pokerface.ResponseProducer
-
Alternate constructor (content to be produced from the supplied IOControlled buffer.
- ResponseProducer(String, HttpContext) - Constructor for class com.bytelightning.opensource.pokerface.ResponseProducer
-
Alternate constructor (content producer to be extracted later from the HttpResponse entity).
- responseReceived(HttpResponse) - Method in class com.bytelightning.opensource.pokerface.TargetResponseConsumer
-
- role - Variable in class com.bytelightning.opensource.pokerface.ResponseProducer
-
- ScriptHelper - Interface in com.bytelightning.opensource.pokerface
-
Exposes a number of useful java based utilities to JavaScript endpoints.
- ScriptHelperImpl - Class in com.bytelightning.opensource.pokerface
-
Implementation of ScriptHelper
- ScriptHelperImpl(HttpRequest, HttpContext, ObjectPool<ByteBuffer>) - Constructor for class com.bytelightning.opensource.pokerface.ScriptHelperImpl
-
Primary constructor
- ScriptLogger - Static variable in interface com.bytelightning.opensource.pokerface.ScriptHelper
-
- ScriptResponseProducer - Class in com.bytelightning.opensource.pokerface
-
This ResponseProducer
specialization is responsible for invoking the JavaScript endpoint to produce a response,
translate that response (if need be) into an asynchronous form, and then send that data back to the client.
- ScriptResponseProducer(ScriptObjectMirror, HttpRequest, HttpContext, BufferIOController) - Constructor for class com.bytelightning.opensource.pokerface.ScriptResponseProducer
-
Primary constructor.
- scripts - Variable in class com.bytelightning.opensource.pokerface.PokerFace
-
- setException(Exception) - Method in class com.bytelightning.opensource.pokerface.ResponseProducer
-
Send back an appropriate response to the client.
- setReadingIOControl(IOControl) - Method in class com.bytelightning.opensource.pokerface.BufferIOController
-
This flow control method notifies us of the IOControl
that will be reading from our ByteBuffer
.
- setResponse(int, String) - Method in class com.bytelightning.opensource.pokerface.ResponseProducer
-
Send back the specified response to the client
- setResponse(HttpResponse) - Method in class com.bytelightning.opensource.pokerface.ResponseProducer
-
Determines the HttpResponse that will be sent back to the requesting client.
- setResponse(HttpResponse) - Method in class com.bytelightning.opensource.pokerface.ScriptResponseProducer
-
Determines the HttpResponse that will be sent back to the requesting client.
- setTrigger(HttpAsyncExchange) - Method in class com.bytelightning.opensource.pokerface.ResponseProducer
-
Called from the RequestHandler.handle
method this method keeps track of the supplied trigger.
- setTrigger(HttpAsyncExchange) - Method in class com.bytelightning.opensource.pokerface.ScriptResponseProducer
-
Triggers the generateResponse
method and begins responding to the client.
- setupComplete() - Method in interface com.bytelightning.opensource.pokerface.SetupCompleteCallback
-
- SetupCompleteCallback - Interface in com.bytelightning.opensource.pokerface
-
Invoked by script endpoints to let PokerFace know they have completed their setup process.
- setupFailed(String) - Method in interface com.bytelightning.opensource.pokerface.SetupCompleteCallback
-
- setWritingIOControl(IOControl) - Method in class com.bytelightning.opensource.pokerface.BufferIOController
-
This flow control method notifies us of the IOControl
that will be writing to our ByteBuffer
.
- start() - Method in class com.bytelightning.opensource.pokerface.PokerFace
-
All user definable configuration has occurred, fire up the server.
- stop() - Method in class com.bytelightning.opensource.pokerface.PokerFace
-
Shut it all down.