forked from adamfisk/LittleProxy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
348 additions
and
174 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 56 additions & 0 deletions
56
src/main/java/org/littleshoot/proxy/HttpProxyServerBootstrap.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
package org.littleshoot.proxy; | ||
|
||
public interface HttpProxyServerBootstrap { | ||
|
||
public abstract HttpProxyServerBootstrap withTransportProtocol( | ||
TransportProtocol transportProtocol); | ||
|
||
public abstract HttpProxyServerBootstrap withPort(int port); | ||
|
||
public abstract HttpProxyServerBootstrap withSslContextSource( | ||
SSLContextSource sslContextSource); | ||
|
||
public abstract HttpProxyServerBootstrap withProxyAuthenticator( | ||
ProxyAuthenticator proxyAuthenticator); | ||
|
||
public abstract HttpProxyServerBootstrap withChainProxyManager( | ||
ChainedProxyManager chainProxyManager); | ||
|
||
public abstract HttpProxyServerBootstrap withRequestFilter( | ||
HttpRequestFilter requestFilter); | ||
|
||
public abstract HttpProxyServerBootstrap withResponseFilters( | ||
HttpResponseFilters responseFilters); | ||
|
||
public abstract HttpProxyServerBootstrap withUseDnsSec( | ||
boolean useDnsSec); | ||
|
||
public abstract HttpProxyServerBootstrap withTransparent( | ||
boolean transparent); | ||
|
||
public abstract HttpProxyServerBootstrap withIdleConnectionTimeout( | ||
int idleConnectionTimeout); | ||
|
||
/** | ||
* Starts the server. | ||
* | ||
* @param localOnly | ||
* If true, the server will only allow connections from the local | ||
* computer. This can significantly improve security in some | ||
* cases. | ||
* @param anyAddress | ||
* Whether or not to bind to "any" address - 0.0.0.0. This is the | ||
* default. | ||
* @return the newly built and started server | ||
*/ | ||
public abstract HttpProxyServer start(boolean localOnly, | ||
boolean anyAddress); | ||
|
||
/** | ||
* Builds and starts the server. | ||
* | ||
* @return the newly built and started server | ||
*/ | ||
public abstract HttpProxyServer start(); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.