A B C D E F G H I M N P R S T U

A

AbstractHandlerHook - Class in com.continuuity.http
A base implementation of HandlerHook that provides no-op for both HandlerHook.preCall(org.jboss.netty.handler.codec.http.HttpRequest, HttpResponder, HandlerInfo) and HandlerHook.postCall(org.jboss.netty.handler.codec.http.HttpRequest, org.jboss.netty.handler.codec.http.HttpResponseStatus, HandlerInfo) methods.
AbstractHandlerHook() - Constructor for class com.continuuity.http.AbstractHandlerHook
 
AbstractHttpHandler - Class in com.continuuity.http
A base implementation of HttpHandler that provides a method for sending a request to other handlers that exist in the same server.
AbstractHttpHandler() - Constructor for class com.continuuity.http.AbstractHttpHandler
 
add(String, T) - Method in class com.continuuity.http.PatternPathRouterWithGroups
Add a source and destination.
addHttpHandlers(Iterable<? extends HttpHandler>) - Method in class com.continuuity.http.NettyHttpService.Builder
Add HttpHandlers that service the request.

B

BasicHandlerContext - Class in com.continuuity.http
BasicHandlerContext returns an empty runtime arguments.
BasicHandlerContext(HttpResourceHandler) - Constructor for class com.continuuity.http.BasicHandlerContext
 
BasicHttpResponder - Class in com.continuuity.http
HttpResponder responds back to the client that initiated the request.
BasicHttpResponder(Channel, boolean) - Constructor for class com.continuuity.http.BasicHttpResponder
 
BasicInternalHttpResponse - Class in com.continuuity.http
Class that stores the response body in memory or as a file.
BasicInternalHttpResponse(int, InputSupplier<? extends InputStream>) - Constructor for class com.continuuity.http.BasicInternalHttpResponse
 
BodyConsumer - Class in com.continuuity.http
HttpHandler would extend this abstract class and implement methods to stream the body directly.
BodyConsumer() - Constructor for class com.continuuity.http.BodyConsumer
 
build() - Method in class com.continuuity.http.NettyHttpService.Builder
 
builder() - Static method in class com.continuuity.http.NettyHttpService
 

C

channelConnected(ChannelHandlerContext, ChannelStateEvent) - Method in class com.continuuity.http.RequestRouter
 
chunk(ChannelBuffer, HttpResponder) - Method in class com.continuuity.http.BodyConsumer
Http request content will be streamed directly to this method.
com.continuuity.http - package com.continuuity.http
Service and components to build Netty based Http web service.
create() - Static method in class com.continuuity.http.PatternPathRouterWithGroups
 

D

destroy(HandlerContext) - Method in class com.continuuity.http.AbstractHttpHandler
 
destroy(HandlerContext) - Method in interface com.continuuity.http.HttpHandler
destroy method will be called before shutdown.
destroy(HandlerContext) - Method in class com.continuuity.http.HttpResourceHandler
 

E

enableSSL(File, String, String) - Method in class com.continuuity.http.NettyHttpService.Builder
Enable SSL by using the provided SSL information
exceptionCaught(ChannelHandlerContext, ExceptionEvent) - Method in class com.continuuity.http.RequestRouter
 

F

finished(HttpResponder) - Method in class com.continuuity.http.BodyConsumer
This is called on the receipt of the last HttpChunk.

G

getBindAddress() - Method in class com.continuuity.http.NettyHttpService
 
getDestination() - Method in class com.continuuity.http.PatternPathRouterWithGroups.RoutableDestination
 
getDestinationMethod(HttpRequest, HttpResponder) - Method in class com.continuuity.http.HttpResourceHandler
Call the appropriate handler for handling the httprequest.
getDestinations(String) - Method in class com.continuuity.http.PatternPathRouterWithGroups
Get a list of destinations and the values matching templated parameter for the given path.
getGroupNameValues() - Method in class com.continuuity.http.PatternPathRouterWithGroups.RoutableDestination
 
getHandlerName() - Method in class com.continuuity.http.HandlerInfo
 
getHttpHandler() - Method in class com.continuuity.http.HttpResourceModel
 
getHttpMethod() - Method in class com.continuuity.http.HttpResourceModel
 
getHttpResourceHandler() - Method in class com.continuuity.http.BasicHandlerContext
 
getHttpResourceHandler() - Method in interface com.continuuity.http.HandlerContext
 
getInputSupplier() - Method in class com.continuuity.http.BasicInternalHttpResponse
 
getInputSupplier() - Method in interface com.continuuity.http.InternalHttpResponse
 
getMethod() - Method in class com.continuuity.http.HttpResourceModel
 
getMethodName() - Method in class com.continuuity.http.HandlerInfo
 
