Back to project page android-weblogic-monitor.
The source code is released under:
GNU General Public License
If you think the Android project android-weblogic-monitor listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
/* * ************************************************************************* */* w w w. j a v a 2 s. c om*/ * Copyright (c) 2013 - Jeffrey A. West Designs * * This code is provided for example purposes only. Neither Oracle nor * Jeffrey A. West assume any responsibility or liability for the consequences * of using this code. If you choose to use this code for any reason, * including but not limited to its use as an example you do so at your own * risk and without the support of Oracle. * * This code is provided under the following licenses: * - GNU General Public License (GPL-2.0) * * ************************************************************************** */ package com.jeffreyawest.weblogic.monitor.activity; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.util.Log; import android.view.Menu; import android.view.View; import android.widget.EditText; import com.jeffreyawest.weblogic.monitor.R; import com.jeffreyawest.weblogic.monitor.activity.list.ListDomainEntitiesActivity; import com.jeffreyawest.weblogic.rest.WebLogicHTTPRestAdapter; import com.jeffreyawest.weblogic.rest.WebLogicRestAdapter; public class EndpointEntryActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_endpoint_entry); } @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.endpoint_entry, menu); return true; } public void clickNext(View pView) { Log.v("Endpoint", "ClickGo"); Intent intent = new Intent(this, ListDomainEntitiesActivity.class); EditText editHost = (EditText) findViewById(R.id.wls_host); EditText editPort = (EditText) findViewById(R.id.wls_port); EditText editUser = (EditText) findViewById(R.id.wls_user); EditText editPasswd = (EditText) findViewById(R.id.wls_passwd); int port = 7001; try { port = Integer.parseInt(editPort.getText().toString()); } catch (Exception e) { e.printStackTrace(); } WebLogicRestAdapter.initializeHTTPAdapter( editHost.getText().toString(), port, editUser.getText().toString(), editPasswd.getText().toString()); startActivity(intent); } public void clickOffline(View view) { WebLogicHTTPRestAdapter.initializeDemoAdapter(); Intent intent = new Intent(this, ListDomainEntitiesActivity.class); startActivity(intent); } }