|
AeroGear Netty SockJS Codec 0.11.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.aerogear.io.netty.handler.codec.sockjs.handler.CorsMetadata
public final class CorsMetadata
Stores Cross Origin Resource Sharing (CORS) information. This class can be used to store incoming CORS information like 'origin' and 'headers which can later then be set on outgoing respoonses as 'Access-Control-Allow-Origin' and 'Access-Control-Allow-Headers'.
| Constructor Summary | |
|---|---|
CorsMetadata()
Create a new instance with 'origin' of any '*' and with no headers. |
|
CorsMetadata(String origin,
String headers)
Create a new instance. |
|
| Method Summary | |
|---|---|
boolean |
hasHeaders()
Determines whether this instance has headers or not. |
String |
headers()
Returns the headers origin. |
String |
origin()
Returns the stored origin. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CorsMetadata()
public CorsMetadata(String origin,
String headers)
origin - the origin to be used. If null, or "null" the origin will be set to any '*'headers - the headers that should be stored, and later returned as CORS allowed headers.| Method Detail |
|---|
public String origin()
public String headers()
public boolean hasHeaders()
public String toString()
toString in class Object
|
AeroGear Netty SockJS Codec 0.11.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||