getPath() - Method in class com.continuuity.http.HttpResourceModel
 
getResponse() - Method in class com.continuuity.http.InternalHttpResponder
 
getRuntimeArguments() - Method in class com.continuuity.http.BasicHandlerContext
 
getRuntimeArguments() - Method in interface com.continuuity.http.HandlerContext
 
getStatusCode() - Method in class com.continuuity.http.BasicInternalHttpResponse
 
getStatusCode() - Method in interface com.continuuity.http.InternalHttpResponse
 

H

handle(HttpRequest, HttpResponder) - Method in class com.continuuity.http.HttpResourceHandler
Call the appropriate handler for handling the httprequest.
handle(HttpRequest, HttpResponder, Map<String, String>) - Method in class com.continuuity.http.HttpResourceModel
Handle http Request.
handleError(Throwable) - Method in class com.continuuity.http.BodyConsumer
When there is exception on netty while streaming, it will be propagated to handler so the handler can do the cleanup.
HandlerContext - Interface in com.continuuity.http
Place holder for information about the environment.
HandlerHook - Interface in com.continuuity.http
Interface that needs to be implemented to intercept handler method calls.
HandlerInfo - Class in com.continuuity.http
Contains information about HttpHandler method.
HandlerInfo(String, String) - Constructor for class com.continuuity.http.HandlerInfo
 
HttpDispatcher - Class in com.continuuity.http
HttpDispatcher that invokes the appropriate http-handler method.
HttpDispatcher() - Constructor for class com.continuuity.http.HttpDispatcher
 
HttpHandler - Interface in com.continuuity.http
Interface that needs to be implemented for handling HTTP methods.
HttpResourceHandler - Class in com.continuuity.http
HttpResourceHandler handles the http request.
HttpResourceHandler(Iterable<? extends HttpHandler>, Iterable<? extends HandlerHook>, URLRewriter) - Constructor for class com.continuuity.http.HttpResourceHandler
Construct HttpResourceHandler.
HttpResourceModel - Class in com.continuuity.http
HttpResourceModel contains information needed to handle Http call for a given path.
HttpResourceModel(Set<HttpMethod>, String, Method, HttpHandler) - Constructor for class com.continuuity.http.HttpResourceModel
Construct a resource model with HttpMethod, method that handles httprequest, Object that contains the method.
HttpResponder - Interface in com.continuuity.http
HttpResponder is used to send response back to clients.

I

init(HandlerContext) - Method in class com.continuuity.http.AbstractHttpHandler
 
init(HandlerContext) - Method in interface com.continuuity.http.HttpHandler
init method will be called before the netty pipeline is setup.
init(HandlerContext) - Method in class com.continuuity.http.HttpResourceHandler
 
InternalHttpResponder - Class in com.continuuity.http
InternalHttpResponder is used when a handler is being called internally by some other handler, and thus there is no need to go through the network.
InternalHttpResponder() - Constructor for class com.continuuity.http.InternalHttpResponder
 
InternalHttpResponse - Interface in com.continuuity.http
Interface used to get the status code and content from calling another handler internally.

M

messageReceived(ChannelHandlerContext, MessageEvent) - Method in class com.continuuity.http.HttpDispatcher
 
messageReceived(ChannelHandlerContext, MessageEvent) - Method in class com.continuuity.http.RequestRouter
If the HttpRequest is valid and handled it will be sent upstream, if it cannot be invoked the response will be written back immediately.
modifyChannelPipeline(Function<ChannelPipeline, ChannelPipeline>) - Method in class com.continuuity.http.NettyHttpService.Builder
Modify the pipeline upon build by applying the function.

N

NettyHttpService - Class in com.continuuity.http
Webservice implemented using the netty framework.
NettyHttpService(InetSocketAddress, int, int, int, long, Map<String, Object>, RejectedExecutionHandler, URLRewriter, Iterable<? extends HttpHandler>, Iterable<? extends HandlerHook>, int) - Constructor for class com.continuuity.http.NettyHttpService
Deprecated. Use NettyHttpService.Builder instead.
NettyHttpService.Builder - Class in com.continuuity.http
Builder to help create the NettyHttpService.

P

PatternPathRouterWithGroups<T> - Class in com.continuuity.http
Matches incoming un-matched paths to destinations.
PatternPathRouterWithGroups() - Constructor for class com.continuuity.http.PatternPathRouterWithGroups
Initialize PatternPathRouterWithGroups.
PatternPathRouterWithGroups.RoutableDestination<T> - Class in com.continuuity.http
Represents a matched destination.
PatternPathRouterWithGroups.RoutableDestination(T, Map<String, String>) - Constructor for class com.continuuity.http.PatternPathRouterWithGroups.RoutableDestination
Construct the RouteableDestination with the given parameters.
postCall(HttpRequest, HttpResponseStatus, HandlerInfo) - Method in class com.continuuity.http.AbstractHandlerHook
 
