text stringlengths 3 1.18M |
|---|
package org.odata4j.core;
// TODO(0.5) javadoc
public class OEntityIds {
private OEntityIds() {}
public static OEntityId create(String entitySetName, Object... entityKeyValues) {
return create(entitySetName, OEntityKey.create(entityKeyValues));
}
public static OEntityId create(String entitySe... |
package org.odata4j.core;
/**
* An <code>ORelatedEntitiesLink</code> represents a relationship to multiple OData entities.
* <p>The {@link OLinks} static factory class can be used to create <code>ORelatedEntitiesLink</code> instances.</p>
* @see OLinks
*/
public interface ORelatedEntitiesLink extends OLink ... |
package org.odata4j.core;
import org.odata4j.edm.EdmType;
/**
* OData value/instance object with the given {@link EdmType}.
*
* @see OEntity
* @see OSimpleObject
* @see OComplexObject
* @see OCollection
*/
public interface OObject {
EdmType getType();
}
|
package org.odata4j.core;
public interface Delegate<T> {
T getDelegate();
}
|
package org.odata4j.core;
// TODO(0.5) javadoc
public interface OEntityGetRequest<T> extends OEntityRequest<T> {
OEntityRequest<T> select(String select);
OEntityRequest<T> expand(String expand);
}
|
package org.odata4j.core;
import org.odata4j.edm.EdmType;
/**
* An immutable OData property instance, consisting of a name, a strongly-typed value, and an edm-type.
*
* @param <T> the java-type of the property
* <p>The {@link OProperties} static factory class can be used to create <code>OProperty</code> ... |
package org.odata4j.format;
import javax.ws.rs.core.MediaType;
import org.odata4j.core.OCollection;
import org.odata4j.core.OComplexObject;
import org.odata4j.core.OObject;
import org.odata4j.format.json.JsonCollectionFormatParser;
import org.odata4j.format.json.JsonComplexObjectFormatParser;
import org.odat... |
package org.odata4j.format.xml;
import java.io.Writer;
import org.odata4j.edm.EdmAssociation;
import org.odata4j.edm.EdmAssociationSet;
import org.odata4j.edm.EdmComplexType;
import org.odata4j.edm.EdmDataServices;
import org.odata4j.edm.EdmEntityContainer;
import org.odata4j.edm.EdmEntitySet;
import org.od... |
package org.odata4j.format.xml;
import java.util.List;
import javax.ws.rs.core.MediaType;
import org.core4j.Enumerable;
import org.core4j.Predicate1;
import org.joda.time.DateTime;
import org.joda.time.LocalDateTime;
import org.joda.time.LocalTime;
import org.odata4j.core.OEntity;
import org.odata4j.core... |
package org.odata4j.format.xml;
import java.io.Writer;
import org.joda.time.DateTime;
import org.joda.time.DateTimeZone;
import org.odata4j.core.ODataConstants;
import org.odata4j.core.OEntity;
import org.odata4j.edm.EdmEntitySet;
import org.odata4j.format.FormatWriter;
import org.odata4j.internal.InternalU... |
package org.odata4j.format.xml;
import org.odata4j.core.EntitySetInfo;
public class AtomCollectionInfo implements EntitySetInfo {
private final String href;
private final String url;
private final String title;
private final String accept;
AtomCollectionInfo(String href, String url, String title,... |
package org.odata4j.format.xml;
import java.io.Writer;
import org.odata4j.core.ODataConstants;
import org.odata4j.format.Entry;
import org.odata4j.format.FormatWriter;
import com.sun.jersey.api.core.ExtendedUriInfo;
public class AtomRequestEntryFormatWriter implements FormatWriter<Entry> {
@Override
... |
package org.odata4j.format.xml;
import java.io.Reader;
import java.io.StringWriter;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import javax.ws.rs.core.MediaType;
import org.core4j.Enumerable;
import org.core4j.Func1;
import org.odat... |
package org.odata4j.format.xml;
import java.io.Reader;
import java.util.ArrayList;
import java.util.List;
import org.odata4j.format.FormatParser;
import org.odata4j.format.SingleLink;
import org.odata4j.format.SingleLinks;
import org.odata4j.internal.InternalUtil;
import org.odata4j.stax2.QName2;
import or... |
package org.odata4j.format.xml;
import java.io.Writer;
import org.odata4j.core.ODataConstants;
import org.odata4j.format.FormatWriter;
import org.odata4j.producer.PropertyResponse;
import org.odata4j.stax2.XMLFactoryProvider2;
import org.odata4j.stax2.XMLWriter2;
import com.sun.jersey.api.core.ExtendedUriI... |
package org.odata4j.format.xml;
import java.io.Reader;
import org.odata4j.core.OEntityKey;
import org.odata4j.edm.EdmDataServices;
import org.odata4j.format.Entry;
import org.odata4j.format.FormatParser;
import org.odata4j.internal.FeedCustomizationMapping;
import org.odata4j.internal.InternalUtil;
public... |
package org.odata4j.format.xml;
import java.io.Writer;
import org.odata4j.core.ODataConstants;
import org.odata4j.format.FormatWriter;
import org.odata4j.format.SingleLink;
import org.odata4j.format.SingleLinks;
import org.odata4j.stax2.QName2;
import org.odata4j.stax2.XMLFactoryProvider2;
import org.odata4... |
package org.odata4j.format.xml;
import java.io.Writer;
import org.joda.time.DateTime;
import org.joda.time.DateTimeZone;
import org.odata4j.core.ODataConstants;
import org.odata4j.core.OEntity;
import org.odata4j.edm.EdmEntitySet;
import org.odata4j.format.Entry;
import org.odata4j.format.FormatWriter;
imp... |
package org.odata4j.format.xml;
import org.core4j.Enumerable;
import org.odata4j.stax2.Attribute2;
import org.odata4j.stax2.QName2;
import org.odata4j.stax2.StartElement2;
import org.odata4j.stax2.XMLEvent2;
public class XmlFormatParser {
public static final String NS_APP = "http://www.w3.org/2007/app";
... |
package org.odata4j.format.xml;
import java.io.Writer;
import org.odata4j.core.ODataConstants;
import org.odata4j.format.FormatWriter;
import org.odata4j.format.SingleLink;
import org.odata4j.stax2.QName2;
import org.odata4j.stax2.XMLFactoryProvider2;
import org.odata4j.stax2.XMLWriter2;
import com.sun.je... |
package org.odata4j.format.xml;
import java.util.ArrayList;
import java.util.List;
import org.odata4j.stax2.StartElement2;
import org.odata4j.stax2.XMLEvent2;
import org.odata4j.stax2.XMLEventReader2;
public class AtomServiceDocumentFormatParser extends XmlFormatParser {
public static Iterable<AtomWork... |
package org.odata4j.format.xml;
import java.util.List;
import org.core4j.Enumerable;
import org.core4j.Func1;
public class AtomWorkspaceInfo {
public static final Func1<AtomWorkspaceInfo, Enumerable<AtomCollectionInfo>> GET_COLLECTIONS =
new Func1<AtomWorkspaceInfo, Enumerable<AtomCollectionInfo>>... |
package org.odata4j.format.xml;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import org.core4j.Enumerable;
import org.core4j.Func1;
import org.core4j.Predicate1;
import org.odata4j.core.ODataVersion;
import org.odata4j.edm.EdmAssociation;
import org.... |
package org.odata4j.format.xml;
import java.io.Writer;
import org.odata4j.core.ODataConstants;
import org.odata4j.edm.EdmDataServices;
import org.odata4j.edm.EdmEntitySet;
import org.odata4j.format.FormatWriter;
import org.odata4j.stax2.QName2;
import org.odata4j.stax2.XMLFactoryProvider2;
import org.odata4... |
package org.odata4j.format;
/**
* <code>Feed</code> and <code>Entry</code> are buildings block for the ODATA payload.
* There are differences between the Atom and Json format. These interfaces are used
* where we can handle both formats the same way.
*
*/
public interface Feed {
String getNext();
... |
package org.odata4j.format;
import org.odata4j.core.OEntity;
/**
* Building block for OData payload.
*
* @see Feed
*/
public interface Entry {
String getUri();
String getETag();
OEntity getEntity();
}
|
package org.odata4j.format;
import javax.ws.rs.core.MediaType;
public enum FormatType {
ATOM(MediaType.APPLICATION_XML, MediaType.APPLICATION_ATOM_XML),
JSON(MediaType.APPLICATION_JSON);
private FormatType(String... mediaTypes) {
this.mediaTypes = mediaTypes;
}
private final String[] m... |
package org.odata4j.format;
import java.util.List;
import javax.ws.rs.core.MediaType;
import org.odata4j.edm.EdmDataServices;
import org.odata4j.format.json.JsonCollectionFormatWriter;
import org.odata4j.format.json.JsonComplexObjectFormatWriter;
import org.odata4j.format.json.JsonEntryFormatWriter;
import... |
package org.odata4j.format;
import java.io.Writer;
import com.sun.jersey.api.core.ExtendedUriInfo;
/** Write entities to an HTTP stream in a particular format
*
* @param <T> the type of the entities to be written
*/
public interface FormatWriter<T> {
/** Write an object to the formatted version of t... |
package org.odata4j.format.json;
import java.io.Writer;
import javax.ws.rs.core.MediaType;
import org.odata4j.format.Entry;
import com.sun.jersey.api.core.ExtendedUriInfo;
public class JsonRequestEntryFormatWriter extends JsonFormatWriter<Entry> {
public JsonRequestEntryFormatWriter(String jsonpCall... |
package org.odata4j.format.json;
import java.io.Reader;
import java.util.ArrayList;
import java.util.List;
import javax.ws.rs.core.MediaType;
import org.odata4j.core.ODataVersion;
import org.odata4j.core.OEntity;
import org.odata4j.core.OEntityKey;
import org.odata4j.core.OLink;
import org.odata4j.core.O... |
package org.odata4j.format.json;
import com.sun.jersey.api.core.ExtendedUriInfo;
import org.odata4j.core.OCollection;
import org.odata4j.edm.EdmType;
import org.odata4j.producer.CollectionResponse;
/**
* Writer for OCollections in JSON
*/
public class JsonCollectionFormatWriter extends JsonFormatWriter<CollectionR... |
package org.odata4j.format.json;
import org.odata4j.producer.PropertyResponse;
import com.sun.jersey.api.core.ExtendedUriInfo;
public class JsonPropertyFormatWriter extends JsonFormatWriter<PropertyResponse> {
public JsonPropertyFormatWriter(String jsonpCallback) {
super(jsonpCallback);
}
@Ov... |
package org.odata4j.format.json;
import java.io.Reader;
import java.util.ArrayList;
import java.util.List;
import org.odata4j.core.OComplexObject;
import org.odata4j.core.OComplexObjects;
import org.odata4j.core.ODataVersion;
import org.odata4j.core.OProperty;
import org.odata4j.edm.EdmComplexType;
import org.odata4j.... |
package org.odata4j.format.json;
import com.sun.jersey.api.core.ExtendedUriInfo;
import org.odata4j.producer.ComplexObjectResponse;
/**
* Writer for OComplexObjects in JSON
*/
public class JsonComplexObjectFormatWriter extends JsonFormatWriter<ComplexObjectResponse> {
public JsonComplexObjectFormatWriter(String ... |
package org.odata4j.format.json;
import java.io.Reader;
import org.odata4j.core.ODataVersion;
import org.odata4j.format.Entry;
import org.odata4j.format.FormatParser;
import org.odata4j.format.Settings;
import org.odata4j.format.json.JsonStreamReaderFactory.JsonStreamReader;
public class JsonEntryFormatPar... |
package org.odata4j.format.json;
import org.odata4j.format.SingleLink;
import org.odata4j.format.SingleLinks;
import com.sun.jersey.api.core.ExtendedUriInfo;
public class JsonSingleLinksFormatWriter extends JsonFormatWriter<SingleLinks> {
public JsonSingleLinksFormatWriter(String jsonpCallback) {
su... |
package org.odata4j.format.json;
import org.odata4j.core.OEntity;
import org.odata4j.producer.EntitiesResponse;
import com.sun.jersey.api.core.ExtendedUriInfo;
/**
* Write an RSS Feed in JSON format
*/
public class JsonFeedFormatWriter extends JsonFormatWriter<EntitiesResponse> {
public JsonFeedFor... |
package org.odata4j.format.json;
import java.math.BigDecimal;
import org.joda.time.LocalDateTime;
import org.joda.time.LocalTime;
import org.odata4j.core.Guid;
import org.odata4j.core.OProperties;
import org.odata4j.core.OProperty;
import org.odata4j.edm.EdmSimpleType;
import org.odata4j.repack.org.apache.c... |
package org.odata4j.format.json;
import org.odata4j.format.SingleLink;
import com.sun.jersey.api.core.ExtendedUriInfo;
public class JsonSingleLinkFormatWriter extends JsonFormatWriter<SingleLink> {
public JsonSingleLinkFormatWriter(String jsonpCallback) {
super(jsonpCallback);
}
@Override
... |
package org.odata4j.format.json;
import java.io.Reader;
import org.odata4j.core.OCollection;
import org.odata4j.core.OCollections;
import org.odata4j.core.OComplexObject;
import org.odata4j.core.ODataVersion;
import org.odata4j.core.OFunctionParameters;
import org.odata4j.core.OObject;
import org.odata4j.edm.EdmType;... |
package org.odata4j.format.json;
import java.io.Reader;
import org.odata4j.format.FormatParser;
import org.odata4j.format.Settings;
import org.odata4j.format.SingleLink;
import org.odata4j.format.SingleLinks;
import org.odata4j.format.json.JsonStreamReaderFactory.JsonStreamReader;
public class JsonSingleLi... |
package org.odata4j.format.json;
import org.odata4j.edm.EdmDataServices;
import org.odata4j.edm.EdmEntitySet;
import com.sun.jersey.api.core.ExtendedUriInfo;
public class JsonServiceDocumentFormatWriter extends JsonFormatWriter<EdmDataServices> {
public JsonServiceDocumentFormatWriter(String jsonpCallbac... |
package org.odata4j.format.json;
import java.io.IOException;
import java.io.Reader;
import java.text.DecimalFormat;
import java.text.NumberFormat;
import java.util.Locale;
import java.util.Stack;
import org.odata4j.format.json.JsonStreamReaderFactory.JsonParseException;
import org.odata4j.format.json.JsonSt... |
package org.odata4j.format.json;
import java.io.Writer;
import java.util.List;
import java.util.Locale;
import org.joda.time.DateTime;
import org.joda.time.LocalDateTime;
import org.joda.time.LocalTime;
import org.odata4j.core.Guid;
import org.odata4j.core.ODataConstants;
import org.odata4j.core.OEntity;
... |
package org.odata4j.format.json;
import org.odata4j.producer.EntityResponse;
import com.sun.jersey.api.core.ExtendedUriInfo;
public class JsonEntryFormatWriter extends JsonFormatWriter<EntityResponse> {
public JsonEntryFormatWriter(String jsonpCallback) {
super(jsonpCallback);
}
@Override
... |
package org.odata4j.format.json;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import org.core4j.Enumerable;
import org.core4j.Func1;
import org.odata4j.core.ODataVersion;
import org.odata4j.core.OEntities;
import org.odata4j.core.OEntity;
import org.odata4j.core.OEntityK... |
package org.odata4j.format.json;
import java.io.IOException;
import java.io.Writer;
public class JsonWriter {
private final Writer writer;
public JsonWriter(Writer writer) {
this.writer = writer;
}
public void startCallback(String functionName) {
try {
writer.write(encode(funct... |
package org.odata4j.format;
import org.odata4j.core.ODataVersion;
import org.odata4j.core.OEntityKey;
import org.odata4j.edm.EdmType;
import org.odata4j.edm.EdmDataServices;
import org.odata4j.internal.FeedCustomizationMapping;
public class Settings {
public final ODataVersion version;
public final EdmD... |
package org.odata4j.format;
public interface SingleLink {
String getUri();
}
|
package org.odata4j.format;
import java.io.Reader;
import org.odata4j.core.OEntity;
/**
* Deals with parsing the resulting stream into a <code>Entry</code> or
* <code>Feed</code> and converting it to a <code>OEntity</code>. The
* implementation depends on the format Atom or Json.
*
* @param <T> ... |
package org.odata4j.format;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import org.odata4j.core.OEntityId;
import org.odata4j.core.OEntityIds;
public class SingleLinks implements Iterable<SingleLink> {
private final List<SingleLink> links;... |
package org.odata4j.stax2;
public interface XMLEventReader2 {
boolean hasNext();
XMLEvent2 nextEvent();
String getElementText();
}
|
package org.odata4j.stax2;
public interface XMLEventWriter2 {
void add(XMLEvent2 event);
}
|
package org.odata4j.stax2;
import java.io.Writer;
public interface XMLWriterFactory2 {
XMLWriter2 createXMLWriter(Writer writer);
}
|
package org.odata4j.stax2.domimpl;
import java.io.Reader;
import java.io.Writer;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import org.core4j.ReadOnlyIterator;
import org.odata4j.internal.PlatformUtil;
import org.odata4j.stax2.Attribute2;
import org.odata4j.... |
package org.odata4j.stax2.domimpl;
import java.io.IOException;
import java.io.Writer;
import java.util.Stack;
import org.odata4j.stax2.QName2;
import org.odata4j.stax2.XMLWriter2;
public class ManualXMLWriter2 implements XMLWriter2 {
private final Writer writer;
private boolean isStartElementOpen;
... |
package org.odata4j.stax2;
public interface EndElement2 {
QName2 getName();
}
|
package org.odata4j.stax2;
public class QName2 {
private final String namespaceURI;
private final String localPart;
private final String prefix;
private final String fqName;
public QName2(String localPart) {
this(null, localPart);
}
public QName2(String namespaceURI, String localPart)... |
package org.odata4j.stax2;
public interface StartElement2 {
QName2 getName();
Attribute2 getAttributeByName(QName2 name);
Attribute2 getAttributeByName(String name);
}
|
package org.odata4j.stax2;
import java.io.Writer;
public interface XMLOutputFactory2 {
XMLEventWriter2 createXMLEventWriter(Writer writer);
}
|
package org.odata4j.stax2.staximpl;
import java.io.Reader;
import java.io.Writer;
import javax.xml.namespace.QName;
import javax.xml.stream.XMLEventReader;
import javax.xml.stream.XMLEventWriter;
import javax.xml.stream.XMLInputFactory;
import javax.xml.stream.XMLOutputFactory;
import javax.xml.stream.XMLSt... |
package org.odata4j.stax2.staximpl;
import java.io.Writer;
import java.util.Iterator;
import javax.xml.namespace.QName;
import javax.xml.stream.XMLEventFactory;
import javax.xml.stream.XMLEventWriter;
import javax.xml.stream.XMLOutputFactory;
import javax.xml.stream.XMLStreamException;
import javax.xml.stre... |
package org.odata4j.stax2;
public interface XMLWriter2 {
void startElement(String name);
void startElement(QName2 qname);
void startElement(QName2 qname, String xmlns);
void writeAttribute(String localName, String value);
void writeAttribute(QName2 qname, String value);
void writeText(S... |
package org.odata4j.stax2;
public interface Attribute2 {
String getValue();
}
|
package org.odata4j.stax2;
import org.odata4j.internal.PlatformUtil;
public abstract class XMLFactoryProvider2 {
private static XMLFactoryProvider2 STAX;
static {
try {
String clazz = PlatformUtil.runningOnAndroid() ? "org.odata4j.stax2.xppimpl.XmlPullXMLFactoryProvider2" : "org.odata4j.stax2.... |
package org.odata4j.stax2;
public interface XMLEvent2 {
boolean isStartElement();
StartElement2 asStartElement();
boolean isEndElement();
EndElement2 asEndElement();
}
|
package org.odata4j.stax2;
import java.io.Reader;
public interface XMLInputFactory2 {
XMLEventReader2 createXMLEventReader(Reader reader);
}
|
package org.odata4j.stax2.xppimpl;
import java.io.Reader;
import java.io.Writer;
import org.odata4j.stax2.Attribute2;
import org.odata4j.stax2.EndElement2;
import org.odata4j.stax2.QName2;
import org.odata4j.stax2.StartElement2;
import org.odata4j.stax2.XMLEvent2;
import org.odata4j.stax2.XMLEventReader2;
... |
/**
* The odata4j server-side (producer-side) API.
* <p>Use {@link org.odata4j.producer.ODataProducer} to implement your own OData service backend.</p>
*/
package org.odata4j.producer;
|
package org.odata4j.producer;
import java.util.List;
import org.odata4j.core.OEntity;
import org.odata4j.edm.EdmEntitySet;
/**
* An <code>EntitiesResponse</code> is a response to a client request expecting multiple OData entities.
* <p>The {@link Responses} static factory class can be used to create <code... |
package org.odata4j.producer;
import org.odata4j.core.OProperty;
/**
* An <code>PropertyResponse</code> is a response to a client request expecting a single property value.
* <p>The {@link Responses} static factory class can be used to create <code>PropertyResponse</code> instances.</p>
*/
public interface... |
package org.odata4j.producer.server;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.Executor;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.logging.Logger;
import org.core4j.CoreUt... |
package org.odata4j.producer.exceptions;
import javax.ws.rs.core.Response;
public class NotImplementedException extends ODataException {
private static final long serialVersionUID = 1L;
public NotImplementedException() {
super(Response.status(501).build());
}
public NotImplementedException(... |
package org.odata4j.producer.exceptions;
import javax.ws.rs.core.Response;
public class MethodNotAllowedException extends ODataException {
private static final long serialVersionUID = 1L;
public MethodNotAllowedException() {
super(Response.status(405).build());
}
public MethodNotAllowedExce... |
package org.odata4j.producer.exceptions;
import javax.ws.rs.core.Response;
public class ServerErrorException extends ODataException {
private static final long serialVersionUID = 1L;
public ServerErrorException() {
super(Response.status(500).build());
}
public ServerErrorException(String me... |
package org.odata4j.producer.exceptions;
import javax.ws.rs.core.Response;
public class NotAcceptableException extends ODataException {
private static final long serialVersionUID = 1L;
public NotAcceptableException() {
super(Response.status(406).build());
}
public NotAcceptableException(Str... |
package org.odata4j.producer.exceptions;
import javax.ws.rs.core.Response;
public class ForbiddenException extends ODataException {
private static final long serialVersionUID = 1L;
public ForbiddenException() {
super(Response.status(403).build());
}
public ForbiddenException(String message)... |
package org.odata4j.producer.exceptions;
import javax.ws.rs.core.Response;
public class NotAuthorizedException extends ODataException {
private static final long serialVersionUID = 1L;
public NotAuthorizedException() {
super(Response.status(401).build());
}
public NotAuthorizedException(Str... |
package org.odata4j.producer.exceptions;
import javax.ws.rs.core.Response;
public class NotFoundException extends ODataException {
private static final long serialVersionUID = 1L;
public NotFoundException() {
super(Response.status(404).build());
}
public NotFoundException(String message) {
... |
package org.odata4j.producer.exceptions;
import javax.ws.rs.core.Response;
public class BadRequestException extends ODataException {
private static final long serialVersionUID = 1L;
public BadRequestException() {
super(Response.status(400).build());
}
public BadRequestException(String messa... |
package org.odata4j.producer.exceptions;
import javax.ws.rs.WebApplicationException;
import javax.ws.rs.core.Response;
import javax.ws.rs.core.Response.Status;
public class ODataException extends WebApplicationException {
private static final long serialVersionUID = 1L;
public ODataException() {
... |
package org.odata4j.producer;
/**
* The base payload interface for responses to client requests.
* @see EntitiesResponse
* @see EntityResponse
* @see PropertyResponse
*/
public interface BaseResponse {
}
|
package org.odata4j.producer.resources;
import java.io.StringReader;
import java.io.StringWriter;
import java.util.logging.Logger;
import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.PUT;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.Context;
import java... |
package org.odata4j.producer.resources;
import java.io.StringWriter;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.Context;
import javax.ws.rs.core.Response;
import org.odata4j.core.ODataConstants;
import org.odata4j.e... |
package org.odata4j.producer.resources;
import java.util.Properties;
import java.util.logging.Logger;
import javax.ws.rs.core.Context;
import javax.ws.rs.ext.Provider;
import org.odata4j.producer.ODataProducer;
import org.odata4j.producer.ODataProducerFactory;
import com.sun.jersey.api.core.ResourceConfi... |
package org.odata4j.producer.resources;
import com.sun.jersey.api.core.DefaultResourceConfig;
public class ODataResourceConfig extends DefaultResourceConfig {
public ODataResourceConfig() {
super(EntitiesRequestResource.class, EntityRequestResource.class, MetadataResource.class, ServiceDocumentResource.... |
package org.odata4j.producer.resources;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.odata4j.expression.BoolCommonExpression;
import org.odata4j.expression.CommonExpression;
import org.odata4j.expression.EntitySimpleProperty;
import org.odata4j.expression.ExpressionParser;
import ... |
package org.odata4j.producer.resources;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
@Path("clientaccesspolicy.xml")
public class ClientAccessPolicyXmlResource {
@GET
@Produces("text/xml")
public String getClientAccessPolicyXml() {
String content = "<?xml vers... |
package org.odata4j.producer.resources;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
@Path("crossdomain.xml")
public class CrossDomainXmlResource {
@GET
@Produces("text/xml")
public String getCrossDomainXml() {
String content = "<?xml version=\"1.0\"?>" +
... |
package org.odata4j.producer.resources;
import java.lang.annotation.Annotation;
import java.lang.reflect.Type;
import java.net.URI;
import java.security.Principal;
import java.util.Date;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import javax.ws.rs.WebApplicationException;
import javax.ws.r... |
package org.odata4j.producer.resources;
import java.io.StringWriter;
import java.util.HashMap;
import java.util.Map;
import javax.ws.rs.core.Response;
import javax.ws.rs.core.Response.Status;
import org.odata4j.core.ODataConstants;
import org.odata4j.core.ODataVersion;
import org.odata4j.core.OFunctionParameter;
imp... |
package org.odata4j.producer.resources;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.lang.annotation.Annotation;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.uti... |
package org.odata4j.producer.resources;
import java.io.StringWriter;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.Context;
import javax.ws.rs.core.Response;
import org.odata4j.core.ODataConstants;
import org.odata4j.edm.EdmDataServices;
import org.... |
package org.odata4j.producer.resources;
import java.io.StringWriter;
import java.util.logging.Logger;
import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.Q... |
package org.odata4j.producer.resources;
import java.io.StringWriter;
import java.net.URI;
import java.util.logging.Logger;
import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.PUT;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
impor... |
package org.odata4j.producer.resources;
import java.io.StringReader;
import javax.ws.rs.core.MediaType;
import org.odata4j.core.ODataConstants;
import org.odata4j.core.ODataVersion;
import org.odata4j.core.OEntity;
import org.odata4j.core.OEntityKey;
import org.odata4j.edm.EdmDataServices;
import org.odat... |
package org.odata4j.producer.resources;
import java.io.StringWriter;
import java.net.URI;
import java.util.List;
import java.util.logging.Logger;
import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces... |
package org.odata4j.producer.resources;
import com.sun.jersey.api.core.DefaultResourceConfig;
public class CrossDomainResourceConfig extends DefaultResourceConfig {
public CrossDomainResourceConfig() {
super(CrossDomainXmlResource.class, ClientAccessPolicyXmlResource.class);
}
}
|
package org.odata4j.producer;
import java.util.Collection;
import org.odata4j.core.OEntityId;
import org.odata4j.edm.EdmMultiplicity;
public interface EntityIdResponse {
EdmMultiplicity getMultiplicity();
Collection<OEntityId> getEntities();
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.