|
Project Wonder 5.0 | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecter.rest.entityDelegates.ERXPListRestResponseWriter
public class ERXPListRestResponseWriter
Provides the output methods for generating PList responses to a REST request.
Field Summary |
---|
Fields inherited from interface er.rest.entityDelegates.IERXRestResponseWriter |
---|
DETAILS_PREFIX, DETAILS_PROPERTIES_PREFIX, REST_PREFIX |
Constructor Summary | |
---|---|
ERXPListRestResponseWriter()
|
|
ERXPListRestResponseWriter(boolean displayAllProperties,
boolean displayAllToMany)
Constructs an ERXPListRestResponseWriter. |
|
ERXPListRestResponseWriter(ERXKeyFilter filter)
Constructs an ERXPListRestResponseWriter. |
Method Summary | |
---|---|
void |
appendToResponse(ERXRestContext context,
IERXRestResponse response,
ERXRestKey result)
Called at the end of a request to produce the output to the user. |
java.lang.String |
toString(com.webobjects.eocontrol.EOEditingContext editingContext,
java.lang.String entityName,
com.webobjects.foundation.NSArray values)
Returns a String form of the given objects using the unsafe delegate. |
java.lang.String |
toString(com.webobjects.eoaccess.EOEntity entity,
com.webobjects.foundation.NSArray values)
Returns a String form of the given objects using the unsafe delegate. |
java.lang.String |
toString(java.lang.Object value)
Returns a String form of the given object using the unsafe delegate. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ERXPListRestResponseWriter()
public ERXPListRestResponseWriter(boolean displayAllProperties, boolean displayAllToMany)
displayAllProperties
- if true, by default all properties are eligible to be displayed (probably should only be true in
development, but it won't really hurt anything). Note that entity delegates will still control
permissions on the properties, it just defaults to checking all of them.displayAllToMany
- if true, all to-many relationships will be displayedpublic ERXPListRestResponseWriter(ERXKeyFilter filter)
filter
- the filter to apply to the written resultsMethod Detail |
---|
public void appendToResponse(ERXRestContext context, IERXRestResponse response, ERXRestKey result) throws ERXRestException, ERXRestSecurityException, ERXRestNotFoundException, java.text.ParseException
IERXRestResponseWriter
appendToResponse
in interface IERXRestResponseWriter
context
- the rest contextresponse
- the response to write intoresult
- the result of the rest request
ERXRestException
- if there is a general failure
ERXRestSecurityException
- if there is a security violation
ERXRestNotFoundException
- if there is a missing entity
ParseException
- if there is a parse errorpublic java.lang.String toString(java.lang.Object value) throws ERXRestException, ERXRestSecurityException, ERXRestNotFoundException, java.text.ParseException
toString
in interface IERXRestResponseWriter
value
- the value to write
ERXRestException
ERXRestSecurityException
ERXRestNotFoundException
ParseException
public java.lang.String toString(com.webobjects.eoaccess.EOEntity entity, com.webobjects.foundation.NSArray values) throws ERXRestException, ERXRestSecurityException, ERXRestNotFoundException, java.text.ParseException
toString
in interface IERXRestResponseWriter
values
- the values to write
ERXRestException
ERXRestSecurityException
ERXRestNotFoundException
ParseException
public java.lang.String toString(com.webobjects.eocontrol.EOEditingContext editingContext, java.lang.String entityName, com.webobjects.foundation.NSArray values) throws ERXRestException, ERXRestSecurityException, ERXRestNotFoundException, java.text.ParseException
toString
in interface IERXRestResponseWriter
values
- the values to writeeditingContext
- the editingcontext to resolve the given entity name withinentityName
- the entity name of the values of the array
ERXRestException
ERXRestSecurityException
ERXRestNotFoundException
ParseException
|
Last updated: Tue, Feb 21, 2017 05:45 PM CET | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |