class SecuredWithProxyMitmActor extends SecuredMitmActor
Standard flow:
- received CONNECT request with absolute url but without scheme
- connect to outgoing proxy
- if connect is successful, send CONNECT request to proxy
- if response is 200/OK, install SslHandler on clientChannel and serverChannel
- propagate response to serverChannel -
- receive request with relative url
- propagate request to clientChannel
- receive response
- propagate response to serverChannel
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- SecuredWithProxyMitmActor
- SecuredMitmActor
- MitmActor
- StrictLogging
- MitmActorFSM
- FSM
- ActorLogging
- Listeners
- Actor
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
-
new
SecuredWithProxyMitmActor(serverChannel: Channel, clientBootstrap: Bootstrap, sslServerContext: SslServerContext, proxy: OutgoingProxy, trafficLogger: TrafficLogger, httpClientCodecFactory: () ⇒ HttpClientCodec, clock: Clock)
- serverChannel
the server channel connected to the user agent
- clientBootstrap
the bootstrap to establish client channels with the remote
- sslServerContext
factory for SSLContexts
- proxy
the outgoing proxy
- trafficLogger
log the traffic
- httpClientCodecFactory
create new HttpClientCodecs
Type Members
-
type
Event = akka.actor.FSM.Event[MitmActorData]
- Definition Classes
- FSM
-
type
Receive = PartialFunction[Any, Unit]
- Definition Classes
- Actor
-
type
State = akka.actor.FSM.State[MitmActorState, MitmActorData]
- Definition Classes
- FSM
-
type
StateFunction = PartialFunction[Event, State]
- Definition Classes
- FSM
-
type
StopEvent = akka.actor.FSM.StopEvent[MitmActorState, MitmActorData]
- Definition Classes
- FSM
-
type
Timeout = Option[FiniteDuration]
- Definition Classes
- FSM
-
final
class
TransformHelper extends AnyRef
- Definition Classes
- FSM
-
type
TransitionHandler = PartialFunction[(MitmActorState, MitmActorState), Unit]
- Definition Classes
- FSM
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
val
->: akka.actor.FSM.->.type
- Definition Classes
- FSM
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
val
Event: akka.actor.FSM.Event.type
- Definition Classes
- FSM
-
val
StateTimeout: akka.actor.FSM.StateTimeout.type
- Definition Classes
- FSM
-
val
StopEvent: akka.actor.FSM.StopEvent.type
- Definition Classes
- FSM
-
def
aroundPostRestart(reason: Throwable): Unit
- Attributes
- protected[akka]
- Definition Classes
- Actor
- Annotations
- @InternalApi()
-
def
aroundPostStop(): Unit
- Attributes
- protected[akka]
- Definition Classes
- Actor
- Annotations
- @InternalApi()
-
def
aroundPreRestart(reason: Throwable, message: Option[Any]): Unit
- Attributes
- protected[akka]
- Definition Classes
- Actor
- Annotations
- @InternalApi()
-
def
aroundPreStart(): Unit
- Attributes
- protected[akka]
- Definition Classes
- Actor
- Annotations
- @InternalApi()
-
def
aroundReceive(receive: akka.actor.Actor.Receive, msg: Any): Unit
- Attributes
- protected[akka]
- Definition Classes
- Actor
- Annotations
- @InternalApi()
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
final
def
cancelTimer(name: String): Unit
- Definition Classes
- FSM
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
connectClientChannel(requestRemote: Remote, request: FullHttpRequest): State
- Attributes
- protected
- Definition Classes
- MitmActor
-
def
connectedRemote(requestRemote: Remote): Remote
- Attributes
- protected
- Definition Classes
- SecuredWithProxyMitmActor → MitmActor
-
implicit
val
context: ActorContext
- Definition Classes
- Actor
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
gossip(msg: Any)(implicit sender: ActorRef): Unit
- Attributes
- protected
- Definition Classes
- Listeners
-
final
def
goto(nextStateName: MitmActorState): State
- Definition Classes
- FSM
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
initialize(): Unit
- Definition Classes
- FSM
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
isTimerActive(name: String): Boolean
- Definition Classes
- FSM
-
def
listenerManagement: akka.actor.Actor.Receive
- Attributes
- protected
- Definition Classes
- Listeners
-
val
listeners: Set[ActorRef]
- Attributes
- protected
- Definition Classes
- Listeners
-
def
log: LoggingAdapter
- Definition Classes
- ActorLogging
-
def
logTermination(reason: Reason): Unit
- Attributes
- protected
- Definition Classes
- FSM
-
val
logger: Logger
- Attributes
- protected
- Definition Classes
- StrictLogging
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
nextStateData: MitmActorData
- Definition Classes
- FSM
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
onClientChannelActive(clientChannel: Channel, pendingRequest: FullHttpRequest, remote: Remote): State
- Attributes
- protected
- Definition Classes
- SecuredWithProxyMitmActor → SecuredMitmActor
-
final
def
onTermination(terminationHandler: PartialFunction[StopEvent, Unit]): Unit
- Definition Classes
- FSM
-
final
def
onTransition(transitionHandler: TransitionHandler): Unit
- Definition Classes
- FSM
-
def
postRestart(reason: Throwable): Unit
- Definition Classes
- Actor
- Annotations
- @throws( classOf[java.lang.Exception] )
-
def
postStop(): Unit
- Definition Classes
- FSM → Actor
-
def
preRestart(reason: Throwable, message: Option[Any]): Unit
- Definition Classes
- Actor
- Annotations
- @throws( classOf[java.lang.Exception] )
-
def
preStart(): Unit
- Definition Classes
- Actor
- Annotations
- @throws( classOf[java.lang.Exception] )
-
def
receive: Receive
- Definition Classes
- FSM → Actor
-
implicit final
val
self: ActorRef
- Definition Classes
- Actor
-
final
def
sender(): ActorRef
- Definition Classes
- Actor
-
final
def
setStateTimeout(state: MitmActorState, timeout: Timeout): Unit
- Definition Classes
- FSM
-
final
def
setTimer(name: String, msg: Any, timeout: FiniteDuration, repeat: Boolean): Unit
- Definition Classes
- FSM
-
final
def
startWith(stateName: MitmActorState, stateData: MitmActorData, timeout: Timeout): Unit
- Definition Classes
- FSM
-
final
def
stateData: MitmActorData
- Definition Classes
- FSM
-
final
def
stateName: MitmActorState
- Definition Classes
- FSM
-
final
def
stay(): State
- Definition Classes
- FSM
-
final
def
stop(reason: Reason, stateData: MitmActorData): State
- Definition Classes
- FSM
-
final
def
stop(reason: Reason): State
- Definition Classes
- FSM
-
final
def
stop(): State
- Definition Classes
- FSM
-
def
supervisorStrategy: SupervisorStrategy
- Definition Classes
- Actor
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
implicit final
def
total2pf(transitionHandler: (MitmActorState, MitmActorState) ⇒ Unit): TransitionHandler
- Definition Classes
- FSM
-
final
def
transform(func: StateFunction): TransformHelper
- Definition Classes
- FSM
-
def
unhandled(msg: Any): Unit
- Definition Classes
- MitmActor → Actor
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
when(stateName: MitmActorState, stateTimeout: FiniteDuration)(stateFunction: StateFunction): Unit
- Definition Classes
- FSM
-
final
def
whenUnhandled(stateFunction: StateFunction): Unit
- Definition Classes
- FSM