postCall(HttpRequest, HttpResponseStatus, HandlerInfo) - Method in interface com.continuuity.http.HandlerHook
postCall is run after a handler method call is made.
preCall(HttpRequest, HttpResponder, HandlerInfo) - Method in class com.continuuity.http.AbstractHandlerHook
 
preCall(HttpRequest, HttpResponder, HandlerInfo) - Method in interface com.continuuity.http.HandlerHook
preCall is run before a handler method call is made.

R

RequestRouter - Class in com.continuuity.http
RequestRouter that uses HttpMethodHandler to determine the http-handler method Signature of http request.
RequestRouter(HttpResourceHandler, int, boolean) - Constructor for class com.continuuity.http.RequestRouter
 
rewrite(HttpRequest, HttpResponder) - Method in interface com.continuuity.http.URLRewriter
Implement this to rewrite URL of an incoming request.

S

sendByteArray(HttpResponseStatus, byte[], Multimap<String, String>) - Method in class com.continuuity.http.BasicHttpResponder
Send a response containing raw bytes.
sendByteArray(HttpResponseStatus, byte[], Multimap<String, String>) - Method in interface com.continuuity.http.HttpResponder
Send a response containing raw bytes.
sendByteArray(HttpResponseStatus, byte[], Multimap<String, String>) - Method in class com.continuuity.http.InternalHttpResponder
 
sendBytes(HttpResponseStatus, ByteBuffer, Multimap<String, String>) - Method in class com.continuuity.http.BasicHttpResponder
Sends a response containing raw bytes.
sendBytes(HttpResponseStatus, ByteBuffer, Multimap<String, String>) - Method in interface com.continuuity.http.HttpResponder
Sends a response containing raw bytes.
sendBytes(HttpResponseStatus, ByteBuffer, Multimap<String, String>) - Method in class com.continuuity.http.InternalHttpResponder
 
sendChunk(ChannelBuffer) - Method in class com.continuuity.http.BasicHttpResponder
Add a chunk of data to the response.
sendChunk(ChannelBuffer) - Method in interface com.continuuity.http.HttpResponder
Add a chunk of data to the response.
sendChunk(ChannelBuffer) - Method in class com.continuuity.http.InternalHttpResponder
 
sendChunkEnd() - Method in class com.continuuity.http.BasicHttpResponder
Called after all chunks are done.
sendChunkEnd() - Method in interface com.continuuity.http.HttpResponder
Called after all chunks are done.
sendChunkEnd() - Method in class com.continuuity.http.InternalHttpResponder
 
sendChunkStart(HttpResponseStatus, Multimap<String, String>) - Method in class com.continuuity.http.BasicHttpResponder
Respond to the client saying the response will be in chunks.
sendChunkStart(HttpResponseStatus, Multimap<String, String>) - Method in interface com.continuuity.http.HttpResponder
Respond to the client saying the response will be in chunks.
sendChunkStart(HttpResponseStatus, Multimap<String, String>) - Method in class com.continuuity.http.InternalHttpResponder
 
sendContent(HttpResponseStatus, ChannelBuffer, String, Multimap<String, String>) - Method in class com.continuuity.http.BasicHttpResponder
Send response back to client.
sendContent(HttpResponseStatus, ChannelBuffer, String, Multimap<String, String>) - Method in interface com.continuuity.http.HttpResponder
Send response back to client.
sendContent(HttpResponseStatus, ChannelBuffer, String, Multimap<String, String>) - Method in class com.continuuity.http.InternalHttpResponder
 
sendError(HttpResponseStatus, String) - Method in class com.continuuity.http.BasicHttpResponder
Sends error message back to the client.
sendError(HttpResponseStatus, String) - Method in interface com.continuuity.http.HttpResponder
Sends error message back to the client.
sendError(HttpResponseStatus, String) - Method in class com.continuuity.http.InternalHttpResponder
 
sendFile(File, Multimap<String, String>) - Method in class com.continuuity.http.BasicHttpResponder
 
sendFile(File, Multimap<String, String>) - Method in interface com.continuuity.http.HttpResponder
Sends a file content back to client.
sendFile(File, Multimap<String, String>) - Method in class com.continuuity.http.InternalHttpResponder
 
