Package lumis.portal.security.csr
Class CorsRule
- java.lang.Object
-
- lumis.portal.security.csr.CorsRule
-
public class CorsRule extends Object
CORS request rule.- Since:
- 12.2.0
- Version:
- $Revision: 23534 $ $Date: 2020-01-14 13:16:30 -0300 (Tue, 14 Jan 2020) $
-
-
Constructor Summary
Constructors Constructor Description CorsRule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAllowHeaders()
Returns the allowHeaders.String
getAllowMethods()
Returns the allowMethods.String
getExposeHeaders()
Returns the exposeHeaders.String
getId()
Returns the id.int
getMaxAge()
Returns the maxAge.String
getOriginPattern()
Returns the originPattern.String
getPathPattern()
Returns the pathPattern.int
getPosition()
Returns the position.boolean
isAllowCredentials()
Returns the allowCredentials.CorsRule
setAllowCredentials(boolean allowCredentials)
Sets the allowCredentials.CorsRule
setAllowHeaders(String allowHeaders)
Sets the allowHeaders.CorsRule
setAllowMethods(String allowMethods)
Sets the allowMethods.CorsRule
setExposeHeaders(String exposeHeaders)
Sets the exposeHeaders.CorsRule
setMaxAge(int maxAge)
Sets the maxAge.CorsRule
setOriginPattern(String originPattern)
Sets the originPattern.CorsRule
setPathPattern(String pathPattern)
Sets the pathPattern.CorsRule
setPosition(int position)
Sets the position.String
toString()
-
-
-
Method Detail
-
getPathPattern
public String getPathPattern()
Returns the pathPattern.- Returns:
- the pathPattern
- Since:
- 12.2.0
-
setPathPattern
public CorsRule setPathPattern(String pathPattern)
Sets the pathPattern.- Parameters:
pathPattern
- the pathPattern value to set.- Returns:
- the same
CorsRule
for chaining. - Since:
- 12.2.0
-
getOriginPattern
public String getOriginPattern()
Returns the originPattern.- Returns:
- the originPattern
- Since:
- 12.2.0
-
setOriginPattern
public CorsRule setOriginPattern(String originPattern)
Sets the originPattern.- Parameters:
originPattern
- the originPattern value to set.- Returns:
- the same
CorsRule
for chaining. - Since:
- 12.2.0
-
getAllowMethods
public String getAllowMethods()
Returns the allowMethods.- Returns:
- the allowMethods
- Since:
- 12.2.0
-
setAllowMethods
public CorsRule setAllowMethods(String allowMethods)
Sets the allowMethods.- Parameters:
allowMethods
- the allowMethods value to set.- Returns:
- the same
CorsRule
for chaining. - Since:
- 12.2.0
-
getExposeHeaders
public String getExposeHeaders()
Returns the exposeHeaders.- Returns:
- the exposeHeaders
- Since:
- 12.2.0
-
setExposeHeaders
public CorsRule setExposeHeaders(String exposeHeaders)
Sets the exposeHeaders.- Parameters:
exposeHeaders
- the exposeHeaders value to set.- Returns:
- the same
CorsRule
for chaining. - Since:
- 12.2.0
-
getMaxAge
public int getMaxAge()
Returns the maxAge.- Returns:
- the maxAge
- Since:
- 12.2.0
-
setMaxAge
public CorsRule setMaxAge(int maxAge)
Sets the maxAge.- Parameters:
maxAge
- the maxAge value to set.- Returns:
- the same
CorsRule
for chaining. - Since:
- 12.2.0
-
getAllowHeaders
public String getAllowHeaders()
Returns the allowHeaders.- Returns:
- the allowHeaders
- Since:
- 12.2.0
-
setAllowHeaders
public CorsRule setAllowHeaders(String allowHeaders)
Sets the allowHeaders.- Parameters:
allowHeaders
- the allowHeaders value to set.- Returns:
- the same
CorsRule
for chaining. - Since:
- 12.2.0
-
isAllowCredentials
public boolean isAllowCredentials()
Returns the allowCredentials.- Returns:
- the allowCredentials
- Since:
- 12.2.0
-
setAllowCredentials
public CorsRule setAllowCredentials(boolean allowCredentials)
Sets the allowCredentials.- Parameters:
allowCredentials
- the allowCredentials value to set.- Returns:
- the same
CorsRule
for chaining. - Since:
- 12.2.0
-
getPosition
public int getPosition()
Returns the position.- Returns:
- the position
- Since:
- 12.2.0
-
setPosition
public CorsRule setPosition(int position)
Sets the position.- Parameters:
position
- the position value to set.- Returns:
- the same
CorsRule
for chaining. - Since:
- 12.2.0
-
getId
public String getId()
Returns the id.- Returns:
- the id
- Since:
- 12.2.0
-
-