public class WebResourceCollection extends Object
WebResourceCollection webResource = new WebResourceCollection();
webResource.setName("protected");
webResource.setUrlPatterns("/*");
Set httpMethods = new HashSet();
httpMethods.add("GET");
httpMethods.add("POST");
webResource.setHttpMethods(httpMethods);
SecurityConfig| Constructor and Description |
|---|
WebResourceCollection() |
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getHttpMethodOmissions()
Gets the HTTP methods to be omitted from protection
|
Set<String> |
getHttpMethods()
Gets the HTTP methods that should be protected
|
String |
getName()
Gets the name of this collection
|
Set<String> |
getUrlPatterns()
Gets the url patterns that correspond to this
web resource
|
void |
setHttpMethodOmissions(Set<String> httpMethodOmissions)
Sets the HTTP methods to be omitted from protection
|
void |
setHttpMethods(Set<String> httpMethods)
Sets the HTTP methods that should be protected
|
void |
setName(String name)
Sets the name of this collection
|
void |
setUrlPatterns(Set<String> urlPatterns)
Sets the url patterns that correspond to this
web resource
|
String |
toString()
Returns a formatted string of the state.
|
public void setName(String name)
name - the name of this collectionpublic String getName()
public void setUrlPatterns(Set<String> urlPatterns)
urlPatterns - the url patternspublic Set<String> getUrlPatterns()
public void setHttpMethods(Set<String> httpMethods) throws GlassFishException
httpMethods - the HTTP methodsGlassFishException - if HttpMethodOmissions is already definedpublic Set<String> getHttpMethods()
public void setHttpMethodOmissions(Set<String> httpMethodOmissions) throws GlassFishException
httpMethodOmissions - the HTTP methods to be
omitted from protectionGlassFishException - if HttpMethods is already definedpublic Set<String> getHttpMethodOmissions()
Copyright © 2017. All rights reserved.