Package eos.web
Class HttpTransmission
- java.lang.Object
-
- eos.web.HttpTransmission
-
- All Implemented Interfaces:
HttpHandler
public class HttpTransmission extends Object implements HttpHandler
-
-
Constructor Summary
Constructors Constructor Description HttpTransmission(Eos.Cache cache)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<EndpointPosition>getEndpointValues(String uri, EndpointMapping mapping)protected EndpointMappinggetHttpMapping(String verb, String uri)protected HttpResponsegetHttpResponse(HttpExchange exchange)List<String>getParameterTypes(Class[] clsParamaters)protected List<String>getPathParts(String uri)protected StringgetRedirect(String uri)protected List<String>getRegexParts(EndpointMapping mapping)voidhandle(HttpExchange httpExchange)protected booleanlengthMatches(String uri, String mappingUri)protected booleanvariablesMatchUp(String uri, EndpointMapping endpointMapping)
-
-
-
Field Detail
-
REDIRECT
public static final String REDIRECT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
HttpTransmission
public HttpTransmission(Eos.Cache cache)
-
-
Method Detail
-
handle
public void handle(HttpExchange httpExchange)
- Specified by:
handlein interfaceHttpHandler
-
getEndpointValues
protected List<EndpointPosition> getEndpointValues(String uri, EndpointMapping mapping)
-
getRegexParts
protected List<String> getRegexParts(EndpointMapping mapping)
-
getHttpMapping
protected EndpointMapping getHttpMapping(String verb, String uri)
-
variablesMatchUp
protected boolean variablesMatchUp(String uri, EndpointMapping endpointMapping)
-
getHttpResponse
protected HttpResponse getHttpResponse(HttpExchange exchange)
-
-