Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup the DAP4 support in the tds repository #394

Merged
merged 9 commits into from
Jan 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
14 changes: 0 additions & 14 deletions dap4/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,6 @@ ext.title = 'Data Access Protocol (DAP) version 4.0' // Will be inherited by su

// dap4 has no source code nor any artifacts to publish

// NON-TRANSITIVE Dependency graph:
// module depends on
// ----------------------------------------
// common:
// d4core nothing
// d4lib d4core httpservices
// d4cdm d4lib cdm
// server:
// d4servletshared d4cdmshared netcdf4
// d4ts d4servletshared
// d4tswar d4ts
// tests:
// d4tests d4servletshared d4ts

subprojects {
// TODO: Give the subprojects real titles.
ext.title = "DAP4: $name"
Expand Down
7 changes: 4 additions & 3 deletions dap4/d4servlet/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ apply from: "$rootDir/gradle/any/java-published.gradle"
dependencies {
implementation enforcedPlatform(project(':tds-platform'))

compile 'edu.ucar:dap4'
compile 'edu.ucar:httpservices'
implementation 'edu.ucar:dap4'
implementation 'edu.ucar:httpservices'
implementation 'edu.ucar:cdm-core'

compileOnly 'jakarta.servlet:jakarta.servlet-api'
compile 'org.slf4j:slf4j-api'
compileOnly 'org.slf4j:slf4j-api'
}
84 changes: 84 additions & 0 deletions dap4/d4servlet/src/main/java/dap4/servlet/CDMDMR.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
/*
* Copyright 2012, UCAR/Unidata.
* See the LICENSE file for more information.
*/

package dap4.servlet;

import dap4.core.dmr.*;

public class CDMDMR {
//////////////////////////////////////////////////

public static class CDMAttribute extends DapAttribute {
public CDMAttribute(String name, DapType basetype) {
super(name, basetype);
}
}

public static class CDMAttributeSet extends DapAttributeSet {
public CDMAttributeSet(String name) {
super(name);
}
}

public static class CDMDimension extends DapDimension {
public CDMDimension(String name, long size) {
super(name, size);
}
}

public static class CDMMap extends DapMap {
public CDMMap(String target) {
super(target);
}
}

public abstract static class CDMVariable extends DapVariable {
public CDMVariable(String name, DapType t) {
super(name, t);
}
}

public static class CDMGroup extends DapGroup {
public CDMGroup(String name) {
super(name);
}
}

public static class CDMDataset extends DapDataset {
public CDMDataset(String name) {
super(name);
}
}

public static class CDMEnumeration extends DapEnumeration {
public CDMEnumeration(String name, DapType basetype) {
super(name, basetype);
}
}

public static class CDMEnumConst extends DapEnumConst {
public CDMEnumConst(String name, long value) {
super(name, value);
}
}

public static class CDMStructure extends DapStructure {
public CDMStructure(String name) {
super(name);
}
}

public static class CDMSequence extends DapSequence {
public CDMSequence(String name) {
super(name);
}
}

public static class CDMOtherXML extends DapOtherXML {
public CDMOtherXML(String name) {
super(name);
}
}
}
Loading
Loading