Package lumis.portal.security.csr
Class CorsRule
- java.lang.Object
-
- lumis.portal.security.csr.CorsRule
-
public class CorsRule extends java.lang.Object
CORS request rule.- Since:
- 12.2.0
- Version:
- $Revision$ $Date$
-
-
Constructor Summary
Constructors Constructor Description CorsRule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getAllowHeaders()
Returns the allowHeaders.java.lang.String
getAllowMethods()
Returns the allowMethods.java.lang.String
getExposeHeaders()
Returns the exposeHeaders.java.lang.String
getId()
Returns the id.int
getMaxAge()
Returns the maxAge.java.lang.String
getOriginPattern()
Returns the originPattern.java.lang.String
getPathPattern()
Returns the pathPattern.int
getPosition()
Returns the position.boolean
isAllowCredentials()
Returns the allowCredentials.CorsRule
setAllowCredentials(boolean allowCredentials)
Sets the allowCredentials.CorsRule
setAllowHeaders(java.lang.String allowHeaders)
Sets the allowHeaders.CorsRule
setAllowMethods(java.lang.String allowMethods)
Sets the allowMethods.CorsRule
setExposeHeaders(java.lang.String exposeHeaders)
Sets the exposeHeaders.CorsRule
setMaxAge(int maxAge)
Sets the maxAge.CorsRule
setOriginPattern(java.lang.String originPattern)
Sets the originPattern.CorsRule
setPathPattern(java.lang.String pathPattern)
Sets the pathPattern.CorsRule
setPosition(int position)
Sets the position.java.lang.String
toString()
-
-
-
Method Detail
-
getPathPattern
public java.lang.String getPathPattern()
Returns the pathPattern.- Returns:
- the pathPattern
- Since:
- 12.2.0
-
setPathPattern
public CorsRule setPathPattern(java.lang.String pathPattern)
Sets the pathPattern.- Parameters:
pathPattern
- the pathPattern value to set.- Returns:
- the same
CorsRule
for chaining. - Since:
- 12.2.0
-
getOriginPattern
public java.lang.String getOriginPattern()
Returns the originPattern.- Returns:
- the originPattern
- Since:
- 12.2.0
-
setOriginPattern
public CorsRule setOriginPattern(java.lang.String originPattern)
Sets the originPattern.- Parameters:
originPattern
- the originPattern value to set.- Returns:
- the same
CorsRule
for chaining. - Since:
- 12.2.0
-
getAllowMethods
public java.lang.String getAllowMethods()
Returns the allowMethods.- Returns:
- the allowMethods
- Since:
- 12.2.0
-
setAllowMethods
public CorsRule setAllowMethods(java.lang.String allowMethods)
Sets the allowMethods.- Parameters:
allowMethods
- the allowMethods value to set.- Returns:
- the same
CorsRule
for chaining. - Since:
- 12.2.0
-
getExposeHeaders
public java.lang.String getExposeHeaders()
Returns the exposeHeaders.- Returns:
- the exposeHeaders
- Since:
- 12.2.0
-
setExposeHeaders
public CorsRule setExposeHeaders(java.lang.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 java.lang.String getAllowHeaders()
Returns the allowHeaders.- Returns:
- the allowHeaders
- Since:
- 12.2.0
-
setAllowHeaders
public CorsRule setAllowHeaders(java.lang.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 java.lang.String getId()
Returns the id.- Returns:
- the id
- Since:
- 12.2.0
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-