|
ref_send API 1.16 defensive programming in Java |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.web_send.Entity
public final class Entity
A MIME entity.
| Field Summary | |
|---|---|
static java.lang.String |
binary
binary Media Type: "application/octet-stream" |
ByteArray |
content
binary content |
static int |
maxContentSize
maximum number of bytes in content: 262144 |
static PowerlessArray<java.lang.String> |
supported
supported Media Types |
java.lang.String |
type
Media Type |
| Constructor Summary | |
|---|---|
Entity(java.lang.String type,
ByteArray content)
Constructs an instance. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
Is the given object the same? |
int |
hashCode()
Calculates the hash code. |
static boolean |
supports(java.lang.String type)
Is a given Media Type supported? |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int maxContentSize
content: 262144
public static final java.lang.String binary
public static final PowerlessArray<java.lang.String> supported
Some Media Types, such as HTML, are automatically provided with additional permissions by the web browser, such as the permission to script other browser frames from the same origin. Consequently, it is not always safe to serve such content. This field lists the known safe and so supported Media Types.
public final java.lang.String type
public final ByteArray content
| Constructor Detail |
|---|
public Entity(java.lang.String type,
ByteArray content)
throws Failure
type - typecontent - content
Failure - content bigger than maxContentSize| Method Detail |
|---|
public static boolean supports(java.lang.String type)
type - Media Typepublic boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - compared to object
true if the same, else falsepublic int hashCode()
hashCode in interface SelflesshashCode in class java.lang.Object
|
ref_send API 1.16 defensive programming in Java |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright 1998-2007 Waterken Inc. under the terms of the MIT X license.