sendInternalRequest(HttpRequest) - Method in class com.continuuity.http.AbstractHttpHandler
Send a request to another handler internal to the server, getting back the response body and response code.
sendJson(HttpResponseStatus, Object) - Method in class com.continuuity.http.BasicHttpResponder
Sends json response back to the client.
sendJson(HttpResponseStatus, Object, Type) - Method in class com.continuuity.http.BasicHttpResponder
Sends json response back to the client.
sendJson(HttpResponseStatus, Object, Type, Gson) - Method in class com.continuuity.http.BasicHttpResponder
Sends json response back to the client using the given gson object.
sendJson(HttpResponseStatus, Object) - Method in interface com.continuuity.http.HttpResponder
Sends json response back to the client.
sendJson(HttpResponseStatus, Object, Type) - Method in interface com.continuuity.http.HttpResponder
Sends json response back to the client.
sendJson(HttpResponseStatus, Object, Type, Gson) - Method in interface com.continuuity.http.HttpResponder
Sends json response back to the client using the given gson object.
sendJson(HttpResponseStatus, Object) - Method in class com.continuuity.http.InternalHttpResponder
 
sendJson(HttpResponseStatus, Object, Type) - Method in class com.continuuity.http.InternalHttpResponder
 
sendJson(HttpResponseStatus, Object, Type, Gson) - Method in class com.continuuity.http.InternalHttpResponder
 
sendStatus(HttpResponseStatus) - Method in class com.continuuity.http.BasicHttpResponder
Send only a status code back to client without any content.
sendStatus(HttpResponseStatus, Multimap<String, String>) - Method in class com.continuuity.http.BasicHttpResponder
 
sendStatus(HttpResponseStatus) - Method in interface com.continuuity.http.HttpResponder
Send only a status code back to client without any content.
sendStatus(HttpResponseStatus, Multimap<String, String>) - Method in interface com.continuuity.http.HttpResponder
Send only a status code back to client without any content.
sendStatus(HttpResponseStatus) - Method in class com.continuuity.http.InternalHttpResponder
 
sendStatus(HttpResponseStatus, Multimap<String, String>) - Method in class com.continuuity.http.InternalHttpResponder
 
sendString(HttpResponseStatus, String) - Method in class com.continuuity.http.BasicHttpResponder
Send a string response back to the http client.
sendString(HttpResponseStatus, String) - Method in interface com.continuuity.http.HttpResponder
Send a string response back to the http client.
sendString(HttpResponseStatus, String) - Method in class com.continuuity.http.InternalHttpResponder
 
setBossThreadPoolSize(int) - Method in class com.continuuity.http.NettyHttpService.Builder
Set size of bossThreadPool in netty default value is 1 if it is not set.
setChannelConfig(String, Object) - Method in class com.continuuity.http.NettyHttpService.Builder
Sets channel configuration for the the netty service.
setConnectionBacklog(int) - Method in class com.continuuity.http.NettyHttpService.Builder
Set size of backlog in netty service - size of accept queue of the TCP stack.
setExecThreadKeepAliveSeconds(long) - Method in class com.continuuity.http.NettyHttpService.Builder
Set threadKeepAliveSeconds - maximum time that excess idle threads will wait for new tasks before terminating.
setExecThreadPoolSize(int) - Method in class com.continuuity.http.NettyHttpService.Builder
Set size of executorThreadPool in netty default value is 60 if it is not set.
setHandlerHooks(Iterable<? extends HandlerHook>) - Method in class com.continuuity.http.NettyHttpService.Builder
Set HandlerHooks to be executed pre and post handler calls.
setHost(String) - Method in class com.continuuity.http.NettyHttpService.Builder
Set the bindAddress for the service.
setHttpChunkLimit(int) - Method in class com.continuuity.http.NettyHttpService.Builder
 
setPort(int) - Method in class com.continuuity.http.NettyHttpService.Builder
Set the port on which the service should listen to.
setRejectedExecutionHandler(RejectedExecutionHandler) - Method in class com.continuuity.http.NettyHttpService.Builder
Set RejectedExecutionHandler - rejection policy for executor.
setUrlRewriter(URLRewriter) - Method in class com.continuuity.http.NettyHttpService.Builder
Set URLRewriter to re-write URL of an incoming request before any handlers or their hooks are called.
setWorkerThreadPoolSize(int) - Method in class com.continuuity.http.NettyHttpService.Builder
Set size of workerThreadPool in netty default value is 10 if it is not set.
shutDown() - Method in class com.continuuity.http.NettyHttpService
 
startUp() - Method in class com.continuuity.http.NettyHttpService
 

T

toString() - Method in class com.continuuity.http.HttpResourceModel
 
toString() - Method in class com.continuuity.http.PatternPathRouterWithGroups.RoutableDestination
 

U

URLRewriter - Interface in com.continuuity.http
Re-writes URL of an incoming request before any handlers or their hooks are called.

A B C D E F G H I M N P R S T U

Copyright 2013 Continuuity, Inc. Licensed under the Apache License, Version 2.0