This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this.loginservice.getToken('restclient','password').then(token =>{ | |
this.tokeninfo = token; | |
this.access_token = this.tokeninfo.access_token; | |
//console.log("access_token="+this.access_token); | |
}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
JSONObject server = new JSONObject(); | |
server.put("osPlatform", osPlatform); | |
server.put("name", name); | |
server.put("size", size); | |
server.put("identifier", identifier); | |
server.put("department", department); | |
server.put("description", description); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HttpEntity<?> request = new HttpEntity<Object>(headers); | |
Map<String, Object> params = new HashMap<String, Object>(); | |
params.put("name", name); | |
System.out.println("upload url: " + builder.build().encode().toUri()); | |
RestResponse result = new RestResponse(); | |
try { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Subject } from 'rxjs/Subject'; | |
import { TokenInfo } from './tokeninfo'; | |
//import { Token } from './checktoken'; | |
//import { Applist } from './applist'; | |
//import { ApplistWithVersion } from './applistwithversion'; | |
import { Injectable, Input } from '@angular/core'; | |
import { Http } from '@angular/http'; | |
import { ActivatedRoute } from '@angular/router'; | |
import {Observable} from 'rxjs/Observable'; |