Class RestletTeleDriverImpl

java.lang.Object
colesico.framework.restlet.internal.RestletTeleDriverImpl
All Implemented Interfaces:
RestletTeleDriver, colesico.framework.teleapi.TeleDriver<RestletTRContext,​RestletTWContext,​RestletTIContext,​RestletDataPort>

@Singleton
public class RestletTeleDriverImpl
extends java.lang.Object
implements RestletTeleDriver
Author:
Vladlen Larionov
  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected RestletConfigPrototype config  
    protected RestletDataPort dataPort  
    protected javax.inject.Provider<colesico.framework.http.HttpContext> httpContextProv  
    protected org.slf4j.Logger log  
    protected colesico.framework.ioc.production.Polysupplier<RestletRequestListener> reqListenerSup  
    protected colesico.framework.ioc.production.Polysupplier<RestletResponseListener> respListenerSup  
    protected colesico.framework.ioc.scope.ThreadScope threadScope  
    static java.lang.String X_REQUESTED_WITH_HEADER  
    static java.lang.String X_REQUESTED_WITH_HEADER_VAL  

    Fields inherited from interface colesico.framework.teleapi.TeleDriver

    INVOKE_METHOD, INVOKER_PARAM, RESULT_PARAM, TARGET_PARAM
  • Constructor Summary

    Constructors 
    Constructor Description
    RestletTeleDriverImpl​(RestletConfigPrototype config, colesico.framework.ioc.scope.ThreadScope threadScope, javax.inject.Provider<colesico.framework.http.HttpContext> httpContextProv, RestletDataPort dataPort, colesico.framework.ioc.production.Polysupplier<RestletRequestListener> reqListenerSup, colesico.framework.ioc.production.Polysupplier<RestletResponseListener> respListenerSup)  
  • Method Summary

    Modifier and Type Method Description
    protected java.lang.String getMessage​(java.lang.Throwable ex)  
    protected void guardCSFR​(colesico.framework.http.HttpRequest httpRequest)  
    protected void handleCommonError​(java.lang.Throwable ex, int httpCode, colesico.framework.http.HttpContext context)  
    protected void handleValidationError​(colesico.framework.validation.ValidationException ex, int httpCode, colesico.framework.http.HttpContext context)  
    <S> void invoke​(S service, colesico.framework.teleapi.MethodInvoker<S,​RestletDataPort> invoker, RestletTIContext invCtx)  
    protected <S> void invokeImpl​(S service, colesico.framework.teleapi.MethodInvoker binder, RestletTIContext invCtx, colesico.framework.http.HttpContext httpCtx)  
    protected void notifyRequestListener​(colesico.framework.http.HttpContext context, java.lang.Object service)  
    protected void notifyResponseListener​(colesico.framework.http.HttpContext context)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait