@@ -13,37 +13,37 @@ private SecureNativeContextBuilder() {
1313 this .context = new SecureNativeContext ();
1414 }
1515
16- public SecureNativeContextBuilder clientToken (String clientToken ) {
16+ public SecureNativeContextBuilder withClientToken (String clientToken ) {
1717 this .context .setClientToken (clientToken );
1818 return this ;
1919 }
2020
21- public SecureNativeContextBuilder ip (String ip ) {
21+ public SecureNativeContextBuilder withIp (String ip ) {
2222 this .context .setIp (ip );
2323 return this ;
2424 }
2525
26- public SecureNativeContextBuilder remoteIp (String remoteIp ) {
26+ public SecureNativeContextBuilder withRemoteIp (String remoteIp ) {
2727 this .context .setRemoteIp (remoteIp );
2828 return this ;
2929 }
3030
31- public SecureNativeContextBuilder headers (Map <String , String > headers ) {
31+ public SecureNativeContextBuilder withHeaders (Map <String , String > headers ) {
3232 this .context .setHeaders (headers );
3333 return this ;
3434 }
3535
36- public SecureNativeContextBuilder url (String url ) {
36+ public SecureNativeContextBuilder withUrl (String url ) {
3737 this .context .setUrl (url );
3838 return this ;
3939 }
4040
41- public SecureNativeContextBuilder method (String method ) {
41+ public SecureNativeContextBuilder withMethod (String method ) {
4242 this .context .setMethod (method );
4343 return this ;
4444 }
4545
46- public SecureNativeContextBuilder body (String body ) {
46+ public SecureNativeContextBuilder withBody (String body ) {
4747 this .context .setBody (body );
4848 return this ;
4949 }
@@ -61,13 +61,13 @@ public static SecureNativeContextBuilder fromHttpServletRequest(HttpServletReque
6161 }
6262
6363 return new SecureNativeContextBuilder ()
64- .url (request .getRequestURI ())
65- .method (request .getMethod ())
66- .headers (headers )
67- .clientToken (clientToken )
68- .ip (RequestUtils .getClientIpFromRequest (request , headers ))
69- .remoteIp (RequestUtils .getRemoteIpFromRequest (request ))
70- .body (null );
64+ .withUrl (request .getRequestURI ())
65+ .withMethod (request .getMethod ())
66+ .withHeaders (headers )
67+ .withClientToken (clientToken )
68+ .withIp (RequestUtils .getClientIpFromRequest (request , headers ))
69+ .withRemoteIp (RequestUtils .getRemoteIpFromRequest (request ))
70+ .withBody (null );
7171 }
7272
7373 public SecureNativeContext build (){
0 commit comments