blob_id
stringlengths 40
40
| directory_id
stringlengths 40
40
| path
stringlengths 4
410
| content_id
stringlengths 40
40
| detected_licenses
sequencelengths 0
51
| license_type
stringclasses 2
values | repo_name
stringlengths 5
132
| snapshot_id
stringlengths 40
40
| revision_id
stringlengths 40
40
| branch_name
stringlengths 4
80
| visit_date
timestamp[us] | revision_date
timestamp[us] | committer_date
timestamp[us] | github_id
int64 5.85k
689M
⌀ | star_events_count
int64 0
209k
| fork_events_count
int64 0
110k
| gha_license_id
stringclasses 22
values | gha_event_created_at
timestamp[us] | gha_created_at
timestamp[us] | gha_language
stringclasses 131
values | src_encoding
stringclasses 34
values | language
stringclasses 1
value | is_vendor
bool 1
class | is_generated
bool 2
classes | length_bytes
int64 3
9.45M
| extension
stringclasses 32
values | content
stringlengths 3
9.45M
| authors
sequencelengths 1
1
| author_id
stringlengths 0
313
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ad2385438188ca61d5fa7325cf418df0362c1ca2 | dc0919c9609f03f5b239ec0799cea22ed070f411 | /cn/jpush/b/a/a/b.java | 6d42656ccf5d3a67f3e318f2ffc437961b6b23fd | [] | no_license | jjensn/milight-decompile | a8f98af475f452c18a74fd1032dce8680f23abc0 | 47c4b9eea53c279f6fab3e89091e2fef495c6159 | refs/heads/master | 2021-06-01T17:23:28.555123 | 2016-10-12T18:07:53 | 2016-10-12T18:07:53 | 70,721,205 | 5 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,564 | java | package cn.jpush.b.a.a;
import cn.jpush.android.util.j;
import cn.jpush.b.a.c.a;
import java.nio.ByteBuffer;
public final class b extends i
{
private static final String[] z;
long a;
String b;
static
{
String[] arrayOfString1 = new String[3];
String str1 = "\002:\034K\bmu\037L\n@nK";
int i = -1;
String[] arrayOfString2 = arrayOfString1;
int j = 0;
Object localObject1 = str1.toCharArray();
int k = localObject1.length;
int m;
label35: int i3;
if (k <= 1)
{
m = 0;
Object localObject2 = localObject1;
int n = m;
int i1 = k;
Object localObject3 = localObject1;
while (true)
{
int i2 = localObject3[m];
switch (n % 5)
{
default:
i3 = 111;
label96: localObject3[m] = (char)(i3 ^ i2);
m = n + 1;
if (i1 != 0)
break label133;
localObject3 = localObject2;
n = m;
m = i1;
case 0:
case 1:
case 2:
case 3:
}
}
label133: k = i1;
localObject1 = localObject2;
}
while (true)
{
if (k > m)
break label35;
String str2 = new String((char[])localObject1).intern();
switch (i)
{
default:
arrayOfString2[j] = str2;
str1 = "\0167Q";
j = 1;
arrayOfString2 = arrayOfString1;
i = 0;
break;
case 0:
arrayOfString2[j] = str2;
j = 2;
arrayOfString2 = arrayOfString1;
str1 = "";
i = 1;
break;
case 1:
arrayOfString2[j] = str2;
z = arrayOfString1;
return;
i3 = 46;
break label96;
i3 = 26;
break label96;
i3 = 113;
break label96;
i3 = 56;
break label96;
m = 0;
}
}
}
public b(f paramf, ByteBuffer paramByteBuffer)
{
super(paramf, paramByteBuffer);
}
public final long a()
{
return this.a;
}
public final void b()
{
super.b();
a(this.a);
a(this.b);
}
public final void c()
{
super.c();
ByteBuffer localByteBuffer = this.f;
this.a = j.d(localByteBuffer, this);
this.b = a.a(localByteBuffer, this);
}
public final String d()
{
return this.b;
}
public final String toString()
{
return z[2] + this.a + z[0] + this.b + z[1] + super.toString();
}
}
/* Location:
* Qualified Name: cn.jpush.b.a.a.b
* Java Class Version: 6 (50.0)
* JD-Core Version: 0.6.1-SNAPSHOT
*/ | [
"[email protected]"
] | |
678d78f3e1ad9c923ff62c4953cf635e3216bf3e | fddf57a8c5c0cd07bb3b2ab1957c8df88c1c71e1 | /src/main/java/br/usjt/usjt_ccp3_consumo_img_init/model/entity/Filme.java | 819fd0c74a1c8beed98017f28d6b59708d720b46 | [] | no_license | WellsSA/FilmCentral_Java | 73d1e0221cd827635a93244c9bd42963b902e983 | bf237c19094ac11981c689a21cea54b9fa0d3206 | refs/heads/master | 2022-09-23T14:29:12.568955 | 2020-06-01T02:58:28 | 2020-06-01T02:58:28 | 268,411,467 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,658 | java | package br.usjt.usjt_ccp3_consumo_img_init.model.entity;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import com.fasterxml.jackson.annotation.JsonFormat;
@Entity
//@Table(name="Filme")
public class Filme {
@Id
@NotNull
@GeneratedValue(strategy=GenerationType.IDENTITY)
private int id;
@NotNull
@Size(min=2, max=100, message="Tamanho entre 2 e 100 caracteres")
private String titulo;
@Size(max=10000, message="Tamanho entre 20 e 10000 caracteres")
private String descricao;
@Max(value=1000)
@Min(value=1)
private double popularidade;
@JsonFormat(pattern="dd/MM/yyyy")
@Temporal(value = TemporalType.DATE)
private Date dataLancamento;
@Size(max=200, message="Tamanho entre 1 e 200 caracteres")
private String posterPath;
@Size(max=60, message="Tamanho entre 1 e 60 caracteres")
private String diretor;
@NotNull
@ManyToOne
@JoinColumn(name="id_genero")
private Genero genero;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getTitulo() {
return titulo;
}
public void setTitulo(String titulo) {
this.titulo = titulo;
}
public String getDescricao() {
return descricao;
}
public void setDescricao(String descricao) {
this.descricao = descricao;
}
public double getPopularidade() {
return popularidade;
}
public void setPopularidade(double popularidade) {
this.popularidade = popularidade;
}
public Date getDataLancamento() {
return dataLancamento;
}
public void setDataLancamento(Date dataLancamento) {
this.dataLancamento = dataLancamento;
}
public String getPosterPath() {
return posterPath;
}
public void setPosterPath(String posterPath) {
this.posterPath = posterPath;
}
public String getDiretor() {
return diretor;
}
public void setDiretor(String diretor) {
this.diretor = diretor;
}
public Genero getGenero() {
return genero;
}
public void setGenero(Genero genero) {
this.genero = genero;
}
@Override
public String toString() {
return "Filme [id=" + id + ", titulo=" + titulo + ", descricao=" + descricao + ", popularidade=" + popularidade
+ ", dataLancamento=" + dataLancamento + ", posterPath=" + posterPath + ", diretor=" + diretor
+ ", genero=" + genero + "]";
}
}
| [
"[email protected]"
] | |
335ef73178daa1751293498086026d431918b225 | 7a285fa0fbf64af97d565fc92ed8e08b519b2d20 | /src/main/java/model/Curso.java | 96de762d5be878bd47748439898712026513d7e2 | [
"MIT"
] | permissive | carlosfilho88/ooj4 | da8e89bc1597dcc86c607700a1d47319a8ad072c | 8152042c45d32dcb3dbe33a814eb140d67464e97 | refs/heads/master | 2021-03-12T19:53:48.022683 | 2015-07-06T18:27:26 | 2015-07-06T18:27:26 | 38,595,004 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,361 | java | package model;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import com.mysql.jdbc.Connection;
import com.mysql.jdbc.PreparedStatement;
import util.DriverConnection;
public class Curso {
private Integer id;
private String nome;
public Curso() {};
public Curso(Integer id, String nome) {
super();
this.id = id;
this.nome = nome;
}
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getNome() {
return nome;
}
public void setNome(String nome) {
this.nome = nome;
}
public String toString() {
return getId() + " " + getNome();
}
public static List<Curso> getCursos() throws SQLException {
DriverConnection driver = new DriverConnection();
PreparedStatement st = null;
Connection conn = null;
try {
driver.register();
conn = driver.getConnection();
st = (PreparedStatement) conn.prepareStatement("SELECT * from curso");
ResultSet rs = st.executeQuery();
ArrayList<Curso> cursos = new ArrayList<Curso>();
while (!rs.wasNull() && rs.next()) {
cursos.add(new Curso(rs.getInt("id"), rs.getString("nome")));
}
rs.close();
rs = null;
return cursos;
} catch (Exception e) {
e.printStackTrace();
} finally {
st.close();
conn.close();
}
return null;
}
}
| [
"[email protected]"
] | |
79ae82c6b418c8eb52dbf5e839fc624653b5f252 | 002278fffeeec6bce5eb3f9916e1b2c7e10cae99 | /app/src/androidTest/java/nl/vlessert/vgmripsplayer/ExampleInstrumentedTest.java | 5519e7e20dfdf736e59790629d6e25495ec1277f | [] | no_license | niekvlessert/VGMRipsPlayer | d715e7530f2355c49e2e3eae9997f316612c6c89 | 4e57acea06ce7ab276e45defe640a5d1853ac3ef | refs/heads/master | 2020-05-17T11:52:05.015790 | 2019-05-04T21:07:53 | 2019-05-04T21:07:53 | 183,695,955 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 734 | java | package nl.vlessert.vgmripsplayer;
import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.*;
/**
* Instrumented test, which will execute on an Android device.
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
@RunWith(AndroidJUnit4.class)
public class ExampleInstrumentedTest {
@Test
public void useAppContext() {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getTargetContext();
assertEquals("nl.vlessert.vgmripsplayer", appContext.getPackageName());
}
}
| [
"[email protected]"
] | |
d93f0a98ad99af7fcd0765313f942917cbd75c71 | dcb66fad649f73f7c08dddd25896221d7639200f | /mybatis-ping-spring-boot/src/main/java/com/mybatis/ping/spring/boot/extend/dao/BaseCURDDao.java | dbe3928f31b6c133a835792baced733333388f0c | [] | no_license | xiaoping1988/ping-spring-boot | 8b0ec6fa69998a6e5648e0295f71740a138718b1 | ad666c134842f81cd7e5f250a1870f29e5900cd4 | refs/heads/master | 2021-01-19T13:13:08.471036 | 2018-05-20T07:01:53 | 2018-05-20T07:01:53 | 100,834,095 | 2 | 4 | null | null | null | null | UTF-8 | Java | false | false | 1,393 | java | package com.mybatis.ping.spring.boot.extend.dao;
import com.mybatis.ping.spring.boot.extend.entity.BaseModel;
import com.mybatis.ping.spring.boot.vo.Column;
import com.mybatis.ping.spring.boot.vo.Condition;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* 所有要支持curd功能的dao都必须继承此类,所有数据库实体对应的dao的名称格式必须实体名称+Dao,
* 包路径是实体包路径+".dao"
* Created by 刘江平 on 2016-10-14.
*/
public interface BaseCURDDao<T extends BaseModel> extends BaseQueryDao<T>{
/**
* 新增一条记录
* @param entity
*/
void insert(T entity);
/**
* 根据主键修改一条记录,为null的属性不修改
* @param entity
*/
void updateByPk(T entity);
/**
* 按条件批量修改某个字段的值
* @param columns 要修改的字段信息
* @param conditions 条件
* @return
*/
void updateBatchColumns(@Param(value = "columns") List<Column> columns, @Param(value = "conditions") List<Condition> conditions);
/**
* 根据主键删除唯一一条记录
* @param entity
*/
void deleteByPk(T entity);
/**
* 按条件批量删除
* @param conditions
*/
void deleteBatch(@Param(value = "conditions") List<Condition> conditions);
}
| [
"[email protected]"
] | |
aafc28c0bfd3858e4a5a81642a6b6a2f178facbf | 66f986b3949c31d44f18c25e68cc06bfafebc372 | /src/jbase/Table.java | faa4aa111dd7e444096e9346f46ebab564aceb0f | [] | no_license | n-insaidoo/JBase | 98cb1a0aaef084441861f90e1fc991ab5ef4924e | 18892cd1a04399b774b9443bccaa089bba44bff8 | refs/heads/master | 2021-10-25T05:25:35.089446 | 2019-03-19T19:01:38 | 2019-03-19T19:01:38 | 176,297,782 | 0 | 1 | null | 2021-10-14T09:46:20 | 2019-03-18T13:58:38 | Java | UTF-8 | Java | false | false | 4,633 | java | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package jbase;
import java.io.*;
import java.util.List;
import java.util.ArrayList;
import java.util.Arrays;
/**
*
* @author Nana
*/
public class Table implements Serializable{
private String name;
private List<Row> rows;
private List<String[]> columns;
private JBase parentDb;
/**
* Constructor
* @param tableName Table's name
* @param columnsTypes Comma separated set of names and types. E.g. [name Type, name Type,...,nameN TypeN]
*/
public Table(String tableName,String columnsTypes){
name = tableName;
parentDb = null;
rows = new ArrayList<>();
columns = new ArrayList<>();
String colsTypes = columnsTypes;
String[] tuples = colsTypes.split(",");
for(String tuple: tuples){
String[] colType = tuple.trim().split("\\s");
columns.add(colType);
}
}
public Table(String tableName,String columnsTypes, JBase jb){
name = tableName;
parentDb = jb;
rows = new ArrayList<>();
columns = new ArrayList<>();
String colsTypes = columnsTypes;
String[] tuples = colsTypes.split(",");
for(String tuple: tuples){
String[] colType = tuple.trim().split("\\s");
columns.add(colType);
}
}
public void setParentDb(JBase jb){
parentDb = jb;
}
public String getName(){
return name;
}
/**
* Returns a list of all the column names in the table
* @return List of all the column names in the table
*/
public List<String> getColumnsNames(){
List<String> cols = new ArrayList<>();
for(String[] s: columns){
cols.add(s[0].toLowerCase()); // due to case sensitivity needs; do it here or where the method it's called
}
return cols;
}
/**
* Adds columns according to comma separated format specified in the specs.
* @param namesTypes Comma separated set of names and types. E.g. [name Type, name Type,...,nameN TypeN]
*/
public void addColumns(String namesTypes){
String colsTypes = namesTypes;
String[] tuples = colsTypes.split(",");
for(String tuple: tuples){
String[] colType = tuple.trim().split("\\s");
columns.add(colType);
// new column added; every row has to be initialised in that spot
for (Row r : rows){
r.addValue("NULL");
}
}
parentDb.persist();
}
public void deleteColumn(int index){
for (Row r : rows){
r.removeValue(index);
}
columns.remove(index);
parentDb.persist();
}
public int getColumns(){
return columns.size();
}
/**
* Finds a column's index by it's name
* @param name Column's name
* @return Column's index
*/
public int getColumnIndexByName(String name){
int result = -1;
List<String> cols = getColumnsNames();
result = cols.indexOf(name);
cols.indexOf(name);
return result;
}
public void deleteRow(Row r){
rows.remove(r);
}
public List<Row> getTableRows(){
return rows;
}
public int getRows(){
return rows.size();
}
/**
* Returns info (name and type) concerning a specific column
* @param index Column's index
* @return Column's name and type
*/
public String getColumnMeta(int index){
return Arrays.toString(columns.get(index));
}
public void addRow(String data){
Row r = new Row();
String[] rowValues = data.split(",");
for(String val : rowValues){
r.addValue(val.trim());
}
rows.add(r);
}
@Override
public String toString(){
String output="";
output = name+"\n";
for(String[] column : columns){
//output+=(column[0]+"|["+column[1]+"]|");
output+=(column[0]+" | ");
}
output=output.substring(0, output.length()-3)+"\n";
for(Row r : rows)
output+=r.toString()+"\n";
output+="\n";
return output;
}
}
| [
"[email protected]"
] | |
9e8be4886e224153943af79cbf43256ca0243c2b | 82c9b80ba792bc70ce95f9c4d430a4a14e8176c9 | /f/rdescent/FRecursiveDescentParser.java | dfe3e13623d4de5a3007994c419db41b2d6e399b | [] | no_license | dchopra001/Compilers | aa7afbe474db4b2e84a2f6ea6971232a8d9966ad | 6e7823c10ac78d24c856b3432c776a98c0e32eed | refs/heads/master | 2021-01-11T07:25:05.742298 | 2016-10-30T19:09:35 | 2016-10-30T19:09:35 | 72,369,343 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,194 | java | package ece351.f.rdescent;
import org.parboiled.common.ImmutableList;
import ece351.common.ast.AndExpr;
import ece351.common.ast.AssignmentStatement;
import ece351.common.ast.ConstantExpr;
import ece351.common.ast.Expr;
import ece351.common.ast.NotExpr;
import ece351.common.ast.OrExpr;
import ece351.common.ast.VarExpr;
import ece351.f.ast.FProgram;
import ece351.util.CommandLine;
import ece351.util.Lexer;
import ece351.vhdl.VConstants;
public final class FRecursiveDescentParser implements VConstants {
// instance variables
private final Lexer lexer;
public FRecursiveDescentParser(String... args) {
final CommandLine c = new CommandLine(args);
lexer = new Lexer(c.readInputSpec());
}
public FRecursiveDescentParser(final Lexer lexer) {
this.lexer = lexer;
}
public static void main(final String arg) {
main(new String[]{arg});
}
public static void main(final String[] args) {
parse(args);
}
public static FProgram parse(final String... args) {
final FRecursiveDescentParser p = new FRecursiveDescentParser(args);
return p.parse();
}
public FProgram parse() {
return program();
}
FProgram program() {
ImmutableList<AssignmentStatement> formulas = ImmutableList.of();
while (!lexer.inspectEOF()) {
formulas = formulas.append(formula());
}
lexer.consumeEOF();
return new FProgram(formulas);
}
AssignmentStatement formula() {
final VarExpr var = var();
lexer.consume("<=");
final Expr expr = expr();
lexer.consume(";");
return new AssignmentStatement(var, expr);
}
VarExpr var() {
VarExpr newVar = new VarExpr(lexer.consumeID());
return newVar;
}
Expr term() {
AndExpr and = null;
Expr left = factor();
while (lexer.inspect("and")){
lexer.consume("and");
and = new AndExpr(left,factor());
left = and;
}
if (and != null){
return and;
}else{
return left;
}
}
Expr factor(){
if (lexer.inspect("not")){
lexer.consume("not");
NotExpr not = new NotExpr(factor());
return not;
} else if(lexer.inspect("(")){
lexer.consume("(");
Expr ex = expr();
lexer.consume(")");
return ex;
} else if(peekConstant()){
lexer.consume("'");
ConstantExpr newConstant = null;
if( lexer.inspect("0"))
{
newConstant = ConstantExpr.FalseExpr;
}else if (lexer.inspect("1")){
newConstant = ConstantExpr.TrueExpr;
}
lexer.consume("0","1");
lexer.consume("'");
return newConstant;
}else{
return var();
}
}
Expr expr() {
OrExpr or = null;
Expr left = term();
while (lexer.inspect("or")){
lexer.consume("or");
or = new OrExpr(left,term());
left = or;
}
if (or != null){
return or;
}else{
return left;
}
}
// TODO: 51 lines snipped
// helper functions
private boolean peekConstant() {
return lexer.inspect("'");
}
}
| [
"[email protected]"
] | |
3e621eb9b77fc52d03cc12035f4591ff14bd1e07 | fa91450deb625cda070e82d5c31770be5ca1dec6 | /Diff-Raw-Data/20/20_a5b8fe11a6077da52ab08a39c45f6a3aae69a1f2/JpaDropDao/20_a5b8fe11a6077da52ab08a39c45f6a3aae69a1f2_JpaDropDao_t.java | f15d5340d6e3be0a79054b7b5940f6b700394c13 | [] | no_license | zhongxingyu/Seer | 48e7e5197624d7afa94d23f849f8ea2075bcaec0 | c11a3109fdfca9be337e509ecb2c085b60076213 | refs/heads/master | 2023-07-06T12:48:55.516692 | 2023-06-22T07:55:56 | 2023-06-22T07:55:56 | 259,613,157 | 6 | 2 | null | 2023-06-22T07:55:57 | 2020-04-28T11:07:49 | null | UTF-8 | Java | false | false | 23,304 | java | /**
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/agpl.html>
*
* Copyright (C) Ushahidi Inc. All Rights Reserved.
*/
package com.ushahidi.swiftriver.core.api.dao.impl;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.persistence.Query;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Repository;
import com.ushahidi.swiftriver.core.api.dao.DropDao;
import com.ushahidi.swiftriver.core.model.Account;
import com.ushahidi.swiftriver.core.model.Bucket;
import com.ushahidi.swiftriver.core.model.Drop;
import com.ushahidi.swiftriver.core.model.DropComment;
import com.ushahidi.swiftriver.core.model.DropSource;
import com.ushahidi.swiftriver.core.model.Link;
import com.ushahidi.swiftriver.core.model.Media;
import com.ushahidi.swiftriver.core.model.MediaThumbnail;
import com.ushahidi.swiftriver.core.model.Place;
import com.ushahidi.swiftriver.core.model.Tag;
/**
* @author ekala
*
*/
@Repository
public class JpaDropDao extends AbstractJpaDao<Drop> implements DropDao {
final Logger logger = LoggerFactory.getLogger(JpaDropDao.class);
// Drop sources
/**
* @see DropDao#createDrops(Collection)
*/
public void createDrops(Collection<Drop> drops) {
// TODO Auto-generated method stub
}
/**
* @see DropDao#addLinks(long, Collection)
*/
public void addLinks(long dropId, Collection<Link> links) {
findById(dropId).getLinks().addAll(links);
}
/**
* @see DropDao#addPlaces(long, Collection)
*/
public void addPlaces(long dropId, Collection<Place> places) {
findById(dropId).getPlaces().addAll(places);
}
/**
* @see DropDao#addMultipleMedia(long, Collection)
*/
public void addMultipleMedia(long dropId, Collection<Media> media) {
findById(dropId).getMedia().addAll(media);
}
/**
* @see DropDao#addTags(long, Collection)
*/
public void addTags(long dropId, Collection<Tag> tags) {
findById(dropId).getTags().addAll(tags);
}
/**
* @see DropDao#findDropsByHash(ArrayList)
*/
@SuppressWarnings("unchecked")
public List<Drop> findDropsByHash(ArrayList<String> dropHashes) {
String sql = "FROM Drop d WHERE d.dropletHash in (?1)";
Query query = em.createQuery(sql);
query.setParameter(1, dropHashes);
return (List<Drop>) query.getResultList();
}
/*
* (non-Javadoc)
*
* @see
* com.ushahidi.swiftriver.core.api.dao.DropDao#populateMetadata(java.util
* .List, com.ushahidi.swiftriver.core.model.Account)
*/
public void populateMetadata(List<Drop> drops, DropSource dropSource) {
if (drops.size() == 0) {
return;
}
populateTags(drops, dropSource);
populateLinks(drops, dropSource);
populateMedia(drops, dropSource);
populatePlaces(drops, dropSource);
populateBuckets(drops);
}
/**
* Populate tag metadata into the given drops.
*
* @param drops
* @param dropSource
*/
public void populateTags(List<Drop> drops, DropSource dropSource) {
List<Long> dropIds = new ArrayList<Long>();
for (Drop drop : drops) {
dropIds.add(drop.getId());
}
String sql = null;
switch (dropSource) {
case RIVER:
sql = getRiverTagsQuery();
break;
case BUCKET:
sql = getBucketTagsQuery();
break;
}
Query query = em.createNativeQuery(sql);
query.setParameter("drop_ids", dropIds);
// Group the tags by drop id
Map<Long, List<Tag>> tags = new HashMap<Long, List<Tag>>();
for (Object oRow : query.getResultList()) {
Object[] r = (Object[]) oRow;
Long dropId = ((BigInteger) r[0]).longValue();
Tag tag = new Tag();
tag.setId(((BigInteger) r[1]).longValue());
tag.setTag((String) r[2]);
tag.setType((String) r[4]);
List<Tag> t = tags.get(dropId);
if (t == null) {
t = new ArrayList<Tag>();
tags.put(dropId, t);
}
t.add(tag);
}
for (Drop drop : drops) {
List<Tag> t = tags.get(drop.getId());
if (t != null) {
drop.setTags(t);
} else {
drop.setTags(new ArrayList<Tag>());
}
}
}
/**
* Builds and returns the query for fetching tags for the drops
* in a <code>com.ushahidi.swiftriver.core.model.Bucket</code>
*
* @return
*/
private String getBucketTagsQuery() {
String sql = "SELECT `buckets_droplets`.`id` AS `droplet_id`, `tag_id` AS `id`, `tag`, `tag_canonical`, `tag_type` ";
sql += "FROM `droplets_tags` ";
sql += "INNER JOIN `tags` ON (`tags`.`id` = `tag_id`) ";
sql += "INNER JOIN buckets_droplets ON (`buckets_droplets`.`droplet_id` = `droplets_tags`.`droplet_id`)";
sql += "WHERE `buckets_droplets`.`id` IN :drop_ids ";
sql += "AND `tags`.`id` NOT IN ( ";
sql += " SELECT `tag_id` FROM `bucket_droplet_tags` ";
sql += " WHERE `buckets_droplets_id` IN :drop_ids ";
sql += " AND `deleted` = 1) ";
sql += "UNION ALL ";
sql += "SELECT `buckets_droplets_id` AS `droplet_id`, `tag_id` AS `id`, `tag`, `tag_canonical`, `tag_type` ";
sql += "FROM `bucket_droplet_tags` ";
sql += "INNER JOIN `tags` ON (`tags`.`id` = `tag_id`) ";
sql += "WHERE `buckets_droplets_id` IN :drop_ids ";
sql += "AND `deleted` = 0 ";
return sql;
}
/**
* Builds and returns the query for fetching tags for the drops
* in a <code>com.ushahidi.swiftriver.core.model.River</code>
*
* @return
*/
private String getRiverTagsQuery() {
String sql = "SELECT `rivers_droplets`.`id` AS `droplet_id`, `tag_id` AS `id`, `tag`, `tag_canonical`, `tag_type` ";
sql += "FROM `droplets_tags` ";
sql += "INNER JOIN `tags` ON (`tags`.`id` = `tag_id`) ";
sql += "INNER JOIN rivers_droplets ON (`rivers_droplets`.`droplet_id` = `droplets_tags`.`droplet_id`)";
sql += "WHERE `rivers_droplets`.`id` IN :drop_ids ";
sql += "AND `tags`.`id` NOT IN ( ";
sql += " SELECT `tag_id` FROM `river_droplet_tags` ";
sql += " WHERE `rivers_droplets_id` IN :drop_ids ";
sql += " AND `deleted` = 1) ";
sql += "UNION ALL ";
sql += "SELECT `rivers_droplets_id` AS `droplet_id`, `tag_id` AS `id`, `tag`, `tag_canonical`, `tag_type` ";
sql += "FROM `river_droplet_tags` ";
sql += "INNER JOIN `tags` ON (`tags`.`id` = `tag_id`) ";
sql += "WHERE `rivers_droplets_id` IN :drop_ids ";
sql += "AND `deleted` = 0 ";
return sql;
}
/**
* Populate link metadata into the given drops array.
*
* @param drops
* @param dropSource
*/
public void populateLinks(List<Drop> drops, DropSource dropSource) {
List<Long> dropIds = new ArrayList<Long>();
for (Drop drop : drops) {
dropIds.add(drop.getId());
}
String sql = null;
switch (dropSource) {
case RIVER:
sql = getRiverLinksQuery();
break;
case BUCKET:
sql = getBucketLinksQuery();
break;
}
Query query = em.createNativeQuery(sql);
query.setParameter("drop_ids", dropIds);
// Group the links by drop id
Map<Long, List<Link>> links = new HashMap<Long, List<Link>>();
for (Object oRow : query.getResultList()) {
Object[] r = (Object[]) oRow;
Long dropId = ((BigInteger) r[0]).longValue();
Link link = new Link();
link.setId(((BigInteger) r[1]).longValue());
link.setUrl((String) r[2]);
List<Link> l = links.get(dropId);
if (l == null) {
l = new ArrayList<Link>();
links.put(dropId, l);
}
l.add(link);
}
for (Drop drop : drops) {
List<Link> l = links.get(drop.getId());
if (l != null) {
drop.setLinks(l);
} else {
drop.setLinks(new ArrayList<Link>());
}
}
}
/**
* Builds and returns the query for fetching links for the drops
* in a <code>com.ushahidi.swiftriver.core.model.Bucket</code>
*
* @return
*/
private String getBucketLinksQuery() {
String sql = "SELECT `buckets_droplets`.`id` AS `droplet_id`, `link_id` AS `id`, `url` ";
sql += "FROM `droplets_links` ";
sql += "INNER JOIN `links` ON (`links`.`id` = `link_id`) ";
sql += "INNER JOIN buckets_droplets ON (`buckets_droplets`.`droplet_id` = `droplets_links`.`droplet_id`)";
sql += "WHERE `buckets_droplets`.`id` IN :drop_ids ";
sql += "AND `links`.`id` NOT IN ( ";
sql += " SELECT `link_id` FROM `bucket_droplet_links` ";
sql += " WHERE `buckets_droplets_id` IN :drop_ids ";
sql += " AND `deleted` = 1) ";
sql += "UNION ALL ";
sql += "SELECT `buckets_droplets_id` AS `droplet_id`, `link_id` AS `id`, `url` ";
sql += "FROM `bucket_droplet_links` ";
sql += "INNER JOIN `links` ON (`links`.`id` = `link_id`) ";
sql += "WHERE `buckets_droplets_id` IN :drop_ids ";
sql += "AND `deleted` = 0 ";
return sql;
}
/**
* Builds and returns the query for fetching links for the drops
* in a <code>com.ushahidi.swiftriver.core.model.River</code>
*
* @return
*/
private String getRiverLinksQuery() {
String sql = "SELECT `rivers_droplets`.`id` AS `droplet_id`, `link_id` AS `id`, `url` ";
sql += "FROM `droplets_links` ";
sql += "INNER JOIN `links` ON (`links`.`id` = `link_id`) ";
sql += "INNER JOIN rivers_droplets ON (`rivers_droplets`.`droplet_id` = `droplets_links`.`droplet_id`)";
sql += "WHERE `rivers_droplets`.`id` IN :drop_ids ";
sql += "AND `links`.`id` NOT IN ( ";
sql += " SELECT `link_id` FROM `river_droplet_links` ";
sql += " WHERE `rivers_droplets_id` IN :drop_ids ";
sql += " AND `deleted` = 1) ";
sql += "UNION ALL ";
sql += "SELECT `rivers_droplets_id` AS `droplet_id`, `link_id` AS `id`, `url` ";
sql += "FROM `river_droplet_links` ";
sql += "INNER JOIN `links` ON (`links`.`id` = `link_id`) ";
sql += "WHERE `rivers_droplets_id` IN :drop_ids ";
sql += "AND `deleted` = 0 ";
return sql;
}
/**
* Populate media metadata into the given drops array.
*
* @param drops
* @param dropSource
*/
public void populateMedia(List<Drop> drops, DropSource dropSource) {
Map<Long, Integer> dropIndex = new HashMap<Long, Integer>();
int i = 0;
for (Drop drop : drops) {
dropIndex.put(drop.getId(), i);
i++;
}
// Generate a map for drop images
String sql = null;
switch (dropSource) {
case BUCKET:
sql = "SELECT `buckets_droplets`.`id`, `droplet_image` FROM `droplets` ";
sql += "INNER JOIN `buckets_droplets` ON (`buckets_droplets`.`droplet_id` = `droplets`.`id`) ";
sql += "WHERE `buckets_droplets`.`id` IN :drop_ids ";
break;
case RIVER:
sql = "SELECT `rivers_droplets`.`id`, `droplet_image` FROM `droplets` ";
sql += "INNER JOIN `rivers_droplets` ON (`rivers_droplets`.`droplet_id` = `droplets`.`id`) ";
sql += "WHERE `rivers_droplets`.`id` IN :drop_ids ";
break;
}
sql += "AND `droplets`.`droplet_image` > 0";
Query query = em.createNativeQuery(sql);
query.setParameter("drop_ids", dropIndex.keySet());
Map<Long, Long> dropImagesMap = new HashMap<Long, Long>();
for (Object oRow2 : query.getResultList()) {
Object[] r2 = (Object[]) oRow2;
dropImagesMap.put(((BigInteger) r2[0]).longValue(),
((BigInteger) r2[1]).longValue());
}
// Get the query to fetch the drop media
switch (dropSource) {
case RIVER:
sql = getRiverMediaQuery();
break;
case BUCKET:
sql = getBucketMediaQuery();
break;
}
query = em.createNativeQuery(sql);
query.setParameter("drop_ids", dropIndex.keySet());
// Group the media by drop id
for (Object oRow : query.getResultList()) {
Object[] r = (Object[]) oRow;
Long dropId = ((BigInteger) r[0]).longValue();
Drop drop = drops.get(dropIndex.get(dropId));
if (drop.getMedia() == null) {
drop.setMedia(new ArrayList<Media>());
}
Long mediaId = ((BigInteger) r[1]).longValue();
Media m = null;
for (Media x : drop.getMedia()) {
if (x.getId() == mediaId) {
m = x;
}
}
if (m == null) {
m = new Media();
m.setId(mediaId);
m.setUrl((String) r[2]);
m.setType((String) r[3]);
}
// Add thumbnails
if (r[4] != null) {
MediaThumbnail mt = new MediaThumbnail();
mt.setMedia(m);
mt.setSize((Integer)r[4]);
mt.setUrl((String)r[5]);
List<MediaThumbnail> thumbnails = m.getThumbnails();
if (thumbnails == null) {
thumbnails = new ArrayList<MediaThumbnail>();
m.setThumbnails(thumbnails);
}
thumbnails.add(mt);
}
if (!drop.getMedia().contains(m)) {
drop.getMedia().add(m);
// Set the droplet image if any
Long dropImageId = dropImagesMap.get(drop.getId());
if (dropImageId != null && dropImageId == m.getId()) {
drop.setImage(m);
}
}
}
}
/**
* Builds and returns the query for fetching media for the drops
* in a <code>com.ushahidi.swiftriver.core.model.Bucket</code>
*
* @return
*/
private String getBucketMediaQuery() {
String sql = "SELECT `buckets_droplets`.`id` AS `droplet_id`, `media`.`id` AS `id`, `media`.`url` AS `url`, `type`, `media_thumbnails`.`size` AS `thumbnail_size`, ";
sql += "`media_thumbnails`.`url` AS `thumbnail_url` ";
sql += "FROM `droplets_media` ";
sql += "INNER JOIN `media` ON (`media`.`id` = `media_id`) ";
sql += "INNER JOIN `buckets_droplets` ON (`buckets_droplets`.`droplet_id` = `droplets_media`.`droplet_id`) ";
sql += "LEFT JOIN `media_thumbnails` ON (`media_thumbnails`.`media_id` = `media`.`id`) ";
sql += "WHERE `buckets_droplets`.`id` IN :drop_ids ";
sql += "AND `media`.`id` NOT IN ( ";
sql += " SELECT `media_id` ";
sql += " FROM `bucket_droplet_media` ";
sql += " WHERE `buckets_droplets_id` IN :drop_ids ";
sql += " AND `deleted` = 1) ";
sql += "UNION ALL ";
sql += "SELECT `buckets_droplets_id` AS `droplet_id`, `media`.`id` AS `id`, `media`.`url` AS `url`, `type`, `media_thumbnails`.`size` AS `thumbnail_size`, `media_thumbnails`.`url` AS `thumbnail_url` ";
sql += "FROM `bucket_droplet_media` ";
sql += "INNER JOIN `media` ON (`media`.`id` = `media_id`) ";
sql += "LEFT JOIN `media_thumbnails` ON (`media_thumbnails`.`media_id` = `media`.`id`) ";
sql += "WHERE `buckets_droplets_id` IN :drop_ids ";
sql += "AND `deleted` = 0; ";
return sql;
}
/**
* Builds and returns the query for fetching media for the drops
* in a <code>com.ushahidi.swiftriver.core.model.River</code>
*
* @return
*/
private String getRiverMediaQuery() {
String sql = "SELECT `rivers_droplets`.`id` AS `droplet_id`, `media`.`id` AS `id`, `media`.`url` AS `url`, `type`, `media_thumbnails`.`size` AS `thumbnail_size`, ";
sql += "`media_thumbnails`.`url` AS `thumbnail_url` ";
sql += "FROM `droplets_media` ";
sql += "INNER JOIN `media` ON (`media`.`id` = `media_id`) ";
sql += "INNER JOIN `rivers_droplets` ON (`rivers_droplets`.`droplet_id` = `droplets_media`.`droplet_id`) ";
sql += "LEFT JOIN `media_thumbnails` ON (`media_thumbnails`.`media_id` = `media`.`id`) ";
sql += "WHERE `rivers_droplets`.`id` IN :drop_ids ";
sql += "AND `media`.`id` NOT IN ( ";
sql += " SELECT `media_id` ";
sql += " FROM `river_droplet_media` ";
sql += " WHERE `rivers_droplets_id` IN :drop_ids ";
sql += " AND `deleted` = 1) ";
sql += "UNION ALL ";
sql += "SELECT `rivers_droplets_id` AS `droplet_id`, `media`.`id` AS `id`, `media`.`url` AS `url`, `type`, `media_thumbnails`.`size` AS `thumbnail_size`, `media_thumbnails`.`url` AS `thumbnail_url` ";
sql += "FROM `river_droplet_media` ";
sql += "INNER JOIN `media` ON (`media`.`id` = `media_id`) ";
sql += "LEFT JOIN `media_thumbnails` ON (`media_thumbnails`.`media_id` = `media`.`id`) ";
sql += "WHERE `rivers_droplets_id` IN :drop_ids ";
sql += "AND `deleted` = 0; ";
return sql;
}
/**
* Populate geo metadata into the given drops array.
*
* @param drops
* @param dropSource
*/
public void populatePlaces(List<Drop> drops, DropSource dropSource) {
Map<Long, Integer> dropIndex = new HashMap<Long, Integer>();
int i = 0;
for (Drop drop : drops) {
dropIndex.put(drop.getId(), i);
i++;
}
String sql = null;
// Get the query to fetch the drop media
switch (dropSource) {
case RIVER:
sql = getRiverPlacesQuery();
break;
case BUCKET:
sql = getBucketPlacesQuery();
break;
}
Query query = em.createNativeQuery(sql);
query.setParameter("drop_ids", dropIndex.keySet());
// Group the media by drop id
Map<Long, Place> places = new HashMap<Long, Place>();
for (Object oRow : query.getResultList()) {
Object[] r = (Object[]) oRow;
Long dropId = ((BigInteger) r[0]).longValue();
Drop drop = drops.get(dropIndex.get(dropId));
if (drop.getPlaces() == null) {
drop.setPlaces(new ArrayList<Place>());
}
Long placeId = ((BigInteger) r[1]).longValue();
Place p = places.get(placeId);
if (p == null) {
p = new Place();
p.setId(placeId);
p.setPlaceName((String) r[2]);
p.setLatitude((Float)r[5]);
p.setLongitude((Float)r[6]);
places.put(placeId, p);
}
// Add place to drop
if (!drop.getPlaces().contains(p)) {
drop.getPlaces().add(p);
}
}
}
/**
* Builds and returns the query for fetching places for the drops
* in a <code>com.ushahidi.swiftriver.core.model.Bucket</code>
*
* @return
*/
private String getBucketPlacesQuery() {
String sql = "SELECT `buckets_droplets`.`id` AS `droplet_id`, `place_id` AS `id`, `place_name`, `place_name_canonical`, ";
sql += "`places`.`hash` AS `place_hash`, `latitude`, `longitude` ";
sql += "FROM `droplets_places` ";
sql += "INNER JOIN `places` ON (`places`.`id` = `place_id`) ";
sql += "INNER JOIN `buckets_droplets` ON (`buckets_droplets`.`droplet_id` = `droplets_places`.`droplet_id`) ";
sql += "WHERE `buckets_droplets`.`id` IN :drop_ids ";
sql += "AND `places`.`id` NOT IN ( ";
sql += " SELECT `place_id` ";
sql += " FROM `bucket_droplet_places` ";
sql += " WHERE `buckets_droplets_id` IN :drop_ids ";
sql += " AND `deleted` = 1) ";
sql += "UNION ALL ";
sql += "SELECT `buckets_droplets_id` AS `droplet_id`, `place_id` AS `id`, `place_name`, `place_name_canonical`, `places`.`hash` AS `place_hash`, `latitude`, `longitude` ";
sql += "FROM `bucket_droplet_places` ";
sql += "INNER JOIN `places` ON (`places`.`id` = `place_id`) ";
sql += "WHERE `buckets_droplets_id` IN :drop_ids ";
sql += "AND `deleted` = 0 ";
return sql;
}
/**
* Builds and returns the query for fetching places for the drops
* in a <code>com.ushahidi.swiftriver.core.model.River</code>
*
* @return
*/
private String getRiverPlacesQuery() {
String sql = "SELECT `rivers_droplets`.`id` AS `droplet_id`, `place_id` AS `id`, `place_name`, `place_name_canonical`, ";
sql += "`places`.`hash` AS `place_hash`, `latitude`, `longitude` ";
sql += "FROM `droplets_places` ";
sql += "INNER JOIN `places` ON (`places`.`id` = `place_id`) ";
sql += "INNER JOIN `rivers_droplets` ON (`rivers_droplets`.`droplet_id` = `droplets_places`.`droplet_id`) ";
sql += "WHERE `rivers_droplets`.`id` IN :drop_ids ";
sql += "AND `places`.`id` NOT IN ( ";
sql += " SELECT `place_id` ";
sql += " FROM `river_droplet_places` ";
sql += " WHERE `rivers_droplets_id` IN :drop_ids ";
sql += " AND `deleted` = 1) ";
sql += "UNION ALL ";
sql += "SELECT `rivers_droplets_id` AS `droplet_id`, `place_id` AS `id`, `place_name`, `place_name_canonical`, `places`.`hash` AS `place_hash`, `latitude`, `longitude` ";
sql += "FROM `river_droplet_places` ";
sql += "INNER JOIN `places` ON (`places`.`id` = `place_id`) ";
sql += "WHERE `rivers_droplets_id` IN :drop_ids ";
sql += "AND `deleted` = 0 ";
return sql;
}
/**
* Populates the buckets for each of the {@link Drop}
* in <code>drops</code>
*
* @param drops
*/
public void populateBuckets(List<Drop> drops) {
Map<Long, Integer> dropsIndex = new HashMap<Long, Integer>();
int i = 0;
for (Drop drop: drops) {
dropsIndex.put(drop.getId(), i);
i++;
}
// Query to fetch the buckets
String sql = "SELECT `buckets_droplets`.`droplet_id`, `buckets`.`id`, `buckets`.`bucket_name` ";
sql += "FROM `buckets` ";
sql += "INNER JOIN `buckets_droplets` ON (`buckets`.`id` = `buckets_droplets`.`bucket_id`) ";
sql += "WHERE `buckets_droplets`.`droplet_id` IN :dropIds ";
Query query = this.em.createNativeQuery(sql);
query.setParameter("dropIds", dropsIndex.keySet());
// Group the buckets by bucket id
Map<Long, Bucket> buckets = new HashMap<Long, Bucket>();
for (Object row: query.getResultList()) {
Object[] rowArray = (Object[]) row;
Long dropId = ((BigInteger)rowArray[0]).longValue();
Drop drop = drops.get(dropsIndex.get(dropId));
if (drop.getBuckets() == null) {
drop.setBuckets(new ArrayList<Bucket>());
}
Long bucketId = ((BigInteger) rowArray[1]).longValue();
Bucket bucket = buckets.get(bucketId);
if (bucket == null) {
bucket = new Bucket();
bucket.setId(bucketId);
bucket.setName((String) rowArray[2]);
buckets.put(bucketId, bucket);
}
// Add bucket to the list of buckets
if (!drop.getBuckets().contains(bucket)) {
drop.getBuckets().add(bucket);
}
}
}
/*
* (non-Javadoc)
* @see com.ushahidi.swiftriver.core.api.dao.DropDao#findCommentById(java.lang.Long)
*/
public DropComment findCommentById(Long commentId) {
return this.em.find(DropComment.class, commentId);
}
/*
* (non-Javadoc)
* @see com.ushahidi.swiftriver.core.api.dao.DropDao#deleteComment(com.ushahidi.swiftriver.core.model.DropComment)
*/
public void deleteComment(DropComment dropComment) {
this.em.remove(dropComment);
}
/*
* (non-Javadoc)
* @see com.ushahidi.swiftriver.core.api.dao.DropDao#addComment(com.ushahidi.swiftriver.core.model.Drop, com.ushahidi.swiftriver.core.model.Account, java.lang.String)
*/
public DropComment addComment(Drop drop, Account account, String commentText) {
DropComment dropComment = new DropComment();
dropComment.setDrop(drop);
dropComment.setAccount(account);
dropComment.setDeleted(false);
dropComment.setCommentText(commentText);
dropComment.setDateAdded(new Date());
this.em.persist(dropComment);
return dropComment;
}
}
| [
"[email protected]"
] | |
95fb4102d1aea9bd69aca6c71aedaf9177af486d | 7ab438178734221d4fe29d60794f5bd90bbe8560 | /JavaAPComputerScience/src/main/semester2/chapter6/section_6_4/UnderstandCharUnicodes.java | da32c9638bdef5f9d22d69add14ac86ba373a1ea | [] | no_license | statisticallyfit/Java | bf52be4a0da71d7a8c75581b6249f6861922b253 | a78311a3e746012b6457a83ebf6449c4cf6e6995 | refs/heads/master | 2021-01-24T13:01:27.076848 | 2018-12-07T13:31:37 | 2018-12-07T13:31:37 | 50,096,900 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 589 | java | package semester2.chapter6.section_6_4;
public class UnderstandCharUnicodes {
public static void main(String[] args) {
char x = 'A';
System.out.println(x);
x = (char) (x + 1);
System.out.println(x);
System.out.println("Subtraction: " + (x - 'C')); //basically subtracting 66 - 67 = -1
char y = 'B';
System.out.println(y + 1);
System.out.println((char)(y + 1));
char z = (char)0;
System.out.println(z);
int a = 'A';
System.out.println("implicit char to int promotion: " + a);
}
}
| [
"[email protected]"
] | |
1217159cd4b1b92aab14629cde8dc8ce46574748 | b4486af349a6efd77c6e832f81b833668a146133 | /easyshop/src/main/java/com/zhuoxin/easyshop/commons/Bimp.java | 73e0271f93b629d3daa860aee0d222ae7a678de0 | [] | no_license | KinganQween/Workspace | a78617aa66f0b7d3aeb57dca99adf3965cc6fc8f | 369efdcc20eeb8b678578c5e02b332e33dd16e6d | refs/heads/master | 2021-07-13T15:04:58.104437 | 2017-10-18T06:23:57 | 2017-10-18T06:23:57 | 107,366,949 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,090 | java | package com.zhuoxin.easyshop.commons;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
public class Bimp {
/**
* 根据图片路径获取Bitmap
* @param path 图片路径
* @return Bitmap
*/
public static Bitmap revisionImageSize(String path) throws IOException {
BufferedInputStream in = new BufferedInputStream(new FileInputStream(
new File(path)));
BitmapFactory.Options options = new BitmapFactory.Options();
options.inJustDecodeBounds = true;
BitmapFactory.decodeStream(in, null, options);
in.close();
int i = 0;
Bitmap bitmap;
while (true) {
if ((options.outWidth >> i <= 1000)
&& (options.outHeight >> i <= 1000)) {
in = new BufferedInputStream(
new FileInputStream(new File(path)));
options.inSampleSize = (int) Math.pow(2.0D, i);
options.inJustDecodeBounds = false;
bitmap = BitmapFactory.decodeStream(in, null, options);
break;
}
i += 1;
}
return bitmap;
}
}
| [
"[email protected]"
] | |
49586acb8672807f921e1d5c289a098379a1339d | cfbf49abbc14d91359dae58a28d454150cbb0594 | /src/main/java/org/example/jdbc/BookEntity.java | 9358c35214d7c5d5df1070c91c9b77e0232273d8 | [] | no_license | Taras-SH13/springLesson | fd04e8a65f366bec3ca8c0035e244064b27f9207 | aa6d1b55de515dc5563e7ceedb28ba540146794f | refs/heads/master | 2022-11-12T18:14:32.229489 | 2020-07-11T06:52:08 | 2020-07-11T06:52:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 671 | java | package org.example.jdbc;
public class BookEntity {
private long id;
private String name;
private String author;
public BookEntity(long id, String name, String author) {
this.id = id;
this.name = name;
this.author = author;
}
public long getId() {
return id;
}
public String getName() {
return name;
}
public String getAuthor() {
return author;
}
@Override
public String toString() {
return "BookEntity{" +
"id=" + id +
", name='" + name + '\'' +
", author='" + author + '\'' +
'}';
}
}
| [
"[email protected]"
] | |
c2dbdc93a38d366616c3c52d533b0b38726d687b | a8dc3e39912a91b04fb251d224b34cbd389fa173 | /app/src/main/java/com/example/test/StartActivity.java | 6ad7a1ceb389a3af97815cdaba94d41e3716892c | [] | no_license | ohsehan/WordNote | 4962cd8c6f7ace899700f5e4ae081083e95df02d | 0252fe0afc81159cfbd801584f2584f9fcaa74fb | refs/heads/master | 2021-01-04T08:02:39.037618 | 2020-02-14T08:13:02 | 2020-02-14T08:13:02 | 240,453,764 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,243 | java | package com.example.test;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import androidx.appcompat.app.AppCompatActivity;
import com.google.firebase.database.DatabaseReference;
public class StartActivity extends AppCompatActivity {
DatabaseReference mDatabase;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.start);
Button wordLook = (Button) findViewById(R.id.word_look);
wordLook.setOnClickListener(new View.OnClickListener() {//단어 보기 액티비티 실행
@Override
public void onClick(View v) {
Intent intent = new Intent(StartActivity.this,WordLook.class);
startActivity(intent);
}
});
Button wordAdd = (Button) findViewById(R.id.word_add);
wordAdd.setOnClickListener(new View.OnClickListener() {//단어 추가 액티비티 실행
@Override
public void onClick(View v) {
Intent intent = new Intent(StartActivity.this,WordAdd.class);
startActivity(intent);
}
});
}
}
| [
"[email protected]"
] | |
ce8d6356ff9668302ac940f694a4e7da8775fe17 | 3059b8678961ee6f5e6b9ff4c587d22561e8900e | /src/Operacion.java | cc3295190774d8bcee615df2abb148bcaef0e957 | [] | no_license | JuanManuelRodriguez/Prog2 | 242c3c72d9e626f3ec1bbb48bb1e311a88de51b2 | 63f9f1be1d47c83a895549f6447e5610b70eee7e | refs/heads/master | 2021-01-11T02:04:10.152008 | 2016-10-13T19:35:53 | 2016-10-13T19:35:53 | 70,841,346 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 202 | java | import java.util.Vector;
public abstract class Operacion {
public Operacion(){};
public abstract double getResultado();
public abstract Vector getNumeros();
public abstract Vector getSimbolos();
}
| [
"[email protected]"
] | |
5f3757a096138fa224ab09ac9d7ca74efb39bcef | 7f4c9af3ba4caa1dd0d0e40918d213605bb37a5c | /src/main/java/test/AI.java | 825528bdea65673ec50a4e3fa920e964835e2124 | [] | no_license | yzlee1991/chess | 8b8c401771b6f919c3d10cd4eda2cbd17f469d4f | 741b08c22979deb592ab9e7561e9d767ed04053c | refs/heads/master | 2020-03-10T12:21:27.674464 | 2018-04-15T14:32:15 | 2018-04-15T14:32:15 | 129,376,295 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 18,031 | java | package test;
public class AI {
int[][] temp = new int[14][14];
int AIx = 0, AIy = 0;
boolean level = true;// level为true 则该层是max层 若level为false则该层是min层
public AI() {
}
public int getEvaluate(int x, int y, char whoseTurn) {
int score = 0; // 落子权值
score = evaluate(x, y, whoseTurn) + evaluate(x, y, (char) (153 - whoseTurn));
return score;
}
public int Evaluate(int x, int y, char whoseTurn) {
// 第一个getValue为当前落子的人的估值 第二个getValue是若对手在此落子的估值 (可理解为防守估值)
// 153为unicode编码 153-'B'='W' 153-'W'='B'
return evaluate(x, y, whoseTurn) + evaluate(x, y, (char) (153 - whoseTurn));
}
//估值函数 棋型判断
private int evaluate(int x, int y, char whoseTurn) {
int value = 0;
for (int i = 1; i <= 8; i++) {
// 8个方向
// 活四 01111* *代表当前空位置 0代表其他空位置 下同
if (getLine(x, y, i, -1) == whoseTurn
&& getLine(x, y, i, -2) == whoseTurn
&& getLine(x, y, i, -3) == whoseTurn
&& getLine(x, y, i, -4) == whoseTurn
&& getLine(x, y, i, -5) == ' '){
value += 300000;
if((Test.AIToken==false&&whoseTurn=='W')||(Test.AIToken==true&&whoseTurn=='B'))
value+=100000;
//避免出现当电脑和人都出现四连子的时候电脑去拦截而不是直接获胜的选择
}
// 死四A 21111*
if (getLine(x, y, i, -1) == whoseTurn
&& getLine(x, y, i, -2) == whoseTurn
&& getLine(x, y, i, -3) == whoseTurn
&& getLine(x, y, i, -4) == whoseTurn
&& (getLine(x, y, i, -5) == (char) (153 - whoseTurn) || getLine(x, y, i, -5) == 'E')){
value += 250000;
if((Test.AIToken==false&&whoseTurn=='W')||(Test.AIToken==true&&whoseTurn=='B'))
value+=100000;
}
// 死四B 111*1
if (getLine(x, y, i, -1) == whoseTurn
&& getLine(x, y, i, -2) == whoseTurn
&& getLine(x, y, i, -3) == whoseTurn
&& getLine(x, y, i, 1) == whoseTurn) {
value += 240000;
if((Test.AIToken==false&&whoseTurn=='W')||(Test.AIToken==true&&whoseTurn=='B'))
value+=100000;
}
// 死四C 11*11
if (getLine(x, y, i, -1) == whoseTurn
&& getLine(x, y, i, -2) == whoseTurn
&& getLine(x, y, i, 1) == whoseTurn
&& getLine(x, y, i, 2) == whoseTurn) {
value += 115000; //这里因为顺序关系会计算两遍value 实际value是115000*2=230000
if((Test.AIToken==false&&whoseTurn=='W')||(Test.AIToken==true&&whoseTurn=='B'))
value+=50000;
}
// 活三 近3位置 0111*0
if (getLine(x, y, i, -1) == whoseTurn
&& getLine(x, y, i, -2) == whoseTurn
&& getLine(x, y, i, -3) == whoseTurn) {
if (getLine(x, y, i, 1) == ' '&&getLine(x, y, i, -4) == ' ')
//若两边都有空位
value += 30000;
else if ((getLine(x, y, i, 1) == (char) (153 - whoseTurn) || getLine(x, y, i, 1) == 'E')
&&(getLine(x, y, i, -4) == (char) (153 - whoseTurn) || getLine(x, y, i, -4) == 'E'))
value -= 100;
else
value+=3000;
}
// 活三 远3位置 1110*
if (getLine(x, y, i, -1) == ' '
&& getLine(x, y, i, -2) == whoseTurn
&& getLine(x, y, i, -3) == whoseTurn
&& getLine(x, y, i, -4) == whoseTurn){
if(getLine(x, y, i, 1)==' '&&getLine(x, y, i, -5)==' '){
if(Test.whoseTurn==whoseTurn)//可以理解为进攻方
value+=28000;
else//否则防守方的估值不高
value+=2850;
}
else{
if(Test.whoseTurn==whoseTurn)
value+=2800;
else
value+=1400;
}
}
// 死三 11*1
if (getLine(x, y, i, -1) == whoseTurn
&& getLine(x, y, i, -2) == whoseTurn
&& getLine(x, y, i, 1) == whoseTurn) {
if (getLine(x, y, i, -3) == ' ' && getLine(x, y, i, 2) == ' ')
value += 29000;
else if ((getLine(x, y, i, -3) == (char) (153 - whoseTurn) || getLine(x, y, i, -3) == 'E')
&& (getLine(x, y, i, 2) == (char) (153 - whoseTurn) || getLine(x, y, i, 2) == 'E'))
value -= 100;
else
value+=2900;
}
//10*11
if (getLine(x, y, i, 1) == whoseTurn
&& getLine(x, y, i, 2) == whoseTurn
&& getLine(x, y, i, -2) == whoseTurn
&& getLine(x, y, i, -1) == ' ') {
if (getLine(x, y, i, 3) == ' '){
if(Test.whoseTurn==whoseTurn)
value += 27000;
else
value+=2750;
}
else if (getLine(x, y, i, 3) == (char) (153 - whoseTurn) || getLine(x, y, i, 3) == 'E'){
if(Test.whoseTurn==whoseTurn)
value+=2700;
else
value+=1350;
}
}
// 101*1
if (getLine(x, y, i, 1) == whoseTurn
&& getLine(x, y, i, -1) == whoseTurn
&& getLine(x, y, i, -3) == whoseTurn
&& getLine(x, y, i, -2) == ' ') {
if (getLine(x, y, i, 2) == ' '){
if(Test.whoseTurn==whoseTurn)
value+=26000;
else
value+=2650;
}
else if (getLine(x, y, i, 2) == (char) (153 - whoseTurn) || getLine(x, y, i, 2) == 'E'){
if(Test.whoseTurn==whoseTurn)
value+=2600;
else
value+=1300;
}
}
// 1*011
if (getLine(x, y, i, 2) == whoseTurn
&& getLine(x, y, i, 3) == whoseTurn
&& getLine(x, y, i, -1) == whoseTurn
&& getLine(x, y, i, 1) == ' ') {
if (getLine(x, y, i, -2) == ' '
&& getLine(x, y, i, 4) == ' '){
if(Test.whoseTurn==whoseTurn)
value+=25000;
else
value+=2550;
}
else{
if(Test.whoseTurn==whoseTurn)
value+=2500;
else
value+=1250;
}
}
// 011*0
if (getLine(x, y, i, -1) == whoseTurn && getLine(x, y, i, -2) == whoseTurn) {
if (getLine(x, y, i, -3) == ' ' && getLine(x, y, i, 1) == ' ')
value += 6000;
else if ((getLine(x, y, i, -3) == (char) (153 - whoseTurn) || getLine(x, y, i, -3) == 'E')
&& (getLine(x, y, i, 1) == (char) (153 - whoseTurn) || getLine(x, y, i, 1) == 'E'))
value -= 100;//两边都被堵了 估值-100 落子没有意义
else
value += 600;
}
// 01*10
if (getLine(x, y, i, -1) == whoseTurn && getLine(x, y, i, 1) == whoseTurn) {
if (getLine(x, y, i, -2) == ' ' && getLine(x, y, i, 2) == ' ')
value += 5000;
else if ((getLine(x, y, i, -2) == (char) (153 - whoseTurn) || getLine(x, y, i, -2) == 'E')
&& (getLine(x, y, i, 2) == (char) (153 - whoseTurn) || getLine(x, y, i, 2) == 'E'))
value -= 100;
else
value += 500;
}
// 110*
if (getLine(x, y, i, -2) == whoseTurn
&& getLine(x, y, i, -3) == whoseTurn
&& getLine(x, y, i, -1) == ' ') {
if (getLine(x, y, i, 1) == ' ' && getLine(x, y, i, -4) == ' ')
value += 4000;
else if ((getLine(x, y, i, -4) == (char) (153 - whoseTurn) || getLine(x, y, i, -4) == 'E')
&& (getLine(x, y, i, 1) == (char) (153 - whoseTurn) || getLine(x, y, i, 1) == 'E'))
value -= 100;
else
value += 400;
}
//10*1
if (getLine(x, y, i, -2) == whoseTurn
&& getLine(x, y, i, 1) == whoseTurn
&& getLine(x, y, i, -1) == ' ') {
if (getLine(x, y, i, 2) == ' ' && getLine(x, y, i, -3) == ' ')
value += 3500;
else if ((getLine(x, y, i, -3) == (char) (153 - whoseTurn) || getLine(x, y, i, -3) == 'E')
&& (getLine(x, y, i, 2) == (char) (153 - whoseTurn) || getLine(x, y, i, 2) == 'E'))
value -= 100;
else
value += 350;
}
// 1*
if (getLine(x, y, i, -1) == whoseTurn) {
if (getLine(x, y, i, 1) == ' ' && getLine(x, y, i, -2) == ' ')
value += 200;
else if ((getLine(x, y, i, 1) == (char) (153 - whoseTurn) || getLine(x, y, i, 1) == 'E')
&& (getLine(x, y, i, -2) == (char) (153 - whoseTurn) || getLine(x, y, i, -2) == 'E'))
value -= 100;
else
value += 20;
}
// 10*
if (getLine(x, y, i, -2) == whoseTurn && getLine(x, y, i, -1) == ' ') {
if (getLine(x, y, i, 1) == ' ' && getLine(x, y, i, -3) == ' ')
value += 150;
else if ((getLine(x, y, i, 1) == (char) (153 - whoseTurn) || getLine(x, y, i, 1) == 'E')
&& (getLine(x, y, i, -3) == (char) (153 - whoseTurn) || getLine(x, y, i, -3) == 'E'))
value -= 100;
else
value += 15;
}
// 100*
if (getLine(x, y, i, -3) == whoseTurn && getLine(x, y, i, -2) == ' ' && getLine(x, y, i, -1) == ' ') {
if (getLine(x, y, i, 1) == ' ' && getLine(x, y, i, -4) == ' ')
value += 100;
else if ((getLine(x, y, i, 1) == (char) (153 - whoseTurn) || getLine(x, y, i, 1) == 'E')
&& (getLine(x, y, i, -4) == (char) (153 - whoseTurn) || getLine(x, y, i, -4) == 'E'))
value -= 100;
else
value += 10;
}
}
/* // 活二的个数
if (getLine(x, y, i, -1) == whoseTurn
&& getLine(x, y, i, -2) == whoseTurn
&& getLine(x, y, i, -3) != (char) (153 - whoseTurn)
&& getLine(x, y, i, 1) != (char) (153 - whoseTurn)) {
numoftwo++;
}
// 其余散棋
int numOfplyer = 0; // 因为方向会算两次?
for (int k = -4; k <= 0; k++) { // ++++* +++*+ ++*++ +*+++ *++++
int temp = 0;
for (int l = 0; l <= 4; l++) {
if (getLine(x, y, i, k + l) == whoseTurn) {
temp++;
} else if (getLine(x, y, i, k + l) == (char) (153 - whoseTurn)|| getLine(x, y, i, k+1) == 'E') {
temp = 0;
break;
}
}
numOfplyer += temp;
}
value += numOfplyer * 15;
if (numOfplyer != 0) {
}
if(numoftwo==1)
value+=100;
if (numoftwo >= 2)
value += 3000;*/
// 给棋盘的每个格子一个估值 越接近中心估值越高 越接近边界估值越低
if ((x == 0 || x == 13) && y != 0 && y != 13)
value += 1;
else if (y == 0 || y == 13)
value += 1;
else if ((x == 1 || x == 12) && y != 1 && y != 12)
value += 2;
else if (y == 1 || y == 12)
value += 2;
else if ((x == 2 || x == 11) && y != 2 && y != 11)
value += 3;
else if (y == 2 || y == 11)
value += 3;
else if ((x == 3 || x == 10) && y != 3 && y != 10)
value += 4;
else if (y == 3 || y == 10)
value += 4;
else if ((x == 4 || x == 9) && y != 5 && y != 9)
value += 5;
else if (y == 4 || y == 9)
value += 5;
else if ((x == 5 || x == 8) && y != 6 && y != 8)
value += 6;
else if (y == 5 || y == 8)
value += 6;
else
value += 7;
return value;
}
private char getLine(int x, int y, int i, int j) { // i:方向 j:相对x,y的顺序值
// x,y:当前点
switch (i) {
case 1:
x = x + j;
break;
case 2:
x = x + j;
y = y + j;
break;
case 3:
y = y + j;
break;
case 4:
x = x - j;
y = y + j;
break;
case 5:
x = x - j;
break;
case 6:
x = x - j;
y = y - j;
break;
case 7:
y = y - j;
break;
case 8:
x = x + j;
y = y - j;
}
if (x < 0 || y < 0 || x > 13 || y > 13) { // 越界处理
return 'E';// Error 越界
}
return Test.board[x][y].token;
}
// X Y为人下的子,电脑根据xy得到要下的子
public void search(int x, int y) {
if (Test.step == 1) {// 规定电脑落的第一颗子 跳过搜索 提高效率
if (x >= 0 && x <= 7 && y >= 7 && y <= 14)
Test.board[x + 1][y + 1].setToken(Test.whoseTurn, x + 1, y + 1, true);
else
Test.board[x - 1][y - 1].setToken(Test.whoseTurn, x - 1, y - 1, true);
Test.whoseTurn = (Test.whoseTurn == 'B') ? 'W' : 'B'; // 改变落子者
} else {
int val = 0;
Alpha_Beta(0, -10000000, 10000000, x, y, Test.whoseTurn);
for (int i = 0; i < 14; i++) {
for (int j = 0; j < 14; j++) {
if ((val < temp[i][j]) && Test.board[i][j].token == ' ') {
val = temp[i][j];
AIx = i;
AIy = j;
}
}
}
Test.board[AIx][AIy].setToken(Test.whoseTurn, AIx, AIy, true);
Test.textArea.insertText(0, "估值:" + Test.robot.Evaluate(AIx, AIy, Test.whoseTurn) + " ");
if (Test.board[AIx][AIy].judge(Test.whoseTurn, AIx, AIy) == true)
Test.board[AIx][AIy].printWinner();
else
Test.whoseTurn = (Test.whoseTurn == 'B') ? 'W' : 'B';
}
}
// negaMax模式的递归α-β剪枝树
private int Alpha_Beta(int depth, int alpha, int beta, int x, int y, char whoseTurn) {
if (depth == 3 || Test.board[x][y].judge(whoseTurn, x, y) == true) {
temp[x][y] = Evaluate(x, y, whoseTurn);
return Evaluate(x, y, whoseTurn);
}
for (int i = 0; i < 14; i++) {
for (int j = 0; j < 14; j++) {
if (Test.board[i][j].token != ' ')
continue;
Test.board[i][j].setToken(whoseTurn, i, j, false);
whoseTurn = (whoseTurn == 'B') ? 'W' : 'B';
int value = -Alpha_Beta(depth + 1, -beta, -alpha, i, j, whoseTurn);
unMove(i, j);
if (value > alpha) {
if (value >= beta) {
return beta;
}
}
alpha = value;
}
}
return alpha;
}
private void unMove(int i, int j) {
Test.board[i][j].getChildren().remove(Test.arrayCircle[i][j]);
Test.board[i][j].token = ' ';
Test.step--;
}
} | [
"[email protected]"
] | |
442a49d282abb0c4eff71201b49baa581f8d8aa3 | 7d90f9eda91503a3abca74e3530d8c0807a0fc3f | /IPG_MCS/src/main/java/pa/com/banistmo/questions/SeMuestreMensajeComercioExiste.java | eaac5c856b5509a7924daf595853e986a7fee9d0 | [] | no_license | jonathanChacin/automatizacion_ipg_mcs | 55ad133187a3a57fe522d80b736cca449081e571 | e07bc08a6dd2e51e820860fd47754cffd7e51070 | refs/heads/main | 2023-07-26T01:27:51.716045 | 2021-08-27T23:15:49 | 2021-08-27T23:15:49 | 386,691,623 | 0 | 0 | null | 2021-08-27T23:15:50 | 2021-07-16T15:57:24 | Java | UTF-8 | Java | false | false | 1,503 | java | package pa.com.banistmo.questions;
import net.serenitybdd.screenplay.Actor;
import net.serenitybdd.screenplay.Question;
import net.serenitybdd.screenplay.questions.Text;
import pa.com.banistmo.userinterface.RegistroComercioUserInterface;
public class SeMuestreMensajeComercioExiste implements Question<Boolean> {
private String mensajeComercioExiste;
private String idTienda;
public SeMuestreMensajeComercioExiste(String idTienda, String mensajeComercioExiste) {
this.idTienda = idTienda;
this.mensajeComercioExiste = mensajeComercioExiste;
}
public static SeMuestreMensajeComercioExiste deIpgMcs(
String idTienda, String mensajeComercioExiste) {
return new SeMuestreMensajeComercioExiste(idTienda, mensajeComercioExiste);
}
@Override
public Boolean answeredBy(Actor actor) {
boolean resultadoInformacionComercioExiste;
String verificaComercioExisteID =
Text.of(RegistroComercioUserInterface.TEXTO_ERROR_COMERCIO_EXISTE)
.viewedBy(actor)
.asString();
String verificaMensajeComercioExiste =
Text.of(RegistroComercioUserInterface.TEXTO_ERROR_COMERCIO_EXISTE)
.viewedBy(actor)
.asString();
if (verificaComercioExisteID.contains(idTienda)
&& verificaMensajeComercioExiste.contains(mensajeComercioExiste)) {
resultadoInformacionComercioExiste = true;
} else {
resultadoInformacionComercioExiste = false;
}
return resultadoInformacionComercioExiste;
}
}
| [
"[email protected]"
] | |
5741c6561fdc59605a597da142650c4548fa6a38 | 8e77ccb3604d15f62349ff9160279e82f863cf14 | /ComponentIndexExample/src/main/java/com/example/service/gen2/Component2_15.java | a1284d032b62cb45e56b16a9dccae877d1cd2cef | [] | no_license | saikoteswar/WhatsNewInSpring5 | 02cb250ed8e77fccac0529e94d6d25a53930cc39 | 759886cd3b57c123dc1ea1b72a8b3b9531071eac | refs/heads/master | 2023-07-06T18:18:04.686396 | 2023-07-05T11:00:18 | 2023-07-05T11:00:18 | 186,823,301 | 0 | 0 | null | 2019-05-15T12:37:09 | 2019-05-15T12:37:09 | null | UTF-8 | Java | false | false | 128 | java | package com.example.service.gen2;
import org.springframework.stereotype.Component;
@Component
public class Component2_15 {
} | [
"[email protected]"
] | |
2a35199898afd85475845ece286df3878579194f | 1254da79b2b2db6fea2fa1383e202cf8f3a24bd4 | /car-app/src/main/java/com/beceng/carapp/service/impl/RegionServiceImpl.java | 15727de112408c9521f2845d9e7e95ed8c5777a0 | [] | no_license | rizkiisroi/beceng | d9369050986595216826b7acfd6ad1ebb82086be | 438ae5fe49fdd714377d70d95faa67e0dee2acbf | refs/heads/master | 2022-12-21T11:25:02.690264 | 2019-11-09T07:53:55 | 2019-11-09T07:53:55 | 220,596,167 | 0 | 0 | null | 2022-12-16T04:40:58 | 2019-11-09T05:29:42 | Java | UTF-8 | Java | false | false | 1,940 | java | package com.beceng.carapp.service.impl;
import com.beceng.carapp.service.RegionService;
import com.beceng.carapp.domain.Region;
import com.beceng.carapp.repository.RegionRepository;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
import java.util.Optional;
/**
* Service Implementation for managing {@link Region}.
*/
@Service
@Transactional
public class RegionServiceImpl implements RegionService {
private final Logger log = LoggerFactory.getLogger(RegionServiceImpl.class);
private final RegionRepository regionRepository;
public RegionServiceImpl(RegionRepository regionRepository) {
this.regionRepository = regionRepository;
}
/**
* Save a region.
*
* @param region the entity to save.
* @return the persisted entity.
*/
@Override
public Region save(Region region) {
log.debug("Request to save Region : {}", region);
return regionRepository.save(region);
}
/**
* Get all the regions.
*
* @return the list of entities.
*/
@Override
@Transactional(readOnly = true)
public List<Region> findAll() {
log.debug("Request to get all Regions");
return regionRepository.findAll();
}
/**
* Get one region by id.
*
* @param id the id of the entity.
* @return the entity.
*/
@Override
@Transactional(readOnly = true)
public Optional<Region> findOne(Long id) {
log.debug("Request to get Region : {}", id);
return regionRepository.findById(id);
}
/**
* Delete the region by id.
*
* @param id the id of the entity.
*/
@Override
public void delete(Long id) {
log.debug("Request to delete Region : {}", id);
regionRepository.deleteById(id);
}
}
| [
"[email protected]"
] | |
79fe522a94d8415950de2d72e0d171fa5c9915a2 | 74985a6a0d51ddd336d1762ab09658b2a2c54e96 | /app/src/main/java/com/example/tester/BreakFastProcedure2.java | dd80264e7888771a7db667a85f9d175e68c045f7 | [] | no_license | johnjoma/RecipeApp | 2835451aa6a05207191aaccb2b68b78d76832f83 | 6f05c31a166560b489b2f56b12dfb3ac7673c7c9 | refs/heads/master | 2020-05-24T10:02:39.030601 | 2019-05-17T16:45:11 | 2019-05-17T16:45:11 | 187,219,537 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 676 | java | package com.example.tester;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
/**
* A simple {@link Fragment} subclass.
*/
public class BreakFastProcedure2 extends Fragment {
public BreakFastProcedure2() {
// Required empty public constructor
}
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
// Inflate the layout for this fragment
return inflater.inflate(R.layout.fragment_break_fast_procedure2, container, false);
}
}
| [
"[email protected]"
] | |
ce4c10155736efdbb0cf1e01fd247ac94bf8b8c4 | 5d46d096cd919e1660339a8acb139a40d96fe3d7 | /immo_server/src/main/java/com/immo/business/service/mapping/DossierClientServiceMapper.java | fa76e9937514edae5d24f20115407473256288a9 | [] | no_license | kharbouch/immo_server | 3cb8a902fb96dc1ba8dd51721a2245860a4b1ebc | e245d60a5257df7a3426684e49667a37e5208065 | refs/heads/master | 2021-01-01T04:12:21.546653 | 2016-05-17T23:11:30 | 2016-05-17T23:11:30 | 59,064,784 | 0 | 0 | null | null | null | null | ISO-8859-2 | Java | false | false | 3,241 | java | /*
* Created on 29 déc. 2015 ( Time 20:53:41 )
* Generated by Telosys Tools Generator ( version 2.1.1 )
*/
package com.immo.business.service.mapping;
import org.modelmapper.ModelMapper;
import org.modelmapper.convention.MatchingStrategies;
import org.springframework.stereotype.Component;
import com.immo.bean.DossierClient;
import com.immo.bean.jpa.DossierClientEntity;
import com.immo.bean.jpa.ClientEntity;
import com.immo.bean.jpa.DossierEntity;
/**
* Mapping between entity beans and display beans.
*/
@Component
public class DossierClientServiceMapper extends AbstractServiceMapper {
/**
* ModelMapper : bean to bean mapping library.
*/
private ModelMapper modelMapper;
/**
* Constructor.
*/
public DossierClientServiceMapper() {
modelMapper = new ModelMapper();
modelMapper.getConfiguration().setMatchingStrategy(MatchingStrategies.STRICT);
}
/**
* Mapping from 'DossierClientEntity' to 'DossierClient'
* @param dossierClientEntity
*/
public DossierClient mapDossierClientEntityToDossierClient(DossierClientEntity dossierClientEntity) {
if(dossierClientEntity == null) {
return null;
}
//--- Generic mapping
DossierClient dossierClient = map(dossierClientEntity, DossierClient.class);
//--- Link mapping ( link to Client )
if(dossierClientEntity.getClient() != null) {
dossierClient.setRefClient(dossierClientEntity.getClient().getId());
}
//--- Link mapping ( link to Dossier )
if(dossierClientEntity.getDossier() != null) {
dossierClient.setRefDossier(dossierClientEntity.getDossier().getId());
}
return dossierClient;
}
/**
* Mapping from 'DossierClient' to 'DossierClientEntity'
* @param dossierClient
* @param dossierClientEntity
*/
public void mapDossierClientToDossierClientEntity(DossierClient dossierClient, DossierClientEntity dossierClientEntity) {
if(dossierClient == null) {
return;
}
//--- Generic mapping
map(dossierClient, dossierClientEntity);
//--- Link mapping ( link : dossierClient )
if( hasLinkToClient(dossierClient) ) {
ClientEntity client1 = new ClientEntity();
client1.setId( dossierClient.getRefClient() );
dossierClientEntity.setClient( client1 );
} else {
dossierClientEntity.setClient( null );
}
//--- Link mapping ( link : dossierClient )
if( hasLinkToDossier(dossierClient) ) {
DossierEntity dossier2 = new DossierEntity();
dossier2.setId( dossierClient.getRefDossier() );
dossierClientEntity.setDossier( dossier2 );
} else {
dossierClientEntity.setDossier( null );
}
}
/**
* Verify that Client id is valid.
* @param Client Client
* @return boolean
*/
private boolean hasLinkToClient(DossierClient dossierClient) {
if(dossierClient.getRefClient() != null) {
return true;
}
return false;
}
/**
* Verify that Dossier id is valid.
* @param Dossier Dossier
* @return boolean
*/
private boolean hasLinkToDossier(DossierClient dossierClient) {
if(dossierClient.getRefDossier() != null) {
return true;
}
return false;
}
/**
* {@inheritDoc}
*/
@Override
protected ModelMapper getModelMapper() {
return modelMapper;
}
protected void setModelMapper(ModelMapper modelMapper) {
this.modelMapper = modelMapper;
}
} | [
"MAK@MAK-PC"
] | MAK@MAK-PC |
d76e4cdd3b362d8a0e536d215bf486f3a9d63ec0 | f6d5105af4e5a617fd64c4860d90d38aa2ec5a6a | /jwt-spring-sec/src/main/java/com/isk/entities/AppUser.java | 96a90199ddf62c8d3255087d6a209501228d17fd | [] | no_license | iskander-hub/jwt-spring-security | 52a0866984acada0827ba5adb76417e981a4a08c | e1d04312cef6bb39c882eb2c53ce2b3d4b4e83cd | refs/heads/master | 2023-01-22T00:39:57.953091 | 2020-11-25T21:06:26 | 2020-11-25T21:06:26 | 316,053,361 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,597 | java | package com.isk.entities;
import java.util.ArrayList;
import java.util.Collection;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToMany;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonSetter;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@Entity
//@Data @AllArgsConstructor @NoArgsConstructor
public class AppUser {
public AppUser() {
super();
}
public AppUser(Long id, String username, String password, Collection<AppRole> roles) {
super();
this.id = id;
this.username = username;
this.password = password;
this.roles = roles;
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
@JsonIgnore
public String getPassword() {
return password;
}
@JsonSetter
public void setPassword(String password) {
this.password = password;
}
public Collection<AppRole> getRoles() {
return roles;
}
public void setRoles(Collection<AppRole> roles) {
this.roles = roles;
}
@Id @GeneratedValue
private Long id;
@Column(unique = true)
private String username;
//@JsonIgnore
private String password;
@ManyToMany(fetch = FetchType.EAGER)
private Collection<AppRole> roles = new ArrayList<>();
}
| [
"[email protected]"
] | |
3025b6e33f3656bbb4b7d0b8951fc88ff77e60f8 | fefeae8b8f8b19336d4068833faeb284e3828f4c | /spring-boot/src/main/java/com/demo/web/UserController.java | 51d2909db29edee9d74a9cdd3e2c4db2e51c0441 | [] | no_license | liyg1011/demo | 3e2addf55df6eb20a0f01ee06ab5d50cea2a30fe | 82d467df7130ca09e6c24fa66c745b88457d47f7 | refs/heads/master | 2020-03-27T04:32:35.931720 | 2018-09-19T10:17:15 | 2018-09-19T10:17:15 | 145,949,266 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,113 | java | package com.demo.web;
import com.demo.modal.User;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;
import java.util.*;
@RestController
@RequestMapping(value = "/users") // 通过这里配置使下面的映射都在/users下
public class UserController {
// 创建线程安全的Map
static Map<Long, User> users = Collections.synchronizedMap(new HashMap<>());
@ApiOperation(value="获取用户列表", notes="")
@RequestMapping(value = "/", method = RequestMethod.GET)
public List<User> getUserList() {
// 处理"/users/"的GET请求,用来获取用户列表
// 还可以通过@RequestParam从页面中传递参数来进行查询条件或者翻页信息的传递
List<User> r = new ArrayList<>(users.values());
return r;
}
@RequestMapping(value = "/", method = RequestMethod.POST)
public String postUser(@ModelAttribute User user) {
// 处理"/users/"的POST请求,用来创建User
// 除了@ModelAttribute绑定参数之外,还可以通过@RequestParam从页面中传递参数
users.put(user.getId(), user);
return "success";
}
@RequestMapping(value = "/{id}", method = RequestMethod.GET)
public User getUser(@PathVariable Long id) {
// 处理"/users/{id}"的GET请求,用来获取url中id值的User信息
// url中的id可通过@PathVariable绑定到函数的参数中
return users.get(id);
}
@RequestMapping(value = "/{id}", method = RequestMethod.PUT)
public String putUser(@PathVariable Long id, @ModelAttribute User user) {
// 处理"/users/{id}"的PUT请求,用来更新User信息
User u = users.get(id);
u.setName(user.getName());
u.setAge(user.getAge());
users.put(id, u);
return "success";
}
@RequestMapping(value = "/{id}", method = RequestMethod.DELETE)
public String deleteUser(@PathVariable Long id) {
// 处理"/users/{id}"的DELETE请求,用来删除User
users.remove(id);
return "success";
}
}
| [
"[email protected]"
] | |
bf6cc02713c39c761b7882639c8f87dee5bd3d23 | 9d0f46f7ea8b280858b0cb89dcd59928aba1b3d3 | /app/src/main/java/sg/edu/rp/c346/simpletodo/MainActivity.java | fe9638e388450c2a23e8c21eaeb1514e6269f131 | [] | no_license | ZhiyangT/SimpleToDo | 6267a535c1d81e3c47cc29bb795ca3aecc993ac3 | 0beded1befaf97e0551b3ce6f8649f4eff362895 | refs/heads/master | 2020-05-31T06:17:42.840508 | 2019-06-04T07:13:44 | 2019-06-04T07:13:44 | 190,139,177 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,129 | java | package sg.edu.rp.c346.simpletodo;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ListView;
import android.widget.Spinner;
import android.widget.Toast;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public class MainActivity extends AppCompatActivity {
Spinner spn;
EditText etTask;
Button btnAdd;
Button btnDel;
Button btnClear;
ListView lv;
ArrayList<String> alTask;
ArrayAdapter aaTask;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
spn = findViewById(R.id.spinner);
etTask = findViewById(R.id.editTextTask);
btnAdd = findViewById(R.id.buttonAdd);
btnDel = findViewById(R.id.buttonDel);
btnClear = findViewById(R.id.buttonClear);
lv = findViewById(R.id.listView);
alTask = new ArrayList<>();
aaTask = new ArrayAdapter(this, android.R.layout.simple_list_item_1, alTask);
//Sorting ArrayList in alphabetical order
//Collections.sort(alTask);
lv.setAdapter(aaTask);
spn.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
@Override
public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
switch (position) {
case 0:
etTask.setHint("Type in a new task here");
btnDel.setEnabled(false);
btnAdd.setEnabled(true);
etTask.setText("");
break;
case 1:
etTask.setHint("Type in the index of the task to be removed");
btnAdd.setEnabled(false);
btnDel.setEnabled(true);
etTask.setText("");
break;
}
}
@Override
public void onNothingSelected(AdapterView<?> parent) {
}
});
btnAdd.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
alTask.add(etTask.getText().toString());
etTask.setText("");
aaTask.notifyDataSetChanged();
}
});
btnDel.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
int index = Integer.parseInt(etTask.getText().toString());
//check if array have available entry to delete
if (alTask.size() >= 1) {
//check if position is valid
try {
alTask.remove(index);
}
catch (IndexOutOfBoundsException e) {
Toast.makeText(MainActivity.this, "Wrong index number", Toast.LENGTH_SHORT).show();
}
etTask.setText("");
aaTask.notifyDataSetChanged();
} else {
Toast.makeText(MainActivity.this, "You don't have any task to remove", Toast.LENGTH_SHORT).show();
}
}
});
btnClear.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
alTask.clear();
etTask.setText("");
aaTask.notifyDataSetChanged();
}
});
//click to delete
lv.setOnItemClickListener(new AdapterView.OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
alTask.remove(position);
aaTask.notifyDataSetChanged();
}
});
}
}
| [
"07101998Zy"
] | 07101998Zy |
2ad795bd95069fc29cbbdcdf03c0084cc9b7250c | e9426f30b6a0b8729a55ce505dbf114e8ae22ea0 | /Imovel/src/br/com/imobiliaria/helper/GenericDao.java | 102b8ca0cf9c7d72ae9ec5cae3ff4c622be8f17b | [] | no_license | edersp4/imoveis | 67d2868da101527d8b3c6c01d196c7ebdb844094 | d008f635314f6250ae7faf80b0b741f2fa4a8ec1 | refs/heads/master | 2021-01-10T19:56:48.926162 | 2016-09-22T17:00:14 | 2016-09-22T17:00:14 | 20,533,241 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 333 | java | package br.com.imobiliaria.helper;
import java.io.Serializable;
import java.util.List;
public abstract class GenericDao <T extends Serializable>{
public abstract void create(T t);
public abstract T read(T id);
public abstract void update(T t);
public abstract void delete(T t);
public abstract List<T> listAll();
}
| [
"[email protected]"
] | |
53bda9200f1351336b63b09967cc747d93849462 | c788fc5eca9fe87529e39e11490e5f8988f2e219 | /src/main/java/app/stuff/Country.java | 72236cb5f647e4609ee3c6096e08e388bd199ce8 | [] | no_license | rahulsuvarna/stuff | 53312d2762a7a5d068a093fbf814d24e5ea961f0 | eff429c0264defe090d7dc4cda50adc5ded068d2 | refs/heads/master | 2021-04-09T17:58:16.363393 | 2018-06-18T14:42:37 | 2018-06-18T14:42:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 568 | java | package app.stuff;
public class Country {
int id;
String name;
String continent;
int population;
public Country(int id, String name, String continent, int population) {
this.id = id;
this.name = name;
this.continent = continent;
this.population = population;
}
public int getId() {
return id;
}
public String getName() {
return name;
}
public String getContinent() {
return continent;
}
public int getPopulation() {
return population;
}
}
| [
"[email protected]"
] | |
3ff793b4718d283286ec23b0eceb9af2f934001d | fb9aadedc65478e9bff4d6b4d5a58234e0d8a088 | /initialization/ArraysOfPrimitives.java | ac497051d835526c35f2b319d9ca42b3d66b0617 | [] | no_license | ctuu/ThinkingInJava | 80dbfa57bb8e074fb06d00b7d6f4caa21a59b383 | 51d5e188fe17459631fa9a85ace6048a619c425b | refs/heads/master | 2021-01-21T12:30:35.569385 | 2017-12-16T03:04:49 | 2017-12-16T03:04:49 | 102,073,285 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 288 | java | public class ArraysOfPrimitives {
public static void main(String[] args) {
int[] a1 = {1, 2, 3, 4, 5};
int[] a2;
a2 = a1;
for (int i = 0; i < a2.length; ++i) a2[i] = a2[i] + 1;
for (int i = 0; i < a1.length; ++i) System.out.println("a1[" + i + "] = " + a1[i]);
}
} | [
"[email protected]"
] | |
5e3a046c35a16f5835c9eebde1aad789a974949f | 2fc6fbd6aea71b2764c39a3389dd446eb20fff0b | /src/main/java/com/flystarfly/mybatisplusdemo/domain/entity/ReptileData.java | ac0985f640b322f9daac7886397c37b54836725d | [] | no_license | flystarfly/mybatisplusdemo | 05ff40c58d998b99050c61e5942badd8666f39cf | 3336edb1b400fbbd3c35c3996e83060fefa59a44 | refs/heads/master | 2023-06-23T04:30:15.666356 | 2020-05-11T01:43:48 | 2020-05-11T01:43:48 | 262,501,427 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,464 | java | package com.flystarfly.mybatisplusdemo.domain.entity;
import lombok.Data;
import java.util.Date;
/**
* @author zhouzhiqing
* @deacription 爬虫数据表实体类
* @createTime 2019-11-18 18:02
* @company 杭州泽达鑫药盟技术有限公司
* @department
* @Version 1.0
**/
@Data
public class ReptileData {
/*
id
*/
private Integer id ;
/*
目录ID
*/
private Integer catalogueId ;
/*
是否低价 0低价 1疑似低价 2正常价格
*/
private Integer isLowed ;
/*
店铺ID
*/
private Integer storeId ;
/*
平台ID
*/
private Integer webId ;
/*
发货地
*/
private String address ;
/*
截图存放路径
*/
private String picStoragePath ;
/*
价格
*/
private String price ;
/*
备注
*/
private String remark ;
/*
店铺名称
*/
private String storeName ;
/*
旺旺名
*/
private String wangName ;
/*
平台名称
*/
private String webName ;
/*
网站URL
*/
private String webUrl ;
/*
药品地址
*/
private String drugPath;
/* 商品名称 */
private String medName;
/* 包装规格*/
private String packingSpec;
/* 店铺地址*/
private String storePath;
/*
创建时间
*/
private Date createTime ;
/*
最后更新时间
*/
private Date updateTime ;
} | [
"[email protected]"
] | |
281d4daa492e3de76d7ba16255ffe17a26b79640 | df352de9f4acc8592f4887b2532e39dfade524ae | /src/binarytree/BoundaryBinaryTree.java | ea772bbb6fce17559ad5637138d2d67ba0415bb6 | [] | no_license | thuyho2016/leetcode_practice | 18efbcafcf627af10efc6df32579763a5b6392ef | 0ec28086e28a4e7d22caef495036b103644564df | refs/heads/master | 2022-11-08T23:58:47.325440 | 2020-06-13T23:42:27 | 2020-06-13T23:42:27 | 271,127,062 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 6,029 | java |
package binarytree;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map.Entry;
/*
* 545. Boundary of Binary Tree
* https://leetcode.com/problems/boundary-of-binary-tree/
Given a binary tree, return the values of its boundary in anti-clockwise direction starting from root. Boundary includes left boundary, leaves, and right boundary in order without duplicate nodes. (The values of the nodes may still be duplicates.)
Left boundary is defined as the path from root to the left-most node. Right boundary is defined as the path from root to the right-most node. If the root doesn't have left subtree or right subtree, then the root itself is left boundary or right boundary. Note this definition only applies to the input binary tree, and not applies to any subtrees.
The left-most node is defined as a leaf node you could reach when you always firstly travel to the left subtree if exists. If not, travel to the right subtree. Repeat until you reach a leaf node.
The right-most node is also defined by the same way with left and right exchanged.
Example 1
Input:
1
\
2
/ \
3 4
Ouput:
[1, 3, 4, 2]
Explanation:
The root doesn't have left subtree, so the root itself is left boundary.
The leaves are node 3 and 4.
The right boundary are node 1,2,4. Note the anti-clockwise direction means you should output reversed right boundary.
So order them in anti-clockwise without duplicates and we have [1,3,4,2].
Example 2
Input:
____1_____
/ \
2 3
/ \ /
4 5 6
/ \ / \
7 8 9 10
Ouput:
[1,2,4,7,8,9,10,6,3]
Explanation:
The left boundary are node 1,2,4. (4 is the left-most node according to definition)
The leaves are node 4,7,8,9,10.
The right boundary are node 1,3,6,10. (10 is the right-most node).
So order them in anti-clockwise without duplicate nodes we have [1,2,4,7,8,9,10,6,3].
Boundary has 3 parts:
1. Left boundary: 1, 2, 4
2. Right boundary: 1, 3, 6, 10
3. Leaf nodes : 4, 7, 8, 9, 10
So, some nodes are repeated. Just delete the duplicate node.
- Go to left boundary, check if you have left node.
- Go to right boundary, check if you have left node.
- write a function to print leaf
Time complexity: O(n)
*/
public class BoundaryBinaryTree {
public static List<Integer> boundaryOfBinaryTree(TreeNode root) {
List<Integer> result = new ArrayList<>(); //create a ArrayList to hold nodes
if (root == null) return null;
if (root.left == null && root.right == null ) {
result.add(root.val);
return result;
}
//add the root node to list
result.add(root.val);
//leftBoundary(root.left, result); // //print left boundary
leftBoundaryExceptLeafNode(root.left, result);
printLeaf(root.left, result); // eaf node in left subtree
printLeaf(root.right, result); // leaf node in right subtree
//rightBoundaryExceptLeafNode(root.right, result);
//rightBoundary(root.right, result); // start root.right because i don't want to print root again
return result;
}
// how to avoid duplicate node? don't print leaf node of leftBoundary
private static void leftBoundaryExceptLeafNode(TreeNode root, List<Integer> result) {
if (root == null) return;
else if (root.left == null && root.right == null ) return;
else {
result.add(root.val);
leftBoundaryExceptLeafNode(root.left, result);
}
}
private static void rightBoundaryExceptLeafNode(TreeNode root, List<Integer> result) {
if (root == null) return;
else if (root.left == null && root.right == null ) return;
else {
rightBoundaryExceptLeafNode(root.right, result);
rightBoundaryExceptLeafNode(root.left, result);
result.add(root.val);
}
}
//print leaf nodes - 4,7,8,9,10.
private static void printLeaf(TreeNode root, List<Integer> result) {
if (root == null) {
return;
}
else if (root != null && root.left == null && root.right == null) { // node don't have children
result.add(root.val); // add node to list
}
else if (root != null )// root.left != null && root.right != null) {
{
printLeaf(root.left, result); //make recursive call to keep going to left childs.
printLeaf(root.right, result);
}
}
private static void leftBoundary(TreeNode root, List<Integer> result) {
if (root != null) { // 2 - if current node has left child
result.add(root.val); // add value to list to print it out
//recursive left child
if (root.left != null) {
//result.add(root.left.val); // print root.left.val is 2
leftBoundary(root.left , result); // if current node has left child
} else if (root.right != null) {
//result.add(root.right.val);
leftBoundary(root.right, result);
}
}
}
//start right child - 3, 6, 10
private static void rightBoundary(TreeNode root, List<Integer> result) {
if (root != null) { // dont't print the root again
//result.add(root.val); don't add to print it here
if (root.right != null) {
rightBoundary(root.right, result); // if current node has right child, recursive right child
} else if (root.left!= null) { // if current node has left child
rightBoundary(root.left, result);
}
result.add(root.val); // add in the end to have reverse order
}
}
public static void main(String[] args) {
TreeNode root = new TreeNode(1);
root.left = new TreeNode(2);
root.right = new TreeNode(3);
// left subtree
root.left.left = new TreeNode(4); // 2 -> 4
root.left.right = new TreeNode(5); //2 -> 5
root.left.right.left = new TreeNode(7);
root.left.right.right = new TreeNode(8);
//rightsubtree
root.right.left = new TreeNode(6);
root.right.left.left= new TreeNode(9);
root.right.left.right = new TreeNode(10);
System.out.println(boundaryOfBinaryTree(root)); //[1,2,4,7,8,9,10,6,3]
}
} | [
"[email protected]"
] | |
7588ffa257a5b37aa56039a78f19abaaecd12fb1 | ad97f70ba69e4149a6bc0743d0c71920d576e6c2 | /src/main/java/com/jmdev/resavision/config/audit/package-info.java | d8890be6c1429386ff541ddc8eb9010c39c86101 | [] | no_license | jmorassin/resavision | 638188c2b87450709e7e9bc4237fcc34dd1fbe84 | 784b6f982b00af6abaff7634a96f1c77eb02d096 | refs/heads/master | 2022-12-16T05:51:55.686185 | 2018-03-10T14:53:16 | 2018-03-10T14:53:16 | 112,822,854 | 0 | 1 | null | 2020-09-18T09:11:12 | 2017-12-02T07:41:59 | Java | UTF-8 | Java | false | false | 75 | java | /**
* Audit specific code.
*/
package com.jmdev.resavision.config.audit;
| [
"[email protected]"
] | |
7d64cfeb2c163a19427bed4d9107606d3a0e1b12 | 21547fe1212fe761a4aceab3a238282ee15957d2 | /file/src/main/java/com/file/TextParse.java | d091ded382cb90bf785b5552bf3c414779bc1793 | [] | no_license | sawshaw/File | 1f571376f62e111bfbc8d9e88d9b253e5aba643e | 66be40a359b1a53e7a34460962ba84c23c4d47cc | refs/heads/master | 2021-09-06T15:58:01.841279 | 2018-02-08T08:49:13 | 2018-02-08T08:49:13 | 119,661,275 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 9,165 | java | package com.file;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.sql.Timestamp;
import java.text.SimpleDateFormat;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* @author mercy
*文件解析器
*数据库入库
*/
public class TextParse {
public static Logger logger = LoggerFactory.getLogger(TextParse.class);
//每次读取的最大文件数
private int maxfiles = 500;
//锁所在目录
public String fileLockPath="D:/fileTest/lock/";
//锁定文件锁
private String fileLock="FILE.LOCK";
private int flag=1;
public String localDir="D:/fileTest/old/";
//每隔1秒处理一个文件
private int intevalTime = 1000;
//文件备份目录
private String localBakDir="D:/fileTest/new/";
private static SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmss");
public void run(){
// while(true){
//检测是否存在锁
if(isFileLocked()){
//不存在文件锁则创建文件锁
if(!getFileLock()){
return;
}
String fileList=getFileList(this.localDir);
for(String myfile: fileList.split(",")){
if(myfile!=null&&myfile.length()>0){
//做导入文件到表操作
doInsertTables(myfile);
//移除文件操作
System.out.println("移动文件");
if (!removeFiles(myfile, this.localDir, this.localBakDir, ""))
{
//移动文件失败就配一个新文件名再移动
String newFileName = "RP_" + myfile + "_" + getCurTimeString();
removeFiles(myfile, this.localDir, this.localBakDir, newFileName);
}
try {
logger.info("sleep for a moment...");
Thread.sleep(this.intevalTime);
} catch (InterruptedException e) {
logger.error(e.toString());
}
}
}
}
//释放文件锁
releaseFileLock();
//}
}
//判断是否有文件锁
public boolean isFileLocked(){
File lockFile = new File(this.fileLockPath + this.fileLock);
if (lockFile.exists()) {
System.out.println("the file is locked");
return false;
}
return true;
}
//获取文件锁
public boolean getFileLock(){
File f = new File(this.fileLockPath + this.fileLock);
try {
System.out.println("创建文件锁");
f.createNewFile();
} catch (IOException e) {
System.out.println("get file lock error...."+e.getMessage());
return false;
}
return true;
}
//释放文件锁
public boolean releaseFileLock(){
System.out.println("释放锁");
File f = new File(this.fileLockPath + this.fileLock);
try{
f.delete();
}catch(Exception e){
logger.info("release file lock error....");
return false;
}
return true;
}
//获取文件名列表
public String getFileList(String filePath){
System.out.println("获取文件名列表");
String fileList = "";
File myfile = new File(filePath);
String[] fs = myfile.list();
int i = 0;
for (String f : fs) {
//if ((f.endsWith(".txt")) || (f.endsWith(".TXT"))) {
fileList = fileList + f + ",";
i++;
if (i >= this.maxfiles)
break;
}
// }
if (fileList.endsWith(",")) {
fileList = fileList.substring(0, fileList.length() - 1);
}
return fileList;
}
//移动源文件到目标目录
public boolean removeFiles(String f, String filePath, String dPath, String newfilename)
{
if (f.length() < 0)
return false;
File fl = new File(filePath + f);
if ((newfilename != null) && (newfilename.trim().length() > 0)){
f = newfilename;
}
File nf = new File(dPath + f);
if (nf.exists()) {
logger.info("目标数据已经存在,");
return false;
}
fl.renameTo(nf);
return true;
}
//解析文件
//格式
//82750854 ,1688588530 ,20170401,000244,22 ,1 ,0.00 , ,020 ,1682
//82750854 ,1688588510 ,20170401,000404,23 ,1 ,0.00 , ,020 ,1682
//82750854 ,1688588505 ,20170401,000535,39 ,1 ,5.00 , ,020 ,1682
//36454810 ,1688311160 ,20170401,000755,17 ,1 ,30.00 , ,020 ,1682
public void doInsertTables(String fileName){
StringBuffer sbuf = new StringBuffer();
try{
//
fileName=this.localDir+fileName;
//InputStream is = TextParse.class.getResourceAsStream(fileName);
InputStream is = new FileInputStream(fileName);
BufferedReader reader = new BufferedReader(new InputStreamReader(is,"UTF-8"));
String line = reader.readLine();
while (null != line) {
sbuf.append(line).append("\n");
//转换
int i=0;
String[] lines=line.split("\\|");
for(String lin:lines){
System.out.println(i++);
System.out.println("==="+lin);
}
//写数据库
insertTable(lines);
System.out.println("换行");
//for循环转换成对象
line = reader.readLine();
}
reader.close();//关闭reader就行了,is.close()不必
}catch(IOException e){
System.out.println("读取异常...");
}
System.out.println("输出读取的txt\n"+sbuf.toString()+"\n");
}
private static void insertTable(String[] lines) {
//Model model=setModel(lines);
Dbutils util=new Dbutils();
String sql="insert into file2 values(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)";
int i=0;
util.update(sql, lines[0],lines[1],lines[2],lines[3],lines[4],lines[5],lines[6],lines[7],lines[8],lines[9],lines[10],lines[11],lines[12],lines[13],lines[14],lines[15],lines[16],lines[17],lines[18],lines[19],lines[20],lines[21],lines[22],lines[23],lines[24],lines[25],lines[26],lines[27],lines[28],lines[29],lines[30],lines[31],lines[32],lines[33]);
}
private static Model setModel(String[] lines){
Model model=new Model();
int i=0;
model.setStreamNo(lines[i++]);
model.setTimestamp(lines[i++]);
model.setMsgId(lines[i++]);
model.setSubscriptionId(lines[i++]);
model.setOa(lines[i++]);
model.setOaId(lines[i++]);
model.setDa(lines[i++]);
model.setDaId(lines[i++]);
model.setFa(lines[i++]);
model.setFaId(lines[i++]);
model.setFaPayType(lines[i++]);
model.setServiceType(lines[i++]);
model.setCdrType(lines[i++]);
model.setChargePartyType(lines[i++]);
model.setSpId(lines[i++]);
model.setProductOfferId(lines[i++]);
model.setContentId(lines[i++]);
model.setServicecapabiltyId(lines[i++]);
model.setBeginTime(lines[i++]);
model.set(lines[i++]);
model.setSrcDeviceType(lines[i++]);
model.setSrcDeviceId(lines[i++]);
model.setDestDeviceType(lines[i++]);
model.setDestDeviceId(lines[i++]);
model.setTimes(lines[i++]);
model.setDuration(lines[i++]);
model.setUplinkVolume(lines[i++]);
model.setDownlinkVolume(lines[i++]);
model.setAccessPointName(lines[i++]);
model.setSgsnip(lines[i++]);
model.setChargeResult(lines[i++]);
model.setInfoFee(lines[i++]);
model.setChannelFee(lines[i++]);
model.setFee(lines[i++]);
model.setConstag(lines[i++]);
return model;
}
private static String getCurTimeString() {
return sdf.format(new Timestamp(System.currentTimeMillis()));
}
public int getMaxfiles() {
return maxfiles;
}
public void setMaxfiles(int maxfiles) {
this.maxfiles = maxfiles;
}
public String getFileLockPath() {
return fileLockPath;
}
public void setFileLockPath(String fileLockPath) {
this.fileLockPath = fileLockPath;
}
public int getFlag() {
return flag;
}
public void setFlag(int flag) {
this.flag = flag;
}
public String getLocalDir() {
return localDir;
}
public void setLocalDir(String localDir) {
this.localDir = localDir;
}
public int getIntevalTime() {
return intevalTime;
}
public void setIntevalTime(int intevalTime) {
this.intevalTime = intevalTime;
}
public String getLocalBakDir() {
return localBakDir;
}
public void setLocalBakDir(String localBakDir) {
this.localBakDir = localBakDir;
}
public void setFileLock(String fileLock) {
this.fileLock = fileLock;
}
class student{
private int id;
private String name;
private float core;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public float getCore() {
return core;
}
public void setCore(float core) {
this.core = core;
}
}
public static void main(String[] args){
//String fileName="/test.txt";
//doInsertTables(fileName);
new TextParse().run();
}
} | [
"[email protected]"
] | |
0ad79c433516c09f598f67c24ee20e869d9b46f7 | 8500d673fc7aa25b8c73bc5f44bce7178d4aebc6 | /src/appium/data/HomeData.java | 2d7d82cea29782413150eb76a81ea360f79af422 | [] | no_license | testczp/idea_projects | d26453a886cafded5b2e3309b30c113a168b6883 | b5403389d43a2af2ae0ba4d071b25550513c5c91 | refs/heads/master | 2022-05-27T06:06:33.922248 | 2020-04-12T11:19:57 | 2020-04-12T11:19:57 | 253,760,925 | 0 | 0 | null | 2022-05-20T21:32:58 | 2020-04-07T10:28:55 | Java | UTF-8 | Java | false | false | 96 | java | package appium.data;
/**
* Created by chenzepeng on 2020/2/20.
*/
public class HomeData {
}
| [
"[email protected]"
] | |
bf29ebf34ecf548cc8a8229e44424dddd15c4e19 | 515dfdcef10e33c7bdc36b0ca513b8632c0e7283 | /com.packtpub.e4.clock.ui/src/com/packtpub/e4/clock/ui/internal/TimeZoneDispayColumn.java | 3160bd2d47a20228cc9352e78ae91f4c8e83cb4e | [] | no_license | unclediga/EclipseE4_TUT | 733bba0a5abc3e0b669c69a8c31dd26f3f249f62 | 871639205371dead9bb83ae126bd978f9bfd8a32 | refs/heads/master | 2016-09-03T06:30:43.300389 | 2014-04-07T13:28:40 | 2014-04-07T13:28:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 406 | java | package com.packtpub.e4.clock.ui.internal;
import java.util.TimeZone;
public class TimeZoneDispayColumn extends TimeZoneColumn {
public TimeZoneDispayColumn() {
}
@Override
public String getText(Object element) {
if(element instanceof TimeZone){
return ((TimeZone)element).getDisplayName();
}else {
return "";
}
}
@Override
public String getTitle() {
return "Display name";
}
}
| [
"[email protected]"
] | |
b3857e28e6f2fad9066a934935c7dbbbf2348742 | f850ad432cbfd5320af40e3b4992cdaac842f9cb | /src/com/nelson/homeshop/Customer.java | 2e07c34670b546306aa4eb87ffbdea14e4ee00a5 | [] | no_license | moisenelson777/HomeShop | 7dd8359b9ff45d1131eda461e9688b2b4ada607f | a9296dfe0d2acd9455a921538ea1f405c3434cff | refs/heads/master | 2020-04-05T18:07:36.322797 | 2018-11-18T08:12:45 | 2018-11-18T08:12:45 | 157,089,761 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 351 | java | package com.nelson.homeshop;
public class Customer {
private String fullname;
private String address;
public Customer(String fullname, String address) {
this.fullname = fullname;
this.address = address;
}
public String getFullname() {
return fullname;
}
public String getAddress() {
return address;
}
}
| [
"[email protected]"
] | |
eca64e404f3b59332f47dc01cf6f213ee34b41f2 | ef1641c5a53462ce3b31bc96174a05ab798ddf16 | /DailyKittyBot2/app.dkb/src/main/java/instantiator/dailykittybot2/ui/helpers/IntroHelper.java | e8c454e6048e8af06977a7df7646bea4b2ed926d | [
"Unlicense"
] | permissive | instantiator/daily-kitten-bot-2 | 79970935e718f30ab90dde2ccfab47746d630d3c | 7f8de4b2fb560f52466efe8a61e940f5dced3e15 | refs/heads/master | 2021-05-14T11:22:28.695035 | 2019-02-01T19:23:43 | 2019-02-01T19:23:43 | 116,379,592 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,602 | java | package instantiator.dailykittybot2.ui.helpers;
import android.content.SharedPreferences;
import android.support.v7.app.AppCompatActivity;
import com.rubengees.introduction.IntroductionBuilder;
import com.rubengees.introduction.Option;
import com.rubengees.introduction.Slide;
import java.util.ArrayList;
import java.util.List;
import instantiator.dailykittybot2.R;
import static android.content.Context.MODE_PRIVATE;
public class IntroHelper {
private static final String PREFS_NAME = "IntroHelper.settings";
private static final String KEY_previously_shown = "previously_shown";
private AppCompatActivity context;
public IntroHelper(AppCompatActivity activity) {
this.context = activity;
}
public boolean has_run() {
SharedPreferences settings = context.getSharedPreferences(PREFS_NAME, MODE_PRIVATE);
return settings.getBoolean(KEY_previously_shown, false);
}
public void set_run(boolean run) {
SharedPreferences settings = context.getSharedPreferences(PREFS_NAME, MODE_PRIVATE);
SharedPreferences.Editor editor = settings.edit();
editor.putBoolean(KEY_previously_shown, run);
editor.commit();
}
public void initiate() {
new IntroductionBuilder(context)
.withSlides(generateSlides())
.introduceMyself();
set_run(true);
}
private List<Slide> generateSlides() {
List<Slide> result = new ArrayList<>();
result.add(
new Slide()
.withTitle(context.getString(R.string.slide_1_title_welcome))
.withDescription(R.string.slide_1_description_welcome)
.withImage(R.drawable.screenshot_accounts)
.withColorResource(R.color.slide_1_background));
result.add(
new Slide()
.withTitle(context.getString(R.string.slide_2_title_welcome))
.withDescription(R.string.slide_2_description_welcome)
.withImage(R.drawable.screenshot_reddit)
.withColorResource(R.color.slide_2_background));
result.add(
new Slide()
.withTitle(context.getString(R.string.slide_3_title_welcome))
.withDescription(R.string.slide_3_description_welcome)
.withImage(R.drawable.screenshot_rules)
.withColorResource(R.color.slide_3_background));
result.add(
new Slide()
.withTitle(context.getString(R.string.slide_4_title_welcome))
.withDescription(R.string.slide_4_description_welcome)
.withImage(R.drawable.screenshot_recommendations)
.withColorResource(R.color.slide_4_background));
result.add(
new Slide()
.withTitle(context.getString(R.string.slide_5_title_welcome))
.withDescription(R.string.slide_5_description_welcome)
.withImage(R.drawable.screenshot_accounts)
.withColorResource(R.color.slide_5_background));
result.add(
new Slide()
.withTitle(context.getString(R.string.slide_6_title_welcome))
.withDescription(R.string.slide_6_description_welcome)
.withImage(R.drawable.screenshot_sample_data)
.withColorResource(R.color.slide_6_background));
return result;
}
}
| [
"[email protected]"
] | |
24edced9533c7187c44fc33814a5a832d5d34414 | c470acfd730ba2f5fdcf51e2c20c4e6247b9f6e6 | /src/main/java/com/qh/common/utils/DateUtil.java | 2138c0e7d29bfb93ef6d35c061e94fa2b1b80061 | [] | no_license | 375738283/test5 | e85fda59361229f338b22e4d8be80834895a2484 | 8d2720cac1964653250346b807119dfc337b2b49 | refs/heads/master | 2022-11-08T16:22:58.708214 | 2020-04-02T09:32:51 | 2020-04-02T09:32:51 | 236,646,959 | 0 | 0 | null | 2022-10-12T20:36:28 | 2020-01-28T03:07:02 | JavaScript | UTF-8 | Java | false | false | 12,523 | java | package com.qh.common.utils;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import com.alibaba.fastjson.JSONObject;
/**
* @ClassName DateUtil
* @Description 时间操作工具类
* @Date 2017年11月3日 下午3:12:20
* @version 1.0.0
*/
public class DateUtil {
/**** 时间格式--yyyyMMddHHmmss **/
public static final String date_fmt_yyyyMMddHHmmss = "yyyyMMddHHmmss";
/**** 时间格式--yyyyMMdd **/
public static final String date_fmt_yyyyMMdd = "yyyyMMdd";
/*** 时间格式--yyyy-MM-dd HH:mm:ss */
public static final String date_fmt_yyMMddHH_mm_ss = "yyyy-MM-dd HH:mm:ss";
/***日期格式 yyyy-MM-dd ***/
public static final String date_fmt_yyyy_MM_dd = "yyyy-MM-dd";
/**时间格式 HH:mm***/
public static final String time_fmt_HH_mm = "HH:mm";
/**时间格式 HH:mm:ss***/
public static final String time_fmt_HH_mm_ss = "HH:mm:ss";
/**时间格式 HH:mm:ss***/
public static final String time_fmt_HHmmss = "HHmmss";
private static SimpleDateFormat sdf = new SimpleDateFormat(date_fmt_yyMMddHH_mm_ss);
private static SimpleDateFormat sdfDate = new SimpleDateFormat(date_fmt_yyyyMMdd);
private static SimpleDateFormat sdfNumber = new SimpleDateFormat(date_fmt_yyyyMMddHHmmss);
private static SimpleDateFormat sdf_Date = new SimpleDateFormat(date_fmt_yyyy_MM_dd);
private static SimpleDateFormat sdfTime = new SimpleDateFormat(time_fmt_HH_mm);
private static SimpleDateFormat sdfTimeSec = new SimpleDateFormat(time_fmt_HH_mm_ss);
private static SimpleDateFormat sdfTimeSecStr = new SimpleDateFormat(time_fmt_HHmmss);
/**
* 节假日获取相关信息
*/
private static final String EASYBOTS_URL = "http://www.easybots.cn/api/holiday.php";
private static final String GOSEEK_URL = "http://api.goseek.cn/Tools/holiday";
private static final Map<String, String> HOLIDAY = new HashMap<String, String>();
/**
*
* @Description 日期格式 yyyy-MM-dd
* @param source
* @return
*/
public static Date parseDate(String source){
try {
return sdf_Date.parse(source);
} catch (ParseException e) {
}
return null;
}
/**
* @Description 返回时间格式 HH:mm
* @param source
* @return
*/
public static Date parseTime(String source) {
try {
return sdfTime.parse(source);
} catch (ParseException e) {
}
return null;
}
/**
* @Description 返回时间秒格式 HH:mm:ss
* @param source
* @return
*/
public static Date parseTimeSec(String source) {
try {
return sdfTimeSec.parse(source);
} catch (ParseException e) {
}
return null;
}
/**
* @Description 返回时间秒格式 HH:mm:ss
* @param source
* @return
*/
public static String parseTimeSec() {
return sdfTimeSec.format(new Date());
}
/**
* @Description 返回时间秒格式 HHmmss
* @param source
* @return
*/
public static String parseTimeSecStr() {
return sdfTimeSecStr.format(new Date());
}
/**
* @Description 返回时间秒格式 HH:mm:ss
* @param source
* @return
*/
public static Date parseDateTime(String source){
try {
return sdf.parse(source);
} catch (ParseException e) {
}
return null;
}
/**
*
* @Description 返回标准时间格式 yyyy-MM-dd HH:mm:ss
* @return
*/
public static String getCurrentStr() {
return sdf.format(new Date());
}
/**
*
* @Description 返回标准时间格式
* @param date
* @return
*/
public static String getCurrentStr(Date date) {
return sdf.format(date);
}
/**
*
* @Description 返回日期格式
* @return
*/
public static String getCurrentDateStr() {
return sdfDate.format(new Date());
}
/**
*
* @Description 返回日期格式
* @param date
* @return
*/
public static String getCurrentDateStr(Date date) {
return sdfDate.format(date);
}
/**
*
* @Description 返回纯数字格式
* @return
*/
public static String getCurrentNumStr() {
return sdfNumber.format(new Date());
}
/**
*
* @Description 返回纯数字格式
* @param date
* @return
*/
public static String getCurrentNumStr(Date date) {
return sdfNumber.format(date);
}
/**
*
* @Description 获取倒计时
* @param date
* @return
*/
public static Integer getCountdown(long time, Date date) {
if (date.getTime() < time) {
return 0;
}
return (int) ((date.getTime() - time) / 1000);
}
/****
*
* @Description 获取当前时间的起止 00:00:00
* @param args
* @throws ParseException
*/
public static int getBeginTimeIntZero(Date date) {
if (date == null) {
date = new Date();
}
try {
return (int) (sdfDate.parse(sdfDate.format(date)).getTime()/1000);
} catch (ParseException e) {
}
return 0;
}
/****
*
* @Description 获取当前时间的起止 00:00:00
* @param args
* @throws ParseException
*/
public static int getBeginTimeIntZero(String dateStr) {
try {
if (ParamUtil.isNotEmpty(dateStr)) {
return (int) (sdfDate.parse(dateStr).getTime()/1000);
}else{
return (int) (sdfDate.parse(sdfDate.format(new Date())).getTime()/1000);
}
} catch (ParseException e) {
}
return 0;
}
/****
*
* @Description 获取当前时间的起止 23:59:59
* @param args
* @throws ParseException
*/
public static int getEndTimeIntLast(String dateStr) {
return getBeginTimeIntZero(dateStr) + 24*60*60 -1;
}
/****
*
* @Description 获取当前时间的起止 00:00:00
* @param args
* @throws ParseException
*/
public static int getBeginTimeIntZero() {
try {
return (int) (sdfDate.parse(sdfDate.format(new Date())).getTime()/1000);
} catch (ParseException e) {
}
return 0;
}
/****
*
* @Description 获取当前时间的起止 00:00:00
* @param args
* @throws ParseException
*/
public static Date getBeginTimeZero(Date date) {
if (date == null) {
date = new Date();
}
try {
return sdfDate.parse(sdfDate.format(date));
} catch (ParseException e) {
}
return null;
}
/****
*
* @Description 获取当前时间的起止 23:59:59
* @param args
* @throws ParseException
*/
public static int getEndTimeIntLast(Date date) {
return getBeginTimeIntZero(date) + 24*60*60 -1;
}
/***
* 获取当前时间秒
*/
public static int getCurrentTimeInt(){
return (int) (System.currentTimeMillis()/1000);
}
/****
*
* @Description 获取当前时间的起止 23:59:59
* @param args
* @throws ParseException
*/
public static int getEndTimeIntLast(int zeroTime) {
return zeroTime + 24*60*60 -1;
}
/****
*
* @Description 获取当前时间的起止 23:59:59
* @param args
* @throws ParseException
*/
public static int getEndTimeIntLast() {
return getBeginTimeIntZero(new Date()) + 24*60*60 -1;
}
/****
*
* @Description 获取当前时间的起止 23:59:59
* @param args
* @throws ParseException
*/
public static Date getEndTimeLast(Date date) {
if (date == null) {
date = new Date();
}
try {
return sdfNumber.parse(sdfNumber.format(date).substring(0, 8) + "235959");
} catch (ParseException e) {
}
return null;
}
/**
*
* @Description (获取当前分钟)
* @return
*/
public static int getCurrentMinute(Calendar c) {
return c.get(Calendar.HOUR_OF_DAY) * 60 + c.get(Calendar.MINUTE);
}
/***
*
* @Description 当前分钟 在不在 时间段,如果在 返回true,否则 返回false
* @param intPeriod 90-150,270-390
* @param minute
* @return
*/
public static boolean ifMinuteInPeriod(String intPeriod, int minute) {
if(ParamUtil.isEmpty(intPeriod)){
return true;
}
boolean result = false;
String[] datas = intPeriod.split(",");
String[] periods;
for (String data : datas) {
if (ParamUtil.isNotEmpty(data)) {
periods = data.split("-");
if(periods.length == 2) {
if (minute >= Integer.parseInt(periods[0]) &&
minute < Integer.parseInt(periods[1])) {
result = true;
break;
}
}
}
}
return result;
}
/**
*
* @Description 时间字符串转化为分钟 01:30-->90
* @param timeStr
* @return
*/
public static int timeToInt(String timeStr) {
int minute = 0;
if (ParamUtil.isNotEmpty(timeStr)) {
String[] timeStrs = timeStr.split(":");
if (timeStrs.length == 1) {
return Integer.parseInt(timeStrs[0]) * 60;
} else if (timeStrs.length == 2) {
return Integer.parseInt(timeStrs[0]) * 60 + Integer.parseInt(timeStrs[1]);
}
}
return minute;
}
/**
* @Description 时间格式转int格式 01:30-02:30,04:30-06:30-->90-150,270-390
* @param timePeriod
* @return
*/
public static String timeFormatToInt(String timePeriod) {
String[] datas = timePeriod.split(",");
String[] periods;
int start;
int end;
String intPeriod = "";
for (String data : datas) {
start = 0;
if (ParamUtil.isNotEmpty(data)) {
periods = data.split("-");
if (periods.length == 2) {
start = timeToInt(periods[0]);
end = timeToInt(periods[1]);
intPeriod += start + "-" + end + ",";
}
}
}
if(ParamUtil.isNotEmpty(intPeriod)){
intPeriod = intPeriod.substring(0, intPeriod.length()-1);
}
return intPeriod;
}
/**
*
* @Description 整数分钟转换位str 90---->01:30
* @param minuteToStr
* @return
*/
public static String intToTime(String intStr) {
int minute = 0;
String minuteStr = "";
if (ParamUtil.isNotEmpty(intStr)) {
minute = Integer.parseInt(intStr);
int hour = minute/60;
minute = minute%60;
minuteStr += hour<10?"0"+hour:String.valueOf(hour);
minuteStr += ":" + (minute<10?"0"+minute:String.valueOf(minute));
}
return minuteStr;
}
/**
* @Description 整数分钟转str格式 90-150,270-390-->01:30-02:30,04:30-06:30
* @param timePeriod
* @return
*/
public static String intFormatToTime(String timePeriod) {
String[] datas = timePeriod.split(",");
String[] periods;
String start;
String end;
String intPeriod = "";
for (String data : datas) {
if (ParamUtil.isNotEmpty(data)) {
periods = data.split("-");
if (periods.length == 2) {
start = intToTime(periods[0]);
end = intToTime(periods[1]);
intPeriod += start + "-" + end + ",";
}
}
}
if(ParamUtil.isNotEmpty(intPeriod)){
intPeriod = intPeriod.substring(0, intPeriod.length()-1);
}
return intPeriod;
}
/**
*
* @Description (获取当前星期)
* @return
*/
public static int getCurrentWeekDay(Calendar c) {
return c.get(Calendar.DAY_OF_WEEK);
}
/**
*
* @Description (获取当前星期)
* @return
*/
public static int getCurrentWeekDay() {
return Calendar.getInstance().get(Calendar.DAY_OF_WEEK);
}
/***
*
* @Description 解析字符串位时间
* @param source
* @return
*/
public static Date parseDateSource(String source){
if(source.matches("^((?:19|20)\\d\\d)-(((0[13578]|(10|12))-(0[1-9]|[1-2][0-9]|3[0-1]))|(02-(0[1-9]|[1-2][0-9]))|((0[469]|11)-(0[1-9]|[1-2][0-9]|30)))$")){
return DateUtil.parseDate(source);
}else if(source.matches("^((?:19|20)\\d\\d)-(((0[13578]|(10|12))-(0[1-9]|[1-2][0-9]|3[0-1]))|(02-(0[1-9]|[1-2][0-9]))|((0[469]|11)-(0[1-9]|[1-2][0-9]|30)))\\s(([1-9]{1})|([0-1][0-9])|([1-2][0-3])):([0-5][0-9]:[0-5][0-9])$")){
return DateUtil.parseDateTime(source);
}else if(source.matches("^(([1-9]{1})|([0-1][0-9])|([1-2][0-3])):([0-5][0-9])$")){
return DateUtil.parseTime(source);
}else if(source.matches("^(([1-9]{1})|([0-1][0-9])|([1-2][0-3])):([0-5][0-9]:[0-5][0-9])$")){
return DateUtil.parseTimeSec(source);
}
return null;
}
/**
* 获取当天还剩多少秒
* @return
*/
public static Long getDayLeftSeconds() {
return DateUtil.getEndTimeIntLast()-(new Date().getTime()/1000);
}
/**
* 获取当月还剩多少秒
* @return
*/
public static Long getMonthLeftSeconds() {
Calendar calendar = Calendar.getInstance();
calendar.set(Calendar.DAY_OF_MONTH, calendar
.getActualMaximum(Calendar.DAY_OF_MONTH));
System.out.println(DateUtil.getEndTimeIntLast(calendar.getTime()));
return (calendar.getTime().getTime()/1000)-(new Date().getTime()/1000);
}
public static void main(String[] args) {
// System.out.println(System.currentTimeMillis());
// System.out.println(DateUtil.getCurrentNumStr(new Date(1522036370000L)));
/*System.out.println(ifWorkingDays());
System.out.println(ifWorkingDays());*/
System.out.println(getMonthLeftSeconds());
}
}
| [
"[email protected]"
] | |
1402b1502b2348b1ac73ee8a429c2542b0b76b33 | e90bdfa1ff773af90a7f02e4d34d846f2ba42252 | /src/main/java/com/ivoronline/springboot_filter_chain/filters/MyFilter2.java | f64bec7284d2b3d2b37c4f96abd197a8f73792e5 | [] | no_license | ivoronline/springboot_filter_chain | 60d747ed5dd8a5bdd911135a2682ae8b8d2529a2 | 2267c9b058a55d088d5da2bffaa2d6a54e6fc777 | refs/heads/master | 2023-03-28T22:40:50.847035 | 2021-04-15T09:18:00 | 2021-04-15T09:18:00 | 344,490,129 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 890 | java | package com.ivoronline.springboot_filter_chain.filters;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import java.io.IOException;
@Component
@Order(1)
public class MyFilter2 implements Filter {
@Override
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
throws IOException, ServletException {
//THIS CODE IS EXECUTED DURING HTTP REQUEST
System.out.println("MyFilter2 : Code for HTTP Request");
//DIVIDES HTTP REQUEST AND RESPONSE CODE
chain.doFilter(request, response);
//THIS CODE IS EXECUTED DURING HTTP RESPONSE
System.out.println("MyFilter2 : Code for HTTP Response");
}
}
| [
"[email protected]"
] | |
c2d0fd0feda074f1ae58fb08d2d02d3bceef0656 | feaf86a295869d739348cf7b1a11421eecdb7e94 | /src/br/com/clinicaodonto/model/Adiminstracao.java | 176469a3171019449aaedab3243e975ff0b5688e | [] | no_license | Wheyckson/clinicaOdontoAds | 41113ce25bdf011ae7cfb0ff244f66f074da582d | 24c766c0380f499b8cf208a033a15eba49126e4a | refs/heads/master | 2023-01-14T10:31:51.433260 | 2020-11-03T23:24:20 | 2020-11-03T23:24:20 | 296,944,128 | 0 | 0 | null | 2020-10-15T03:37:24 | 2020-09-19T20:11:34 | Java | UTF-8 | Java | false | false | 71 | java | package br.com.clinicaodonto.model;
public class Adiminstracao {
}
| [
"[email protected]"
] | |
bba237e51a122ea045f1d2ff240bfa8d31875b92 | cc328476eba0f9dcbac108688cf1b97d1d06c189 | /src/main/java/com/cisco/policyconversiontool/dto/wsa/asyncos806/WgaConfig.java | 66d49699d3ccc384e784962f6ac6b4f38aad9be0 | [] | no_license | SecurView/cws-wsa | b9278caee8d52afd9f71b925516bc18380b5c331 | c3e9c245722f89d9a3189bf7bc9700e8b4c7f1d6 | refs/heads/master | 2016-09-06T21:35:20.674191 | 2014-12-19T14:45:23 | 2014-12-19T14:45:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 253,939 | java | //
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2014.11.26 at 05:46:49 PM IST
//
package com.cisco.policyconversiontool.dto.wsa.asyncos806;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"coeusWbnpExcludedDomains",
"coeusWbnpExtraSampling",
"coeusWbnpFeedbackSampling",
"coeusWbnpMaxStatsSize",
"coeusWbnpStatsServerHost",
"coeusWbnpStatsServerPort",
"coeusWbnpUploadInterval",
"coeusWbnpUploadLevel",
"coeusWbnpUserSampling",
"coeusWbnpVerboseLogging",
"coeuslogReportingAverageHttpObjectSize",
"merlinConfigDomainBlockingMatch",
"merlinConfigEnableDomainLevelBlocking",
"merlinConfigThreatRiskThreshold",
"ocspdOcspdOcspEnabled",
"ocspdOcspdUpstreamProxyConfig",
"ocspdOcspdClockSkew",
"ocspdOcspdNetworkErrorTimeout",
"ocspdOcspdValidResponseCacheTTL",
"ocspdOcspdInvalidResponseCacheTTL",
"ocspdOcspdNetworkErrorCacheTTL",
"ocspdOcspdStatsInterval",
"ocspdOcspdUseNonce",
"pacdConfigPacdEnabled",
"pacdConfigPort",
"pacdConfigPacFiles",
"pacdConfigPacExpire",
"pacdConfigPacExpirationInterval",
"pacdConfigPacInterface",
"pacdConfigDomain",
"pacFileTimestamps",
"udsConfigUserDiscoveryEdirMappingTimeout",
"udsConfigEdirectoryMaxQueryTime",
"udsConfigAdAgentAuthPort",
"udsConfigAdAgentAcctPort",
"udsConfigAdAgentCoaPort",
"udsConfigAdAgentMaxQueryTime",
"udsConfigAdAgentMaxPingTime",
"udsConfigAdAgentMaxAttempts",
"udsConfigAdAgentKeepAliveSleep",
"udsConfigAdAgentMappingExpiry",
"udsConfigAdAgentMappingCleanupInterval",
"udsConfigAdAgentQueryWaitTime",
"musdConfigEndpointTelemetryEnabled",
"proxAclRulesConnectEnabled",
"proxAclRulesConnectPorts",
"proxAclRulesConnectorEnabled",
"proxAclRulesCloudAuthGroups",
"proxAclRulesCustomcatCodeIndex",
"proxAclRulesDisabledCategories",
"proxAclRulesEnableSplashPage",
"proxAclRulesEnableExternalSnmpQueries",
"proxAclRulesNoCache",
"proxAclRulesReqAddHeader",
"proxAclRulesIcapRequestTimeout",
"proxAclRulesIcapLoadBalancing",
"proxAclRulesIcapFailureHandling",
"proxAclRulesIcapMinReqSize",
"proxAclRulesIdsMinReqSize",
"proxAclRulesDlpEnabled",
"proxAclRulesDlpOptin",
"proxAclRulesDecryptHttpsForAuth",
"proxAclRulesDecryptHttpsForEun",
"proxAclRulesAcceptClientipViaXffEnabled",
"proxAclRulesXffTrustedDownstreamProxies",
"proxAclRulesSourceAllowList",
"proxAclRulesSourceBlockList",
"proxAclRulesTimeDefinitions",
"proxAclRulesUserAgentDetection",
"proxAclRulesProxyconnUserAgents",
"proxAclRulesWbrsAllowAbove",
"proxAclRulesWbrsBlockBelow",
"proxAclRulesWbrsEnabled",
"proxAclRulesWbrsOptin",
"proxAclRulesWebcatEnabled",
"proxAclRulesWebcatOptin",
"proxAclRulesFirestoneEnabled",
"proxAclRulesFirestoneOptin",
"proxAclRulesFirestoneCaEnabled",
"proxAclRulesAvcEnabled",
"proxAclRulesAvcDecryptionEnabled",
"proxAclRulesAdaptiveScanningEnabled",
"proxAclRulesAdaptiveScanningRiskScoreThreshold",
"proxAclRulesAdaptiveScanningLoadFactorThreshold",
"proxAclRulesWebexBypass",
"proxAclRulesAupEngineFailureBlock",
"proxAclRulesMusOptin",
"proxAclRulesMusEnabled",
"proxAclRulesWebcatUnreachable",
"proxAclCustomCategories",
"proxAclPolicyGroups",
"proxAclHttpsGroups",
"proxAclIdentityGroups",
"proxAclRoutingGroups",
"proxAclIcapPolicyGroups",
"proxAclDlpPolicyGroups",
"proxAclOutboundAmwPolicyGroups",
"proxAclSocksGroups",
"proxAclSaasPolicyGroups",
"proxAclGlobals",
"proxAclProxyGroups",
"proxAclRulesPolicyTags",
"proxAclRulesUrlTags",
"proxAclIcapServers",
"proxAclBwAggregateRules",
"proxConfigAdvancedProxyOptions",
"proxConfigAswEnable",
"proxConfigAuthenticationMode",
"proxConfigAuthRealms",
"proxConfigAuthSequences",
"proxConfigAuthTimeout",
"proxConfigAuthenticateReferralsEnabled",
"proxConfigCertDirectory",
"proxConfigEnableCustomEun",
"proxConfigAllowDecryptionForEUA",
"proxConfigEnableRangeRequests",
"proxConfigEnableSslCache",
"proxConfigEnableVerdictCache",
"proxConfigErrorPageLanguage",
"proxConfigErrorPageLogoDisplayValue",
"proxConfigErrorPageLogoType",
"proxConfigExplicitImsRefreshTime",
"proxConfigGeneratedCertName",
"proxConfigGeneratedCert",
"proxConfigGeneratedKey",
"proxConfigHttpsEnabled",
"proxConfigHttpsOptin",
"proxConfigInvalidCertHandling",
"proxConfigMaxClientPconnTime",
"proxConfigMaxIdleClientPconns",
"proxConfigMerlinEnabled",
"proxConfigMerlinOptin",
"proxConfigLdapSettings",
"proxConfigNtlmSettings",
"proxConfigPermitOnAuthFailure",
"proxConfigProxConfigured",
"proxConfigProxEnabled",
"proxConfigProxFilename",
"proxConfigProxOptin",
"proxConfigProxyCacheEnabled",
"proxConfigSecureAuthCertName",
"proxConfigSecureAuthCert",
"proxConfigSecureAuthKey",
"proxConfigSseMaximumSizeToScanMb",
"proxConfigSigningCertName",
"proxConfigTrustOverrideRootCertIDs",
"proxConfigUploadedCertName",
"proxConfigUploadedCert",
"proxConfigUploadedKey",
"proxConfigUploadedRootCert",
"proxConfigUploadedRootCertContents",
"proxConfigUpstreamProxyAddress",
"proxConfigUpstreamProxyMode",
"proxConfigUseGroupmemAttr",
"proxConfigEnableAdvancedWinbinddWatchdog",
"proxConfigHttpPortTunnelingEnabled",
"proxConfigSslPortBlockNonssl",
"proxConfigMusTelemetryUrl",
"proxConfigMusTelemetryDataUrl",
"proxConfigMusTelemetryMaxSize",
"proxConfigSaml20IdpSettings",
"proxConfigSaml20IdpGeneratedCertificatePem",
"proxConfigSaml20IdpGeneratedPrivatekeyPem",
"proxConfigSaml20IdpUploadedCertificatePem",
"proxConfigSaml20IdpUploadedPrivatekeyPem",
"proxEtcAccessLogType",
"proxEtcAddForwardedFor",
"proxEtcAllowCaseInsensitiveUserMatch",
"proxEtcAllowEtagMismatch",
"proxEtcAllowHeuristicNotModified",
"proxEtcAllowUserFeedback",
"proxEtcAllowWildCardInGroupName",
"proxEtcAmpHighRiskPriority",
"proxEtcAmpLowRiskPriority",
"proxEtcAnonFtpLogin",
"proxEtcAnonFtpPassword",
"proxEtcAssociationInactivityTimeout",
"proxEtcAuthCookieName",
"proxEtcAuthenticateBasicChildren",
"proxEtcAuthenticateNtlmBasicChildren",
"proxEtcAuthenticateNtlmChildren",
"proxEtcAuthenticateTtl",
"proxEtcBwctrlDebug",
"proxEtcCacheAuthContent",
"proxEtcCacheFromUntrustedServer",
"proxEtcCcwsAuthorizationKey",
"proxEtcCcwsKeyGenInterval",
"proxEtcContinueCustomText",
"proxEtcContinueTimeout",
"proxEtcCustomLogFields",
"proxEtcDefaultMaxAge",
"proxEtcDefaultMaxAgeNeg",
"proxEtcDefaultMaxAgeNoLmt",
"proxEtcDevice",
"proxEtcDisablePeerDnsFailover",
"proxEtcDnsHostTableCacheTime",
"proxEtcDnsNegativeCacheTime",
"proxEtcDnsPref",
"proxEtcDynamicRecvWinSize",
"proxEtcDynamicSendWinSize",
"proxEtcErrorPageContactInfo",
"proxEtcErrorPageCustomText",
"proxEtcErrorPageUserAckText",
"proxEtcErrorPageEmailAddr",
"proxEtcErrorPageLogoUrl",
"proxEtcErrorPageRedirectionEnabled",
"proxEtcErrorPageRedirectionUrl",
"proxEtcErrorPageRedirectionUrlParams",
"proxEtcForwardedFor",
"proxEtcFtpEnabled",
"proxEtcFtpProxyPort",
"proxEtcFtpNativePassivePort",
"proxEtcFtpNativeActivePort",
"proxEtcFtpAuthFormat",
"proxEtcFtpServerIpSpoofing",
"proxEtcFtpCachingEnabled",
"proxEtcFtpCacheSize",
"proxEtcFtpUseServerWelcome",
"proxEtcFtpWelcomeBanner",
"proxEtcFtpMaxClientControlConnTime",
"proxEtcFtpMaxServerControlConnTime",
"proxEtcFtpMaxClientDataConnTime",
"proxEtcFtpMaxServerDataConnTime",
"proxEtcFtpMaxPathSize",
"proxEtcFtpEunLanguage",
"proxEtcFtpEunMessage",
"proxEtcGuestRealmName",
"proxEtcGuestUserNameOption",
"proxEtcHealthChecksDefault",
"proxEtcHideUserName",
"proxEtcHttpBindAddresses",
"proxEtcHttpsClientCertAction",
"proxEtcHttpsSessionEuaAction",
"proxEtcHttpsUriLogStyle",
"proxEtcIcapMaxConnections",
"proxEtcIgnoreNoCache",
"proxEtcIgnoreReloadTime",
"proxEtcBasicAuthCharset",
"proxEtcLogUnauthUser",
"proxEtcMalwareScanAllContent",
"proxEtcMaxAckTtl",
"proxEtcMaxAuthCacheEntries",
"proxEtcMaxAwaitingClientTime",
"proxEtcMaxClientIdleConnTime",
"proxEtcMaxFailedPeerRetrySec",
"proxEtcMaxIdleServPconns",
"proxEtcMaxIpAckIdle",
"proxEtcMaxIpToUserIdle",
"proxEtcMaxServerRetries",
"proxEtcMaxServPconnTime",
"proxEtcMaxTransparentAuthTtl",
"proxEtcMaxMachineCredAuthTtl",
"proxEtcMaxBrokenAuthTtl",
"proxEtcMcafeeRequestPoolSize",
"proxEtcSophosRequestPoolSize",
"proxEtcMinActivitySecs",
"proxEtcMinFailedPeerRetrySec",
"proxEtcPassForwardedFor",
"proxEtcPassProxyAuth",
"proxEtcPreventMultipleLogin",
"proxEtcPrintStaleFd",
"proxEtcProxyAuthorizationRealm",
"proxEtcProxymode",
"proxEtcProxyspoofing",
"proxEtcPort",
"proxEtcReAuthOnRequestDenied",
"proxEtcReloadToMaxAge",
"proxEtcReplaceIpWithForwardedFor",
"proxEtcRetryDnsAbbrev",
"proxEtcAuthRedirectPort",
"proxEtcSendNegotiateHeader",
"proxEtcSendSize",
"proxEtcServerNameExpansion",
"proxEtcSnmpPort",
"proxEtcSocksProxyEnabled",
"proxEtcSocksProxyNegotiationTimeout",
"proxEtcSocksProxyUdpTunnelTimeout",
"proxEtcSocksProxyPorts",
"proxEtcSocksProxyUdpRequestPorts",
"proxEtcSseQueryTimeout",
"proxEtcSslPort",
"proxEtcEnableSni",
"proxEtcEnableSessReuse",
"proxEtcSslParseTimeout",
"proxEtcCertificateCacheSize",
"proxEtcSslSessionExpiry",
"proxEtcMaxSslSrvSessions",
"proxEtcMaxSslClntSessions",
"proxEtcSuppressRequestVia",
"proxEtcSuppressResponseVia",
"proxEtcTcpBufCliRcvBin",
"proxEtcTcpBufCliSndBin",
"proxEtcTcpBufRcvBpsFact",
"proxEtcTcpBufSndBpsFact",
"proxEtcTcpBufSrvRcvBin",
"proxEtcTcpBufSrvSndBin",
"proxEtcThrottleCacheContent",
"proxEtcTrackFileName",
"proxEtcTrackTime",
"proxEtcTransparentAuthServer",
"proxEtcTunnelPort",
"proxEtcUseFtpActiveMode",
"proxEtcUseFtpActivePort",
"proxEtcUseFtpPassivePort",
"proxEtcUseL2ForwardAndRedir",
"proxEtcUseOriginalDest",
"proxEtcUseSecureClientAuth",
"proxEtcUserAckTrackingMethod",
"proxEtcMusAsaSettings",
"proxEtcMusIpRange",
"proxEtcWebrootBodyScanDisabled",
"systemNetworkUseManagementForProxy",
"systemNetworkPathMtuDiscovery",
"systemPacketTrace",
"trafmonBlacklist",
"trafmonConfigDnsSnoopEnabled",
"trafmonConfigTmAdditionalPorts",
"trafmonConfigTmBlacklistEnabled",
"trafmonConfigTmConfigured",
"trafmonConfigTmEnabled",
"trafmonConfigTmExemptlistEnabled",
"trafmonConfigTmMode",
"trafmonConfigTmOptin",
"trafmonConfigTmResponse",
"trafmonConfigTmBlacklistChanges",
"trafmonConfigTmForceGreylistBlack",
"trafmonConfigTmSkipProxyPorts",
"trafmonWhitelistTmWhitelistPorts",
"trafmonGrownBlacklistTmAdminBlacklistPorts",
"trafmonWhitelist",
"trafmonBypasslist",
"updaterDownloadsRetryInterval",
"updaterDownloadsServer",
"updaterManifestAlertThreshold",
"updaterManifestDynamicHost",
"updaterManifestDynamicPort",
"updaterManifestFetchInterval",
"updaterManifestFetchType",
"updaterManifestStaticUrl",
"updaterNetworkInterface",
"updaterNetworkHttpProxy",
"updaterNetworkHttpsProxy",
"updaterNetworkRoutingTable",
"wbrsCommandManagerWbnpDetailLevel",
"wbrsCommandManagerWbnpOptin",
"wbrsCommandManagerCategoriesVersion",
"wbrsCommandManagerWbrsUpdateInterval",
"wccpConfigServiceSettings",
"wccpDebugLevel",
"syslogRetryTimeout",
"syslogBufferThrottle",
"syslogMaxMessageSize"
})
@XmlRootElement(name = "wga_config")
public class WgaConfig {
@XmlElement(name = "coeus_wbnp_excluded_domains")
protected String coeusWbnpExcludedDomains;
@XmlElement(name = "coeus_wbnp_extra_sampling")
protected String coeusWbnpExtraSampling;
@XmlElement(name = "coeus_wbnp_feedback_sampling")
protected String coeusWbnpFeedbackSampling;
@XmlElement(name = "coeus_wbnp_max_stats_size")
protected String coeusWbnpMaxStatsSize;
@XmlElement(name = "coeus_wbnp_stats_server_host")
protected String coeusWbnpStatsServerHost;
@XmlElement(name = "coeus_wbnp_stats_server_port")
protected String coeusWbnpStatsServerPort;
@XmlElement(name = "coeus_wbnp_upload_interval")
protected String coeusWbnpUploadInterval;
@XmlElement(name = "coeus_wbnp_upload_level")
protected String coeusWbnpUploadLevel;
@XmlElement(name = "coeus_wbnp_user_sampling")
protected String coeusWbnpUserSampling;
@XmlElement(name = "coeus_wbnp_verbose_logging")
protected String coeusWbnpVerboseLogging;
@XmlElement(name = "coeuslog_reporting_average_http_object_size")
protected String coeuslogReportingAverageHttpObjectSize;
@XmlElement(name = "merlin_config_domain_blocking_match")
protected String merlinConfigDomainBlockingMatch;
@XmlElement(name = "merlin_config_enable_domain_level_blocking")
protected String merlinConfigEnableDomainLevelBlocking;
@XmlElement(name = "merlin_config_threat_risk_threshold")
protected String merlinConfigThreatRiskThreshold;
@XmlElement(name = "ocspd_ocspd_ocsp_enabled")
protected String ocspdOcspdOcspEnabled;
@XmlElement(name = "ocspd_ocspd_upstream_proxy_config")
protected OcspdOcspdUpstreamProxyConfig ocspdOcspdUpstreamProxyConfig;
@XmlElement(name = "ocspd_ocspd_clock_skew")
protected String ocspdOcspdClockSkew;
@XmlElement(name = "ocspd_ocspd_network_error_timeout")
protected String ocspdOcspdNetworkErrorTimeout;
@XmlElement(name = "ocspd_ocspd_valid_response_cache_TTL")
protected String ocspdOcspdValidResponseCacheTTL;
@XmlElement(name = "ocspd_ocspd_invalid_response_cache_TTL")
protected String ocspdOcspdInvalidResponseCacheTTL;
@XmlElement(name = "ocspd_ocspd_network_error_cache_TTL")
protected String ocspdOcspdNetworkErrorCacheTTL;
@XmlElement(name = "ocspd_ocspd_stats_interval")
protected String ocspdOcspdStatsInterval;
@XmlElement(name = "ocspd_ocspd_use_nonce")
protected String ocspdOcspdUseNonce;
@XmlElement(name = "pacd_config_pacd_enabled")
protected String pacdConfigPacdEnabled;
@XmlElement(name = "pacd_config_port")
protected String pacdConfigPort;
@XmlElement(name = "pacd_config_pac_files")
protected String pacdConfigPacFiles;
@XmlElement(name = "pacd_config_pac_expire")
protected String pacdConfigPacExpire;
@XmlElement(name = "pacd_config_pac_expiration_interval")
protected String pacdConfigPacExpirationInterval;
@XmlElement(name = "pacd_config_pac_interface", required = true)
protected String pacdConfigPacInterface;
@XmlElement(name = "pacd_config_domain", required = true)
protected PacdConfigDomain pacdConfigDomain;
@XmlElement(name = "pac_file_timestamps", required = true)
protected PacFileTimestamps pacFileTimestamps;
@XmlElement(name = "uds_config_user_discovery_edir_mapping_timeout")
protected String udsConfigUserDiscoveryEdirMappingTimeout;
@XmlElement(name = "uds_config_edirectory_max_query_time")
protected String udsConfigEdirectoryMaxQueryTime;
@XmlElement(name = "uds_config_ad_agent_auth_port")
protected String udsConfigAdAgentAuthPort;
@XmlElement(name = "uds_config_ad_agent_acct_port")
protected String udsConfigAdAgentAcctPort;
@XmlElement(name = "uds_config_ad_agent_coa_port")
protected String udsConfigAdAgentCoaPort;
@XmlElement(name = "uds_config_ad_agent_max_query_time")
protected String udsConfigAdAgentMaxQueryTime;
@XmlElement(name = "uds_config_ad_agent_max_ping_time")
protected String udsConfigAdAgentMaxPingTime;
@XmlElement(name = "uds_config_ad_agent_max_attempts")
protected String udsConfigAdAgentMaxAttempts;
@XmlElement(name = "uds_config_ad_agent_keep_alive_sleep")
protected String udsConfigAdAgentKeepAliveSleep;
@XmlElement(name = "uds_config_ad_agent_mapping_expiry")
protected String udsConfigAdAgentMappingExpiry;
@XmlElement(name = "uds_config_ad_agent_mapping_cleanup_interval")
protected String udsConfigAdAgentMappingCleanupInterval;
@XmlElement(name = "uds_config_ad_agent_query_wait_time")
protected String udsConfigAdAgentQueryWaitTime;
@XmlElement(name = "musd_config_endpoint_telemetry_enabled")
protected String musdConfigEndpointTelemetryEnabled;
@XmlElement(name = "prox_acl_rules_connect_enabled")
protected String proxAclRulesConnectEnabled;
@XmlElement(name = "prox_acl_rules_connect_ports")
protected String proxAclRulesConnectPorts;
@XmlElement(name = "prox_acl_rules_connector_enabled")
protected String proxAclRulesConnectorEnabled;
@XmlElement(name = "prox_acl_rules_cloud_auth_groups")
protected ProxAclRulesCloudAuthGroups proxAclRulesCloudAuthGroups;
@XmlElement(name = "prox_acl_rules_customcat_code_index")
protected String proxAclRulesCustomcatCodeIndex;
@XmlElement(name = "prox_acl_rules_disabled_categories")
protected String proxAclRulesDisabledCategories;
@XmlElement(name = "prox_acl_rules_enable_splash_page")
protected String proxAclRulesEnableSplashPage;
@XmlElement(name = "prox_acl_rules_enable_external_snmp_queries")
protected String proxAclRulesEnableExternalSnmpQueries;
@XmlElement(name = "prox_acl_rules_no_cache")
protected ProxAclRulesNoCache proxAclRulesNoCache;
@XmlElement(name = "prox_acl_rules_req_add_header")
protected ProxAclRulesReqAddHeader proxAclRulesReqAddHeader;
@XmlElement(name = "prox_acl_rules_icap_request_timeout")
protected String proxAclRulesIcapRequestTimeout;
@XmlElement(name = "prox_acl_rules_icap_load_balancing")
protected String proxAclRulesIcapLoadBalancing;
@XmlElement(name = "prox_acl_rules_icap_failure_handling")
protected String proxAclRulesIcapFailureHandling;
@XmlElement(name = "prox_acl_rules_icap_min_req_size")
protected String proxAclRulesIcapMinReqSize;
@XmlElement(name = "prox_acl_rules_ids_min_req_size")
protected String proxAclRulesIdsMinReqSize;
@XmlElement(name = "prox_acl_rules_dlp_enabled")
protected String proxAclRulesDlpEnabled;
@XmlElement(name = "prox_acl_rules_dlp_optin")
protected String proxAclRulesDlpOptin;
@XmlElement(name = "prox_acl_rules_decrypt_https_for_auth")
protected String proxAclRulesDecryptHttpsForAuth;
@XmlElement(name = "prox_acl_rules_decrypt_https_for_eun")
protected String proxAclRulesDecryptHttpsForEun;
@XmlElement(name = "prox_acl_rules_accept_clientip_via_xff_enabled")
protected String proxAclRulesAcceptClientipViaXffEnabled;
@XmlElement(name = "prox_acl_rules_xff_trusted_downstream_proxies")
protected String proxAclRulesXffTrustedDownstreamProxies;
@XmlElement(name = "prox_acl_rules_source_allow_list")
protected String proxAclRulesSourceAllowList;
@XmlElement(name = "prox_acl_rules_source_block_list")
protected String proxAclRulesSourceBlockList;
@XmlElement(name = "prox_acl_rules_time_definitions")
protected ProxAclRulesTimeDefinitions proxAclRulesTimeDefinitions;
@XmlElement(name = "prox_acl_rules_user_agent_detection")
protected String proxAclRulesUserAgentDetection;
@XmlElement(name = "prox_acl_rules_proxyconn_user_agents")
protected ProxAclRulesProxyconnUserAgents proxAclRulesProxyconnUserAgents;
@XmlElement(name = "prox_acl_rules_wbrs_allow_above")
protected String proxAclRulesWbrsAllowAbove;
@XmlElement(name = "prox_acl_rules_wbrs_block_below")
protected String proxAclRulesWbrsBlockBelow;
@XmlElement(name = "prox_acl_rules_wbrs_enabled")
protected String proxAclRulesWbrsEnabled;
@XmlElement(name = "prox_acl_rules_wbrs_optin")
protected String proxAclRulesWbrsOptin;
@XmlElement(name = "prox_acl_rules_webcat_enabled")
protected String proxAclRulesWebcatEnabled;
@XmlElement(name = "prox_acl_rules_webcat_optin")
protected String proxAclRulesWebcatOptin;
@XmlElement(name = "prox_acl_rules_firestone_enabled")
protected String proxAclRulesFirestoneEnabled;
@XmlElement(name = "prox_acl_rules_firestone_optin")
protected String proxAclRulesFirestoneOptin;
@XmlElement(name = "prox_acl_rules_firestone_ca_enabled")
protected String proxAclRulesFirestoneCaEnabled;
@XmlElement(name = "prox_acl_rules_avc_enabled")
protected String proxAclRulesAvcEnabled;
@XmlElement(name = "prox_acl_rules_avc_decryption_enabled")
protected String proxAclRulesAvcDecryptionEnabled;
@XmlElement(name = "prox_acl_rules_adaptive_scanning_enabled")
protected String proxAclRulesAdaptiveScanningEnabled;
@XmlElement(name = "prox_acl_rules_adaptive_scanning_risk_score_threshold")
protected String proxAclRulesAdaptiveScanningRiskScoreThreshold;
@XmlElement(name = "prox_acl_rules_adaptive_scanning_load_factor_threshold")
protected String proxAclRulesAdaptiveScanningLoadFactorThreshold;
@XmlElement(name = "prox_acl_rules_webex_bypass")
protected String proxAclRulesWebexBypass;
@XmlElement(name = "prox_acl_rules_aup_engine_failure_block")
protected String proxAclRulesAupEngineFailureBlock;
@XmlElement(name = "prox_acl_rules_mus_optin")
protected String proxAclRulesMusOptin;
@XmlElement(name = "prox_acl_rules_mus_enabled")
protected String proxAclRulesMusEnabled;
@XmlElement(name = "prox_acl_rules_webcat_unreachable")
protected ProxAclRulesWebcatUnreachable proxAclRulesWebcatUnreachable;
@XmlElement(name = "prox_acl_custom_categories")
protected ProxAclCustomCategories proxAclCustomCategories;
@XmlElement(name = "prox_acl_policy_groups")
protected ProxAclPolicyGroups proxAclPolicyGroups;
@XmlElement(name = "prox_acl_https_groups")
protected ProxAclHttpsGroups proxAclHttpsGroups;
@XmlElement(name = "prox_acl_identity_groups")
protected ProxAclIdentityGroups proxAclIdentityGroups;
@XmlElement(name = "prox_acl_routing_groups")
protected ProxAclRoutingGroups proxAclRoutingGroups;
@XmlElement(name = "prox_acl_icap_policy_groups")
protected ProxAclIcapPolicyGroups proxAclIcapPolicyGroups;
@XmlElement(name = "prox_acl_dlp_policy_groups")
protected ProxAclDlpPolicyGroups proxAclDlpPolicyGroups;
@XmlElement(name = "prox_acl_outbound_amw_policy_groups")
protected ProxAclOutboundAmwPolicyGroups proxAclOutboundAmwPolicyGroups;
@XmlElement(name = "prox_acl_socks_groups")
protected ProxAclSocksGroups proxAclSocksGroups;
@XmlElement(name = "prox_acl_saas_policy_groups")
protected ProxAclSaasPolicyGroups proxAclSaasPolicyGroups;
@XmlElement(name = "prox_acl_globals")
protected ProxAclGlobals proxAclGlobals;
@XmlElement(name = "prox_acl_proxy_groups")
protected ProxAclProxyGroups proxAclProxyGroups;
@XmlElement(name = "prox_acl_rules_policy_tags")
protected ProxAclRulesPolicyTags proxAclRulesPolicyTags;
@XmlElement(name = "prox_acl_rules_url_tags")
protected ProxAclRulesUrlTags proxAclRulesUrlTags;
@XmlElement(name = "prox_acl_icap_servers")
protected ProxAclIcapServers proxAclIcapServers;
@XmlElement(name = "prox_acl_bw_aggregate_rules")
protected ProxAclBwAggregateRules proxAclBwAggregateRules;
@XmlElement(name = "prox_config_advanced_proxy_options")
protected ProxConfigAdvancedProxyOptions proxConfigAdvancedProxyOptions;
@XmlElement(name = "prox_config_asw_enable")
protected String proxConfigAswEnable;
@XmlElement(name = "prox_config_authentication_mode")
protected String proxConfigAuthenticationMode;
@XmlElement(name = "prox_config_auth_realms")
protected ProxConfigAuthRealms proxConfigAuthRealms;
@XmlElement(name = "prox_config_auth_sequences")
protected ProxConfigAuthSequences proxConfigAuthSequences;
@XmlElement(name = "prox_config_auth_timeout")
protected String proxConfigAuthTimeout;
@XmlElement(name = "prox_config_authenticateReferralsEnabled")
protected String proxConfigAuthenticateReferralsEnabled;
@XmlElement(name = "prox_config_cert_directory")
protected String proxConfigCertDirectory;
@XmlElement(name = "prox_config_enable_custom_eun")
protected String proxConfigEnableCustomEun;
@XmlElement(name = "prox_config_allowDecryptionForEUA")
protected String proxConfigAllowDecryptionForEUA;
@XmlElement(name = "prox_config_enable_range_requests")
protected String proxConfigEnableRangeRequests;
@XmlElement(name = "prox_config_enable_ssl_cache")
protected String proxConfigEnableSslCache;
@XmlElement(name = "prox_config_enable_verdict_cache")
protected String proxConfigEnableVerdictCache;
@XmlElement(name = "prox_config_error_page_language")
protected String proxConfigErrorPageLanguage;
@XmlElement(name = "prox_config_error_page_logo_display_value")
protected String proxConfigErrorPageLogoDisplayValue;
@XmlElement(name = "prox_config_error_page_logo_type")
protected String proxConfigErrorPageLogoType;
@XmlElement(name = "prox_config_explicit_ims_refresh_time")
protected String proxConfigExplicitImsRefreshTime;
@XmlElement(name = "prox_config_generated_cert_name")
protected String proxConfigGeneratedCertName;
@XmlElement(name = "prox_config_generated_cert")
protected String proxConfigGeneratedCert;
@XmlElement(name = "prox_config_generated_key")
protected String proxConfigGeneratedKey;
@XmlElement(name = "prox_config_https_enabled")
protected String proxConfigHttpsEnabled;
@XmlElement(name = "prox_config_https_optin")
protected String proxConfigHttpsOptin;
@XmlElement(name = "prox_config_invalid_cert_handling")
protected ProxConfigInvalidCertHandling proxConfigInvalidCertHandling;
@XmlElement(name = "prox_config_max_client_pconn_time")
protected String proxConfigMaxClientPconnTime;
@XmlElement(name = "prox_config_max_idle_client_pconns")
protected String proxConfigMaxIdleClientPconns;
@XmlElement(name = "prox_config_merlin_enabled")
protected String proxConfigMerlinEnabled;
@XmlElement(name = "prox_config_merlin_optin")
protected String proxConfigMerlinOptin;
@XmlElement(name = "prox_config_ldap_settings")
protected ProxConfigLdapSettings proxConfigLdapSettings;
@XmlElement(name = "prox_config_ntlm_settings")
protected ProxConfigNtlmSettings proxConfigNtlmSettings;
@XmlElement(name = "prox_config_permit_on_auth_failure")
protected String proxConfigPermitOnAuthFailure;
@XmlElement(name = "prox_config_prox_configured")
protected String proxConfigProxConfigured;
@XmlElement(name = "prox_config_prox_enabled")
protected String proxConfigProxEnabled;
@XmlElement(name = "prox_config_prox_filename")
protected String proxConfigProxFilename;
@XmlElement(name = "prox_config_prox_optin")
protected String proxConfigProxOptin;
@XmlElement(name = "prox_config_proxy_cache_enabled")
protected String proxConfigProxyCacheEnabled;
@XmlElement(name = "prox_config_secure_auth_cert_name")
protected String proxConfigSecureAuthCertName;
@XmlElement(name = "prox_config_secure_auth_cert")
protected String proxConfigSecureAuthCert;
@XmlElement(name = "prox_config_secure_auth_key")
protected String proxConfigSecureAuthKey;
@XmlElement(name = "prox_config_sse_maximum_size_to_scan_mb")
protected String proxConfigSseMaximumSizeToScanMb;
@XmlElement(name = "prox_config_signing_cert_name")
protected String proxConfigSigningCertName;
@XmlElement(name = "prox_config_trustOverrideRootCertIDs")
protected ProxConfigTrustOverrideRootCertIDs proxConfigTrustOverrideRootCertIDs;
@XmlElement(name = "prox_config_uploaded_cert_name")
protected String proxConfigUploadedCertName;
@XmlElement(name = "prox_config_uploaded_cert")
protected String proxConfigUploadedCert;
@XmlElement(name = "prox_config_uploaded_key")
protected String proxConfigUploadedKey;
@XmlElement(name = "prox_config_uploadedRootCert")
protected String proxConfigUploadedRootCert;
@XmlElement(name = "prox_config_uploadedRootCertContents")
protected String proxConfigUploadedRootCertContents;
@XmlElement(name = "prox_config_upstream_proxy_address")
protected String proxConfigUpstreamProxyAddress;
@XmlElement(name = "prox_config_upstream_proxy_mode")
protected String proxConfigUpstreamProxyMode;
@XmlElement(name = "prox_config_use_groupmem_attr")
protected String proxConfigUseGroupmemAttr;
@XmlElement(name = "prox_config_enable_advanced_winbindd_watchdog")
protected String proxConfigEnableAdvancedWinbinddWatchdog;
@XmlElement(name = "prox_config_http_port_tunneling_enabled")
protected String proxConfigHttpPortTunnelingEnabled;
@XmlElement(name = "prox_config_ssl_port_block_nonssl")
protected String proxConfigSslPortBlockNonssl;
@XmlElement(name = "prox_config_mus_telemetry_url")
protected String proxConfigMusTelemetryUrl;
@XmlElement(name = "prox_config_mus_telemetry_data_url")
protected String proxConfigMusTelemetryDataUrl;
@XmlElement(name = "prox_config_mus_telemetry_max_size")
protected String proxConfigMusTelemetryMaxSize;
@XmlElement(name = "prox_config_saml20_idp_settings")
protected ProxConfigSaml20IdpSettings proxConfigSaml20IdpSettings;
@XmlElement(name = "prox_config_saml20_idp_generated_certificate_pem")
protected String proxConfigSaml20IdpGeneratedCertificatePem;
@XmlElement(name = "prox_config_saml20_idp_generated_privatekey_pem")
protected String proxConfigSaml20IdpGeneratedPrivatekeyPem;
@XmlElement(name = "prox_config_saml20_idp_uploaded_certificate_pem")
protected String proxConfigSaml20IdpUploadedCertificatePem;
@XmlElement(name = "prox_config_saml20_idp_uploaded_privatekey_pem")
protected String proxConfigSaml20IdpUploadedPrivatekeyPem;
@XmlElement(name = "prox_etc_access_log_type")
protected ProxEtcAccessLogType proxEtcAccessLogType;
@XmlElement(name = "prox_etc_add_forwarded_for")
protected String proxEtcAddForwardedFor;
@XmlElement(name = "prox_etc_allow_case_insensitive_user_match")
protected String proxEtcAllowCaseInsensitiveUserMatch;
@XmlElement(name = "prox_etc_allow_etag_mismatch")
protected String proxEtcAllowEtagMismatch;
@XmlElement(name = "prox_etc_allow_heuristic_not_modified")
protected String proxEtcAllowHeuristicNotModified;
@XmlElement(name = "prox_etc_allow_user_feedback")
protected String proxEtcAllowUserFeedback;
@XmlElement(name = "prox_etc_allow_wild_card_in_group_name")
protected String proxEtcAllowWildCardInGroupName;
@XmlElement(name = "prox_etc_amp_high_risk_priority")
protected String proxEtcAmpHighRiskPriority;
@XmlElement(name = "prox_etc_amp_low_risk_priority")
protected String proxEtcAmpLowRiskPriority;
@XmlElement(name = "prox_etc_anon_ftp_login")
protected String proxEtcAnonFtpLogin;
@XmlElement(name = "prox_etc_anon_ftp_password")
protected String proxEtcAnonFtpPassword;
@XmlElement(name = "prox_etc_association_inactivity_timeout")
protected String proxEtcAssociationInactivityTimeout;
@XmlElement(name = "prox_etc_auth_cookie_name")
protected String proxEtcAuthCookieName;
@XmlElement(name = "prox_etc_authenticate_basic_children")
protected String proxEtcAuthenticateBasicChildren;
@XmlElement(name = "prox_etc_authenticate_ntlm_basic_children")
protected String proxEtcAuthenticateNtlmBasicChildren;
@XmlElement(name = "prox_etc_authenticate_ntlm_children")
protected String proxEtcAuthenticateNtlmChildren;
@XmlElement(name = "prox_etc_authenticate_ttl")
protected String proxEtcAuthenticateTtl;
@XmlElement(name = "prox_etc_bwctrl_debug")
protected String proxEtcBwctrlDebug;
@XmlElement(name = "prox_etc_cache_auth_content")
protected String proxEtcCacheAuthContent;
@XmlElement(name = "prox_etc_cache_from_untrusted_server")
protected String proxEtcCacheFromUntrustedServer;
@XmlElement(name = "prox_etc_ccws_authorization_key")
protected String proxEtcCcwsAuthorizationKey;
@XmlElement(name = "prox_etc_ccws_key_gen_interval")
protected String proxEtcCcwsKeyGenInterval;
@XmlElement(name = "prox_etc_continue_custom_text")
protected String proxEtcContinueCustomText;
@XmlElement(name = "prox_etc_continue_timeout")
protected String proxEtcContinueTimeout;
@XmlElement(name = "prox_etc_custom_log_fields")
protected ProxEtcCustomLogFields proxEtcCustomLogFields;
@XmlElement(name = "prox_etc_default_max_age")
protected String proxEtcDefaultMaxAge;
@XmlElement(name = "prox_etc_default_max_age_neg")
protected String proxEtcDefaultMaxAgeNeg;
@XmlElement(name = "prox_etc_default_max_age_no_lmt")
protected String proxEtcDefaultMaxAgeNoLmt;
@XmlElement(name = "prox_etc_device")
protected String proxEtcDevice;
@XmlElement(name = "prox_etc_disable_peer_dns_failover")
protected String proxEtcDisablePeerDnsFailover;
@XmlElement(name = "prox_etc_dns_host_table_cache_time")
protected String proxEtcDnsHostTableCacheTime;
@XmlElement(name = "prox_etc_dns_negative_cache_time")
protected String proxEtcDnsNegativeCacheTime;
@XmlElement(name = "prox_etc_dns_pref")
protected String proxEtcDnsPref;
@XmlElement(name = "prox_etc_dynamic_recv_win_size")
protected String proxEtcDynamicRecvWinSize;
@XmlElement(name = "prox_etc_dynamic_send_win_size")
protected String proxEtcDynamicSendWinSize;
@XmlElement(name = "prox_etc_error_page_contact_info")
protected String proxEtcErrorPageContactInfo;
@XmlElement(name = "prox_etc_error_page_custom_text")
protected String proxEtcErrorPageCustomText;
@XmlElement(name = "prox_etc_error_page_user_ack_text")
protected String proxEtcErrorPageUserAckText;
@XmlElement(name = "prox_etc_error_page_email_addr")
protected String proxEtcErrorPageEmailAddr;
@XmlElement(name = "prox_etc_error_page_logo_url")
protected String proxEtcErrorPageLogoUrl;
@XmlElement(name = "prox_etc_error_page_redirection_enabled")
protected String proxEtcErrorPageRedirectionEnabled;
@XmlElement(name = "prox_etc_error_page_redirection_url")
protected String proxEtcErrorPageRedirectionUrl;
@XmlElement(name = "prox_etc_error_page_redirection_url_params")
protected String proxEtcErrorPageRedirectionUrlParams;
@XmlElement(name = "prox_etc_forwarded_for")
protected String proxEtcForwardedFor;
@XmlElement(name = "prox_etc_ftp_enabled")
protected String proxEtcFtpEnabled;
@XmlElement(name = "prox_etc_ftp_proxy_port")
protected String proxEtcFtpProxyPort;
@XmlElement(name = "prox_etc_ftp_native_passive_port")
protected String proxEtcFtpNativePassivePort;
@XmlElement(name = "prox_etc_ftp_native_active_port")
protected String proxEtcFtpNativeActivePort;
@XmlElement(name = "prox_etc_ftp_auth_format")
protected String proxEtcFtpAuthFormat;
@XmlElement(name = "prox_etc_ftp_server_ip_spoofing")
protected String proxEtcFtpServerIpSpoofing;
@XmlElement(name = "prox_etc_ftp_caching_enabled")
protected String proxEtcFtpCachingEnabled;
@XmlElement(name = "prox_etc_ftp_cache_size")
protected String proxEtcFtpCacheSize;
@XmlElement(name = "prox_etc_ftp_use_server_welcome")
protected String proxEtcFtpUseServerWelcome;
@XmlElement(name = "prox_etc_ftp_welcome_banner")
protected String proxEtcFtpWelcomeBanner;
@XmlElement(name = "prox_etc_ftp_max_client_control_conn_time")
protected String proxEtcFtpMaxClientControlConnTime;
@XmlElement(name = "prox_etc_ftp_max_server_control_conn_time")
protected String proxEtcFtpMaxServerControlConnTime;
@XmlElement(name = "prox_etc_ftp_max_client_data_conn_time")
protected String proxEtcFtpMaxClientDataConnTime;
@XmlElement(name = "prox_etc_ftp_max_server_data_conn_time")
protected String proxEtcFtpMaxServerDataConnTime;
@XmlElement(name = "prox_etc_ftp_max_path_size")
protected String proxEtcFtpMaxPathSize;
@XmlElement(name = "prox_etc_ftp_eun_language")
protected String proxEtcFtpEunLanguage;
@XmlElement(name = "prox_etc_ftp_eun_message")
protected String proxEtcFtpEunMessage;
@XmlElement(name = "prox_etc_guest_realm_name")
protected String proxEtcGuestRealmName;
@XmlElement(name = "prox_etc_guest_user_name_option")
protected String proxEtcGuestUserNameOption;
@XmlElement(name = "prox_etc_health_checks_default")
protected String proxEtcHealthChecksDefault;
@XmlElement(name = "prox_etc_hide_user_name")
protected String proxEtcHideUserName;
@XmlElement(name = "prox_etc_http_bind_addresses")
protected String proxEtcHttpBindAddresses;
@XmlElement(name = "prox_etc_https_client_cert_action")
protected String proxEtcHttpsClientCertAction;
@XmlElement(name = "prox_etc_https_session_eua_action")
protected String proxEtcHttpsSessionEuaAction;
@XmlElement(name = "prox_etc_https_uri_log_style")
protected String proxEtcHttpsUriLogStyle;
@XmlElement(name = "prox_etc_icap_max_connections")
protected String proxEtcIcapMaxConnections;
@XmlElement(name = "prox_etc_ignore_no_cache")
protected String proxEtcIgnoreNoCache;
@XmlElement(name = "prox_etc_ignore_reload_time")
protected String proxEtcIgnoreReloadTime;
@XmlElement(name = "prox_etc_basic_auth_charset")
protected String proxEtcBasicAuthCharset;
@XmlElement(name = "prox_etc_log_unauth_user")
protected String proxEtcLogUnauthUser;
@XmlElement(name = "prox_etc_malware_scan_all_content")
protected String proxEtcMalwareScanAllContent;
@XmlElement(name = "prox_etc_max_ack_ttl")
protected String proxEtcMaxAckTtl;
@XmlElement(name = "prox_etc_max_auth_cache_entries")
protected String proxEtcMaxAuthCacheEntries;
@XmlElement(name = "prox_etc_max_awaiting_client_time")
protected String proxEtcMaxAwaitingClientTime;
@XmlElement(name = "prox_etc_max_client_idle_conn_time")
protected String proxEtcMaxClientIdleConnTime;
@XmlElement(name = "prox_etc_max_failed_peer_retry_sec")
protected String proxEtcMaxFailedPeerRetrySec;
@XmlElement(name = "prox_etc_max_idle_serv_pconns")
protected String proxEtcMaxIdleServPconns;
@XmlElement(name = "prox_etc_max_ip_ack_idle")
protected String proxEtcMaxIpAckIdle;
@XmlElement(name = "prox_etc_max_ip_to_user_idle")
protected String proxEtcMaxIpToUserIdle;
@XmlElement(name = "prox_etc_max_server_retries")
protected String proxEtcMaxServerRetries;
@XmlElement(name = "prox_etc_max_serv_pconn_time")
protected String proxEtcMaxServPconnTime;
@XmlElement(name = "prox_etc_max_transparent_auth_ttl")
protected String proxEtcMaxTransparentAuthTtl;
@XmlElement(name = "prox_etc_max_machine_cred_auth_ttl")
protected String proxEtcMaxMachineCredAuthTtl;
@XmlElement(name = "prox_etc_max_broken_auth_ttl")
protected String proxEtcMaxBrokenAuthTtl;
@XmlElement(name = "prox_etc_mcafee_request_pool_size")
protected String proxEtcMcafeeRequestPoolSize;
@XmlElement(name = "prox_etc_sophos_request_pool_size")
protected String proxEtcSophosRequestPoolSize;
@XmlElement(name = "prox_etc_min_activity_secs")
protected String proxEtcMinActivitySecs;
@XmlElement(name = "prox_etc_min_failed_peer_retry_sec")
protected String proxEtcMinFailedPeerRetrySec;
@XmlElement(name = "prox_etc_pass_forwarded_for")
protected String proxEtcPassForwardedFor;
@XmlElement(name = "prox_etc_pass_proxy_auth")
protected String proxEtcPassProxyAuth;
@XmlElement(name = "prox_etc_prevent_multiple_login")
protected String proxEtcPreventMultipleLogin;
@XmlElement(name = "prox_etc_print_stale_fd")
protected String proxEtcPrintStaleFd;
@XmlElement(name = "prox_etc_proxy_authorization_realm")
protected String proxEtcProxyAuthorizationRealm;
@XmlElement(name = "prox_etc_proxymode")
protected String proxEtcProxymode;
@XmlElement(name = "prox_etc_proxyspoofing")
protected String proxEtcProxyspoofing;
@XmlElement(name = "prox_etc_port")
protected String proxEtcPort;
@XmlElement(name = "prox_etc_re_auth_on_request_denied")
protected String proxEtcReAuthOnRequestDenied;
@XmlElement(name = "prox_etc_reload_to_max_age")
protected String proxEtcReloadToMaxAge;
@XmlElement(name = "prox_etc_replace_ip_with_forwarded_for")
protected String proxEtcReplaceIpWithForwardedFor;
@XmlElement(name = "prox_etc_retry_dns_abbrev")
protected String proxEtcRetryDnsAbbrev;
@XmlElement(name = "prox_etc_auth_redirect_port")
protected String proxEtcAuthRedirectPort;
@XmlElement(name = "prox_etc_send_negotiate_header")
protected String proxEtcSendNegotiateHeader;
@XmlElement(name = "prox_etc_send_size")
protected String proxEtcSendSize;
@XmlElement(name = "prox_etc_server_name_expansion")
protected String proxEtcServerNameExpansion;
@XmlElement(name = "prox_etc_snmp_port")
protected String proxEtcSnmpPort;
@XmlElement(name = "prox_etc_socks_proxy_enabled")
protected String proxEtcSocksProxyEnabled;
@XmlElement(name = "prox_etc_socks_proxy_negotiation_timeout")
protected String proxEtcSocksProxyNegotiationTimeout;
@XmlElement(name = "prox_etc_socks_proxy_udp_tunnel_timeout")
protected String proxEtcSocksProxyUdpTunnelTimeout;
@XmlElement(name = "prox_etc_socks_proxy_ports")
protected String proxEtcSocksProxyPorts;
@XmlElement(name = "prox_etc_socks_proxy_udp_request_ports")
protected String proxEtcSocksProxyUdpRequestPorts;
@XmlElement(name = "prox_etc_sse_query_timeout")
protected String proxEtcSseQueryTimeout;
@XmlElement(name = "prox_etc_ssl_port")
protected String proxEtcSslPort;
@XmlElement(name = "prox_etc_enable_sni")
protected String proxEtcEnableSni;
@XmlElement(name = "prox_etc_enable_sess_reuse")
protected String proxEtcEnableSessReuse;
@XmlElement(name = "prox_etc_ssl_parse_timeout")
protected String proxEtcSslParseTimeout;
@XmlElement(name = "prox_etc_certificate_cache_size")
protected String proxEtcCertificateCacheSize;
@XmlElement(name = "prox_etc_ssl_session_expiry")
protected String proxEtcSslSessionExpiry;
@XmlElement(name = "prox_etc_max_ssl_srv_sessions")
protected String proxEtcMaxSslSrvSessions;
@XmlElement(name = "prox_etc_max_ssl_clnt_sessions")
protected String proxEtcMaxSslClntSessions;
@XmlElement(name = "prox_etc_suppress_request_via")
protected String proxEtcSuppressRequestVia;
@XmlElement(name = "prox_etc_suppress_response_via")
protected String proxEtcSuppressResponseVia;
@XmlElement(name = "prox_etc_tcp_buf_cli_rcv_bin")
protected String proxEtcTcpBufCliRcvBin;
@XmlElement(name = "prox_etc_tcp_buf_cli_snd_bin")
protected String proxEtcTcpBufCliSndBin;
@XmlElement(name = "prox_etc_tcp_buf_rcv_bps_fact")
protected String proxEtcTcpBufRcvBpsFact;
@XmlElement(name = "prox_etc_tcp_buf_snd_bps_fact")
protected String proxEtcTcpBufSndBpsFact;
@XmlElement(name = "prox_etc_tcp_buf_srv_rcv_bin")
protected String proxEtcTcpBufSrvRcvBin;
@XmlElement(name = "prox_etc_tcp_buf_srv_snd_bin")
protected String proxEtcTcpBufSrvSndBin;
@XmlElement(name = "prox_etc_throttle_cache_content")
protected String proxEtcThrottleCacheContent;
@XmlElement(name = "prox_etc_track_file_name")
protected ProxEtcTrackFileName proxEtcTrackFileName;
@XmlElement(name = "prox_etc_track_time")
protected String proxEtcTrackTime;
@XmlElement(name = "prox_etc_transparent_auth_server")
protected String proxEtcTransparentAuthServer;
@XmlElement(name = "prox_etc_tunnel_port")
protected String proxEtcTunnelPort;
@XmlElement(name = "prox_etc_use_ftp_active_mode")
protected ProxEtcUseFtpActiveMode proxEtcUseFtpActiveMode;
@XmlElement(name = "prox_etc_use_ftp_active_port")
protected ProxEtcUseFtpActivePort proxEtcUseFtpActivePort;
@XmlElement(name = "prox_etc_use_ftp_passive_port")
protected ProxEtcUseFtpPassivePort proxEtcUseFtpPassivePort;
@XmlElement(name = "prox_etc_use_l2_forward_and_redir")
protected ProxEtcUseL2ForwardAndRedir proxEtcUseL2ForwardAndRedir;
@XmlElement(name = "prox_etc_use_original_dest")
protected String proxEtcUseOriginalDest;
@XmlElement(name = "prox_etc_use_secure_client_auth")
protected String proxEtcUseSecureClientAuth;
@XmlElement(name = "prox_etc_user_ack_tracking_method")
protected String proxEtcUserAckTrackingMethod;
@XmlElement(name = "prox_etc_mus_asa_settings")
protected ProxEtcMusAsaSettings proxEtcMusAsaSettings;
@XmlElement(name = "prox_etc_mus_ip_range")
protected ProxEtcMusIpRange proxEtcMusIpRange;
@XmlElement(name = "prox_etc_webroot_body_scan_disabled")
protected String proxEtcWebrootBodyScanDisabled;
@XmlElement(name = "system_network_use_management_for_proxy")
protected String systemNetworkUseManagementForProxy;
@XmlElement(name = "system_network_path_mtu_discovery")
protected String systemNetworkPathMtuDiscovery;
@XmlElement(name = "system_packet_trace")
protected SystemPacketTrace systemPacketTrace;
@XmlElement(name = "trafmon_blacklist")
protected TrafmonBlacklist trafmonBlacklist;
@XmlElement(name = "trafmon_config_dns_snoop_enabled")
protected String trafmonConfigDnsSnoopEnabled;
@XmlElement(name = "trafmon_config_tm_additional_ports")
protected String trafmonConfigTmAdditionalPorts;
@XmlElement(name = "trafmon_config_tm_blacklist_enabled")
protected String trafmonConfigTmBlacklistEnabled;
@XmlElement(name = "trafmon_config_tm_configured")
protected String trafmonConfigTmConfigured;
@XmlElement(name = "trafmon_config_tm_enabled")
protected String trafmonConfigTmEnabled;
@XmlElement(name = "trafmon_config_tm_exemptlist_enabled")
protected String trafmonConfigTmExemptlistEnabled;
@XmlElement(name = "trafmon_config_tm_mode")
protected String trafmonConfigTmMode;
@XmlElement(name = "trafmon_config_tm_optin")
protected String trafmonConfigTmOptin;
@XmlElement(name = "trafmon_config_tm_response")
protected String trafmonConfigTmResponse;
@XmlElement(name = "trafmon_config_tm_blacklist_changes")
protected String trafmonConfigTmBlacklistChanges;
@XmlElement(name = "trafmon_config_tm_force_greylist_black")
protected String trafmonConfigTmForceGreylistBlack;
@XmlElement(name = "trafmon_config_tm_skip_proxy_ports")
protected String trafmonConfigTmSkipProxyPorts;
@XmlElement(name = "trafmon_whitelist_tm_whitelist_ports")
protected String trafmonWhitelistTmWhitelistPorts;
@XmlElement(name = "trafmon_grown_blacklist_tm_admin_blacklist_ports")
protected String trafmonGrownBlacklistTmAdminBlacklistPorts;
@XmlElement(name = "trafmon_whitelist")
protected TrafmonWhitelist trafmonWhitelist;
@XmlElement(name = "trafmon_bypasslist")
protected TrafmonBypasslist trafmonBypasslist;
@XmlElement(name = "updater_downloads_retry_interval")
protected String updaterDownloadsRetryInterval;
@XmlElement(name = "updater_downloads_server")
protected String updaterDownloadsServer;
@XmlElement(name = "updater_manifest_alert_threshold")
protected String updaterManifestAlertThreshold;
@XmlElement(name = "updater_manifest_dynamic_host")
protected String updaterManifestDynamicHost;
@XmlElement(name = "updater_manifest_dynamic_port")
protected String updaterManifestDynamicPort;
@XmlElement(name = "updater_manifest_fetch_interval")
protected String updaterManifestFetchInterval;
@XmlElement(name = "updater_manifest_fetch_type")
protected String updaterManifestFetchType;
@XmlElement(name = "updater_manifest_static_url")
protected String updaterManifestStaticUrl;
@XmlElement(name = "updater_network_interface")
protected String updaterNetworkInterface;
@XmlElement(name = "updater_network_http_proxy")
protected String updaterNetworkHttpProxy;
@XmlElement(name = "updater_network_https_proxy")
protected String updaterNetworkHttpsProxy;
@XmlElement(name = "updater_network_routing_table")
protected String updaterNetworkRoutingTable;
@XmlElement(name = "wbrs_command_manager_wbnp_detail_level")
protected String wbrsCommandManagerWbnpDetailLevel;
@XmlElement(name = "wbrs_command_manager_wbnp_optin")
protected String wbrsCommandManagerWbnpOptin;
@XmlElement(name = "wbrs_command_manager_categories_version")
protected String wbrsCommandManagerCategoriesVersion;
@XmlElement(name = "wbrs_command_manager_wbrs_update_interval")
protected String wbrsCommandManagerWbrsUpdateInterval;
@XmlElement(name = "wccp_config_service_settings")
protected WccpConfigServiceSettings wccpConfigServiceSettings;
@XmlElement(name = "wccp_debug_level")
protected String wccpDebugLevel;
@XmlElement(name = "syslog_retry_timeout")
protected String syslogRetryTimeout;
@XmlElement(name = "syslog_buffer_throttle")
protected String syslogBufferThrottle;
@XmlElement(name = "syslog_max_message_size")
protected String syslogMaxMessageSize;
/**
* Gets the value of the coeusWbnpExcludedDomains property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCoeusWbnpExcludedDomains() {
return coeusWbnpExcludedDomains;
}
/**
* Sets the value of the coeusWbnpExcludedDomains property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCoeusWbnpExcludedDomains(String value) {
this.coeusWbnpExcludedDomains = value;
}
/**
* Gets the value of the coeusWbnpExtraSampling property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCoeusWbnpExtraSampling() {
return coeusWbnpExtraSampling;
}
/**
* Sets the value of the coeusWbnpExtraSampling property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCoeusWbnpExtraSampling(String value) {
this.coeusWbnpExtraSampling = value;
}
/**
* Gets the value of the coeusWbnpFeedbackSampling property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCoeusWbnpFeedbackSampling() {
return coeusWbnpFeedbackSampling;
}
/**
* Sets the value of the coeusWbnpFeedbackSampling property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCoeusWbnpFeedbackSampling(String value) {
this.coeusWbnpFeedbackSampling = value;
}
/**
* Gets the value of the coeusWbnpMaxStatsSize property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCoeusWbnpMaxStatsSize() {
return coeusWbnpMaxStatsSize;
}
/**
* Sets the value of the coeusWbnpMaxStatsSize property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCoeusWbnpMaxStatsSize(String value) {
this.coeusWbnpMaxStatsSize = value;
}
/**
* Gets the value of the coeusWbnpStatsServerHost property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCoeusWbnpStatsServerHost() {
return coeusWbnpStatsServerHost;
}
/**
* Sets the value of the coeusWbnpStatsServerHost property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCoeusWbnpStatsServerHost(String value) {
this.coeusWbnpStatsServerHost = value;
}
/**
* Gets the value of the coeusWbnpStatsServerPort property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCoeusWbnpStatsServerPort() {
return coeusWbnpStatsServerPort;
}
/**
* Sets the value of the coeusWbnpStatsServerPort property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCoeusWbnpStatsServerPort(String value) {
this.coeusWbnpStatsServerPort = value;
}
/**
* Gets the value of the coeusWbnpUploadInterval property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCoeusWbnpUploadInterval() {
return coeusWbnpUploadInterval;
}
/**
* Sets the value of the coeusWbnpUploadInterval property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCoeusWbnpUploadInterval(String value) {
this.coeusWbnpUploadInterval = value;
}
/**
* Gets the value of the coeusWbnpUploadLevel property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCoeusWbnpUploadLevel() {
return coeusWbnpUploadLevel;
}
/**
* Sets the value of the coeusWbnpUploadLevel property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCoeusWbnpUploadLevel(String value) {
this.coeusWbnpUploadLevel = value;
}
/**
* Gets the value of the coeusWbnpUserSampling property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCoeusWbnpUserSampling() {
return coeusWbnpUserSampling;
}
/**
* Sets the value of the coeusWbnpUserSampling property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCoeusWbnpUserSampling(String value) {
this.coeusWbnpUserSampling = value;
}
/**
* Gets the value of the coeusWbnpVerboseLogging property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCoeusWbnpVerboseLogging() {
return coeusWbnpVerboseLogging;
}
/**
* Sets the value of the coeusWbnpVerboseLogging property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCoeusWbnpVerboseLogging(String value) {
this.coeusWbnpVerboseLogging = value;
}
/**
* Gets the value of the coeuslogReportingAverageHttpObjectSize property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCoeuslogReportingAverageHttpObjectSize() {
return coeuslogReportingAverageHttpObjectSize;
}
/**
* Sets the value of the coeuslogReportingAverageHttpObjectSize property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCoeuslogReportingAverageHttpObjectSize(String value) {
this.coeuslogReportingAverageHttpObjectSize = value;
}
/**
* Gets the value of the merlinConfigDomainBlockingMatch property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getMerlinConfigDomainBlockingMatch() {
return merlinConfigDomainBlockingMatch;
}
/**
* Sets the value of the merlinConfigDomainBlockingMatch property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setMerlinConfigDomainBlockingMatch(String value) {
this.merlinConfigDomainBlockingMatch = value;
}
/**
* Gets the value of the merlinConfigEnableDomainLevelBlocking property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getMerlinConfigEnableDomainLevelBlocking() {
return merlinConfigEnableDomainLevelBlocking;
}
/**
* Sets the value of the merlinConfigEnableDomainLevelBlocking property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setMerlinConfigEnableDomainLevelBlocking(String value) {
this.merlinConfigEnableDomainLevelBlocking = value;
}
/**
* Gets the value of the merlinConfigThreatRiskThreshold property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getMerlinConfigThreatRiskThreshold() {
return merlinConfigThreatRiskThreshold;
}
/**
* Sets the value of the merlinConfigThreatRiskThreshold property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setMerlinConfigThreatRiskThreshold(String value) {
this.merlinConfigThreatRiskThreshold = value;
}
/**
* Gets the value of the ocspdOcspdOcspEnabled property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getOcspdOcspdOcspEnabled() {
return ocspdOcspdOcspEnabled;
}
/**
* Sets the value of the ocspdOcspdOcspEnabled property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setOcspdOcspdOcspEnabled(String value) {
this.ocspdOcspdOcspEnabled = value;
}
/**
* Gets the value of the ocspdOcspdUpstreamProxyConfig property.
*
* @return
* possible object is
* {@link OcspdOcspdUpstreamProxyConfig }
*
*/
public OcspdOcspdUpstreamProxyConfig getOcspdOcspdUpstreamProxyConfig() {
return ocspdOcspdUpstreamProxyConfig;
}
/**
* Sets the value of the ocspdOcspdUpstreamProxyConfig property.
*
* @param value
* allowed object is
* {@link OcspdOcspdUpstreamProxyConfig }
*
*/
public void setOcspdOcspdUpstreamProxyConfig(OcspdOcspdUpstreamProxyConfig value) {
this.ocspdOcspdUpstreamProxyConfig = value;
}
/**
* Gets the value of the ocspdOcspdClockSkew property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getOcspdOcspdClockSkew() {
return ocspdOcspdClockSkew;
}
/**
* Sets the value of the ocspdOcspdClockSkew property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setOcspdOcspdClockSkew(String value) {
this.ocspdOcspdClockSkew = value;
}
/**
* Gets the value of the ocspdOcspdNetworkErrorTimeout property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getOcspdOcspdNetworkErrorTimeout() {
return ocspdOcspdNetworkErrorTimeout;
}
/**
* Sets the value of the ocspdOcspdNetworkErrorTimeout property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setOcspdOcspdNetworkErrorTimeout(String value) {
this.ocspdOcspdNetworkErrorTimeout = value;
}
/**
* Gets the value of the ocspdOcspdValidResponseCacheTTL property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getOcspdOcspdValidResponseCacheTTL() {
return ocspdOcspdValidResponseCacheTTL;
}
/**
* Sets the value of the ocspdOcspdValidResponseCacheTTL property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setOcspdOcspdValidResponseCacheTTL(String value) {
this.ocspdOcspdValidResponseCacheTTL = value;
}
/**
* Gets the value of the ocspdOcspdInvalidResponseCacheTTL property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getOcspdOcspdInvalidResponseCacheTTL() {
return ocspdOcspdInvalidResponseCacheTTL;
}
/**
* Sets the value of the ocspdOcspdInvalidResponseCacheTTL property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setOcspdOcspdInvalidResponseCacheTTL(String value) {
this.ocspdOcspdInvalidResponseCacheTTL = value;
}
/**
* Gets the value of the ocspdOcspdNetworkErrorCacheTTL property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getOcspdOcspdNetworkErrorCacheTTL() {
return ocspdOcspdNetworkErrorCacheTTL;
}
/**
* Sets the value of the ocspdOcspdNetworkErrorCacheTTL property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setOcspdOcspdNetworkErrorCacheTTL(String value) {
this.ocspdOcspdNetworkErrorCacheTTL = value;
}
/**
* Gets the value of the ocspdOcspdStatsInterval property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getOcspdOcspdStatsInterval() {
return ocspdOcspdStatsInterval;
}
/**
* Sets the value of the ocspdOcspdStatsInterval property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setOcspdOcspdStatsInterval(String value) {
this.ocspdOcspdStatsInterval = value;
}
/**
* Gets the value of the ocspdOcspdUseNonce property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getOcspdOcspdUseNonce() {
return ocspdOcspdUseNonce;
}
/**
* Sets the value of the ocspdOcspdUseNonce property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setOcspdOcspdUseNonce(String value) {
this.ocspdOcspdUseNonce = value;
}
/**
* Gets the value of the pacdConfigPacdEnabled property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getPacdConfigPacdEnabled() {
return pacdConfigPacdEnabled;
}
/**
* Sets the value of the pacdConfigPacdEnabled property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setPacdConfigPacdEnabled(String value) {
this.pacdConfigPacdEnabled = value;
}
/**
* Gets the value of the pacdConfigPort property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getPacdConfigPort() {
return pacdConfigPort;
}
/**
* Sets the value of the pacdConfigPort property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setPacdConfigPort(String value) {
this.pacdConfigPort = value;
}
/**
* Gets the value of the pacdConfigPacFiles property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getPacdConfigPacFiles() {
return pacdConfigPacFiles;
}
/**
* Sets the value of the pacdConfigPacFiles property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setPacdConfigPacFiles(String value) {
this.pacdConfigPacFiles = value;
}
/**
* Gets the value of the pacdConfigPacExpire property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getPacdConfigPacExpire() {
return pacdConfigPacExpire;
}
/**
* Sets the value of the pacdConfigPacExpire property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setPacdConfigPacExpire(String value) {
this.pacdConfigPacExpire = value;
}
/**
* Gets the value of the pacdConfigPacExpirationInterval property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getPacdConfigPacExpirationInterval() {
return pacdConfigPacExpirationInterval;
}
/**
* Sets the value of the pacdConfigPacExpirationInterval property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setPacdConfigPacExpirationInterval(String value) {
this.pacdConfigPacExpirationInterval = value;
}
/**
* Gets the value of the pacdConfigPacInterface property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getPacdConfigPacInterface() {
return pacdConfigPacInterface;
}
/**
* Sets the value of the pacdConfigPacInterface property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setPacdConfigPacInterface(String value) {
this.pacdConfigPacInterface = value;
}
/**
* Gets the value of the pacdConfigDomain property.
*
* @return
* possible object is
* {@link PacdConfigDomain }
*
*/
public PacdConfigDomain getPacdConfigDomain() {
return pacdConfigDomain;
}
/**
* Sets the value of the pacdConfigDomain property.
*
* @param value
* allowed object is
* {@link PacdConfigDomain }
*
*/
public void setPacdConfigDomain(PacdConfigDomain value) {
this.pacdConfigDomain = value;
}
/**
* Gets the value of the pacFileTimestamps property.
*
* @return
* possible object is
* {@link PacFileTimestamps }
*
*/
public PacFileTimestamps getPacFileTimestamps() {
return pacFileTimestamps;
}
/**
* Sets the value of the pacFileTimestamps property.
*
* @param value
* allowed object is
* {@link PacFileTimestamps }
*
*/
public void setPacFileTimestamps(PacFileTimestamps value) {
this.pacFileTimestamps = value;
}
/**
* Gets the value of the udsConfigUserDiscoveryEdirMappingTimeout property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getUdsConfigUserDiscoveryEdirMappingTimeout() {
return udsConfigUserDiscoveryEdirMappingTimeout;
}
/**
* Sets the value of the udsConfigUserDiscoveryEdirMappingTimeout property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setUdsConfigUserDiscoveryEdirMappingTimeout(String value) {
this.udsConfigUserDiscoveryEdirMappingTimeout = value;
}
/**
* Gets the value of the udsConfigEdirectoryMaxQueryTime property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getUdsConfigEdirectoryMaxQueryTime() {
return udsConfigEdirectoryMaxQueryTime;
}
/**
* Sets the value of the udsConfigEdirectoryMaxQueryTime property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setUdsConfigEdirectoryMaxQueryTime(String value) {
this.udsConfigEdirectoryMaxQueryTime = value;
}
/**
* Gets the value of the udsConfigAdAgentAuthPort property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getUdsConfigAdAgentAuthPort() {
return udsConfigAdAgentAuthPort;
}
/**
* Sets the value of the udsConfigAdAgentAuthPort property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setUdsConfigAdAgentAuthPort(String value) {
this.udsConfigAdAgentAuthPort = value;
}
/**
* Gets the value of the udsConfigAdAgentAcctPort property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getUdsConfigAdAgentAcctPort() {
return udsConfigAdAgentAcctPort;
}
/**
* Sets the value of the udsConfigAdAgentAcctPort property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setUdsConfigAdAgentAcctPort(String value) {
this.udsConfigAdAgentAcctPort = value;
}
/**
* Gets the value of the udsConfigAdAgentCoaPort property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getUdsConfigAdAgentCoaPort() {
return udsConfigAdAgentCoaPort;
}
/**
* Sets the value of the udsConfigAdAgentCoaPort property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setUdsConfigAdAgentCoaPort(String value) {
this.udsConfigAdAgentCoaPort = value;
}
/**
* Gets the value of the udsConfigAdAgentMaxQueryTime property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getUdsConfigAdAgentMaxQueryTime() {
return udsConfigAdAgentMaxQueryTime;
}
/**
* Sets the value of the udsConfigAdAgentMaxQueryTime property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setUdsConfigAdAgentMaxQueryTime(String value) {
this.udsConfigAdAgentMaxQueryTime = value;
}
/**
* Gets the value of the udsConfigAdAgentMaxPingTime property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getUdsConfigAdAgentMaxPingTime() {
return udsConfigAdAgentMaxPingTime;
}
/**
* Sets the value of the udsConfigAdAgentMaxPingTime property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setUdsConfigAdAgentMaxPingTime(String value) {
this.udsConfigAdAgentMaxPingTime = value;
}
/**
* Gets the value of the udsConfigAdAgentMaxAttempts property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getUdsConfigAdAgentMaxAttempts() {
return udsConfigAdAgentMaxAttempts;
}
/**
* Sets the value of the udsConfigAdAgentMaxAttempts property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setUdsConfigAdAgentMaxAttempts(String value) {
this.udsConfigAdAgentMaxAttempts = value;
}
/**
* Gets the value of the udsConfigAdAgentKeepAliveSleep property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getUdsConfigAdAgentKeepAliveSleep() {
return udsConfigAdAgentKeepAliveSleep;
}
/**
* Sets the value of the udsConfigAdAgentKeepAliveSleep property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setUdsConfigAdAgentKeepAliveSleep(String value) {
this.udsConfigAdAgentKeepAliveSleep = value;
}
/**
* Gets the value of the udsConfigAdAgentMappingExpiry property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getUdsConfigAdAgentMappingExpiry() {
return udsConfigAdAgentMappingExpiry;
}
/**
* Sets the value of the udsConfigAdAgentMappingExpiry property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setUdsConfigAdAgentMappingExpiry(String value) {
this.udsConfigAdAgentMappingExpiry = value;
}
/**
* Gets the value of the udsConfigAdAgentMappingCleanupInterval property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getUdsConfigAdAgentMappingCleanupInterval() {
return udsConfigAdAgentMappingCleanupInterval;
}
/**
* Sets the value of the udsConfigAdAgentMappingCleanupInterval property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setUdsConfigAdAgentMappingCleanupInterval(String value) {
this.udsConfigAdAgentMappingCleanupInterval = value;
}
/**
* Gets the value of the udsConfigAdAgentQueryWaitTime property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getUdsConfigAdAgentQueryWaitTime() {
return udsConfigAdAgentQueryWaitTime;
}
/**
* Sets the value of the udsConfigAdAgentQueryWaitTime property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setUdsConfigAdAgentQueryWaitTime(String value) {
this.udsConfigAdAgentQueryWaitTime = value;
}
/**
* Gets the value of the musdConfigEndpointTelemetryEnabled property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getMusdConfigEndpointTelemetryEnabled() {
return musdConfigEndpointTelemetryEnabled;
}
/**
* Sets the value of the musdConfigEndpointTelemetryEnabled property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setMusdConfigEndpointTelemetryEnabled(String value) {
this.musdConfigEndpointTelemetryEnabled = value;
}
/**
* Gets the value of the proxAclRulesConnectEnabled property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxAclRulesConnectEnabled() {
return proxAclRulesConnectEnabled;
}
/**
* Sets the value of the proxAclRulesConnectEnabled property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxAclRulesConnectEnabled(String value) {
this.proxAclRulesConnectEnabled = value;
}
/**
* Gets the value of the proxAclRulesConnectPorts property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxAclRulesConnectPorts() {
return proxAclRulesConnectPorts;
}
/**
* Sets the value of the proxAclRulesConnectPorts property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxAclRulesConnectPorts(String value) {
this.proxAclRulesConnectPorts = value;
}
/**
* Gets the value of the proxAclRulesConnectorEnabled property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxAclRulesConnectorEnabled() {
return proxAclRulesConnectorEnabled;
}
/**
* Sets the value of the proxAclRulesConnectorEnabled property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxAclRulesConnectorEnabled(String value) {
this.proxAclRulesConnectorEnabled = value;
}
/**
* Gets the value of the proxAclRulesCloudAuthGroups property.
*
* @return
* possible object is
* {@link ProxAclRulesCloudAuthGroups }
*
*/
public ProxAclRulesCloudAuthGroups getProxAclRulesCloudAuthGroups() {
return proxAclRulesCloudAuthGroups;
}
/**
* Sets the value of the proxAclRulesCloudAuthGroups property.
*
* @param value
* allowed object is
* {@link ProxAclRulesCloudAuthGroups }
*
*/
public void setProxAclRulesCloudAuthGroups(ProxAclRulesCloudAuthGroups value) {
this.proxAclRulesCloudAuthGroups = value;
}
/**
* Gets the value of the proxAclRulesCustomcatCodeIndex property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxAclRulesCustomcatCodeIndex() {
return proxAclRulesCustomcatCodeIndex;
}
/**
* Sets the value of the proxAclRulesCustomcatCodeIndex property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxAclRulesCustomcatCodeIndex(String value) {
this.proxAclRulesCustomcatCodeIndex = value;
}
/**
* Gets the value of the proxAclRulesDisabledCategories property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxAclRulesDisabledCategories() {
return proxAclRulesDisabledCategories;
}
/**
* Sets the value of the proxAclRulesDisabledCategories property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxAclRulesDisabledCategories(String value) {
this.proxAclRulesDisabledCategories = value;
}
/**
* Gets the value of the proxAclRulesEnableSplashPage property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxAclRulesEnableSplashPage() {
return proxAclRulesEnableSplashPage;
}
/**
* Sets the value of the proxAclRulesEnableSplashPage property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxAclRulesEnableSplashPage(String value) {
this.proxAclRulesEnableSplashPage = value;
}
/**
* Gets the value of the proxAclRulesEnableExternalSnmpQueries property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxAclRulesEnableExternalSnmpQueries() {
return proxAclRulesEnableExternalSnmpQueries;
}
/**
* Sets the value of the proxAclRulesEnableExternalSnmpQueries property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxAclRulesEnableExternalSnmpQueries(String value) {
this.proxAclRulesEnableExternalSnmpQueries = value;
}
/**
* Gets the value of the proxAclRulesNoCache property.
*
* @return
* possible object is
* {@link ProxAclRulesNoCache }
*
*/
public ProxAclRulesNoCache getProxAclRulesNoCache() {
return proxAclRulesNoCache;
}
/**
* Sets the value of the proxAclRulesNoCache property.
*
* @param value
* allowed object is
* {@link ProxAclRulesNoCache }
*
*/
public void setProxAclRulesNoCache(ProxAclRulesNoCache value) {
this.proxAclRulesNoCache = value;
}
/**
* Gets the value of the proxAclRulesReqAddHeader property.
*
* @return
* possible object is
* {@link ProxAclRulesReqAddHeader }
*
*/
public ProxAclRulesReqAddHeader getProxAclRulesReqAddHeader() {
return proxAclRulesReqAddHeader;
}
/**
* Sets the value of the proxAclRulesReqAddHeader property.
*
* @param value
* allowed object is
* {@link ProxAclRulesReqAddHeader }
*
*/
public void setProxAclRulesReqAddHeader(ProxAclRulesReqAddHeader value) {
this.proxAclRulesReqAddHeader = value;
}
/**
* Gets the value of the proxAclRulesIcapRequestTimeout property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxAclRulesIcapRequestTimeout() {
return proxAclRulesIcapRequestTimeout;
}
/**
* Sets the value of the proxAclRulesIcapRequestTimeout property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxAclRulesIcapRequestTimeout(String value) {
this.proxAclRulesIcapRequestTimeout = value;
}
/**
* Gets the value of the proxAclRulesIcapLoadBalancing property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxAclRulesIcapLoadBalancing() {
return proxAclRulesIcapLoadBalancing;
}
/**
* Sets the value of the proxAclRulesIcapLoadBalancing property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxAclRulesIcapLoadBalancing(String value) {
this.proxAclRulesIcapLoadBalancing = value;
}
/**
* Gets the value of the proxAclRulesIcapFailureHandling property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxAclRulesIcapFailureHandling() {
return proxAclRulesIcapFailureHandling;
}
/**
* Sets the value of the proxAclRulesIcapFailureHandling property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxAclRulesIcapFailureHandling(String value) {
this.proxAclRulesIcapFailureHandling = value;
}
/**
* Gets the value of the proxAclRulesIcapMinReqSize property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxAclRulesIcapMinReqSize() {
return proxAclRulesIcapMinReqSize;
}
/**
* Sets the value of the proxAclRulesIcapMinReqSize property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxAclRulesIcapMinReqSize(String value) {
this.proxAclRulesIcapMinReqSize = value;
}
/**
* Gets the value of the proxAclRulesIdsMinReqSize property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxAclRulesIdsMinReqSize() {
return proxAclRulesIdsMinReqSize;
}
/**
* Sets the value of the proxAclRulesIdsMinReqSize property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxAclRulesIdsMinReqSize(String value) {
this.proxAclRulesIdsMinReqSize = value;
}
/**
* Gets the value of the proxAclRulesDlpEnabled property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxAclRulesDlpEnabled() {
return proxAclRulesDlpEnabled;
}
/**
* Sets the value of the proxAclRulesDlpEnabled property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxAclRulesDlpEnabled(String value) {
this.proxAclRulesDlpEnabled = value;
}
/**
* Gets the value of the proxAclRulesDlpOptin property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxAclRulesDlpOptin() {
return proxAclRulesDlpOptin;
}
/**
* Sets the value of the proxAclRulesDlpOptin property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxAclRulesDlpOptin(String value) {
this.proxAclRulesDlpOptin = value;
}
/**
* Gets the value of the proxAclRulesDecryptHttpsForAuth property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxAclRulesDecryptHttpsForAuth() {
return proxAclRulesDecryptHttpsForAuth;
}
/**
* Sets the value of the proxAclRulesDecryptHttpsForAuth property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxAclRulesDecryptHttpsForAuth(String value) {
this.proxAclRulesDecryptHttpsForAuth = value;
}
/**
* Gets the value of the proxAclRulesDecryptHttpsForEun property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxAclRulesDecryptHttpsForEun() {
return proxAclRulesDecryptHttpsForEun;
}
/**
* Sets the value of the proxAclRulesDecryptHttpsForEun property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxAclRulesDecryptHttpsForEun(String value) {
this.proxAclRulesDecryptHttpsForEun = value;
}
/**
* Gets the value of the proxAclRulesAcceptClientipViaXffEnabled property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxAclRulesAcceptClientipViaXffEnabled() {
return proxAclRulesAcceptClientipViaXffEnabled;
}
/**
* Sets the value of the proxAclRulesAcceptClientipViaXffEnabled property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxAclRulesAcceptClientipViaXffEnabled(String value) {
this.proxAclRulesAcceptClientipViaXffEnabled = value;
}
/**
* Gets the value of the proxAclRulesXffTrustedDownstreamProxies property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxAclRulesXffTrustedDownstreamProxies() {
return proxAclRulesXffTrustedDownstreamProxies;
}
/**
* Sets the value of the proxAclRulesXffTrustedDownstreamProxies property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxAclRulesXffTrustedDownstreamProxies(String value) {
this.proxAclRulesXffTrustedDownstreamProxies = value;
}
/**
* Gets the value of the proxAclRulesSourceAllowList property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxAclRulesSourceAllowList() {
return proxAclRulesSourceAllowList;
}
/**
* Sets the value of the proxAclRulesSourceAllowList property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxAclRulesSourceAllowList(String value) {
this.proxAclRulesSourceAllowList = value;
}
/**
* Gets the value of the proxAclRulesSourceBlockList property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxAclRulesSourceBlockList() {
return proxAclRulesSourceBlockList;
}
/**
* Sets the value of the proxAclRulesSourceBlockList property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxAclRulesSourceBlockList(String value) {
this.proxAclRulesSourceBlockList = value;
}
/**
* Gets the value of the proxAclRulesTimeDefinitions property.
*
* @return
* possible object is
* {@link ProxAclRulesTimeDefinitions }
*
*/
public ProxAclRulesTimeDefinitions getProxAclRulesTimeDefinitions() {
return proxAclRulesTimeDefinitions;
}
/**
* Sets the value of the proxAclRulesTimeDefinitions property.
*
* @param value
* allowed object is
* {@link ProxAclRulesTimeDefinitions }
*
*/
public void setProxAclRulesTimeDefinitions(ProxAclRulesTimeDefinitions value) {
this.proxAclRulesTimeDefinitions = value;
}
/**
* Gets the value of the proxAclRulesUserAgentDetection property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxAclRulesUserAgentDetection() {
return proxAclRulesUserAgentDetection;
}
/**
* Sets the value of the proxAclRulesUserAgentDetection property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxAclRulesUserAgentDetection(String value) {
this.proxAclRulesUserAgentDetection = value;
}
/**
* Gets the value of the proxAclRulesProxyconnUserAgents property.
*
* @return
* possible object is
* {@link ProxAclRulesProxyconnUserAgents }
*
*/
public ProxAclRulesProxyconnUserAgents getProxAclRulesProxyconnUserAgents() {
return proxAclRulesProxyconnUserAgents;
}
/**
* Sets the value of the proxAclRulesProxyconnUserAgents property.
*
* @param value
* allowed object is
* {@link ProxAclRulesProxyconnUserAgents }
*
*/
public void setProxAclRulesProxyconnUserAgents(ProxAclRulesProxyconnUserAgents value) {
this.proxAclRulesProxyconnUserAgents = value;
}
/**
* Gets the value of the proxAclRulesWbrsAllowAbove property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxAclRulesWbrsAllowAbove() {
return proxAclRulesWbrsAllowAbove;
}
/**
* Sets the value of the proxAclRulesWbrsAllowAbove property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxAclRulesWbrsAllowAbove(String value) {
this.proxAclRulesWbrsAllowAbove = value;
}
/**
* Gets the value of the proxAclRulesWbrsBlockBelow property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxAclRulesWbrsBlockBelow() {
return proxAclRulesWbrsBlockBelow;
}
/**
* Sets the value of the proxAclRulesWbrsBlockBelow property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxAclRulesWbrsBlockBelow(String value) {
this.proxAclRulesWbrsBlockBelow = value;
}
/**
* Gets the value of the proxAclRulesWbrsEnabled property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxAclRulesWbrsEnabled() {
return proxAclRulesWbrsEnabled;
}
/**
* Sets the value of the proxAclRulesWbrsEnabled property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxAclRulesWbrsEnabled(String value) {
this.proxAclRulesWbrsEnabled = value;
}
/**
* Gets the value of the proxAclRulesWbrsOptin property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxAclRulesWbrsOptin() {
return proxAclRulesWbrsOptin;
}
/**
* Sets the value of the proxAclRulesWbrsOptin property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxAclRulesWbrsOptin(String value) {
this.proxAclRulesWbrsOptin = value;
}
/**
* Gets the value of the proxAclRulesWebcatEnabled property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxAclRulesWebcatEnabled() {
return proxAclRulesWebcatEnabled;
}
/**
* Sets the value of the proxAclRulesWebcatEnabled property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxAclRulesWebcatEnabled(String value) {
this.proxAclRulesWebcatEnabled = value;
}
/**
* Gets the value of the proxAclRulesWebcatOptin property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxAclRulesWebcatOptin() {
return proxAclRulesWebcatOptin;
}
/**
* Sets the value of the proxAclRulesWebcatOptin property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxAclRulesWebcatOptin(String value) {
this.proxAclRulesWebcatOptin = value;
}
/**
* Gets the value of the proxAclRulesFirestoneEnabled property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxAclRulesFirestoneEnabled() {
return proxAclRulesFirestoneEnabled;
}
/**
* Sets the value of the proxAclRulesFirestoneEnabled property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxAclRulesFirestoneEnabled(String value) {
this.proxAclRulesFirestoneEnabled = value;
}
/**
* Gets the value of the proxAclRulesFirestoneOptin property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxAclRulesFirestoneOptin() {
return proxAclRulesFirestoneOptin;
}
/**
* Sets the value of the proxAclRulesFirestoneOptin property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxAclRulesFirestoneOptin(String value) {
this.proxAclRulesFirestoneOptin = value;
}
/**
* Gets the value of the proxAclRulesFirestoneCaEnabled property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxAclRulesFirestoneCaEnabled() {
return proxAclRulesFirestoneCaEnabled;
}
/**
* Sets the value of the proxAclRulesFirestoneCaEnabled property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxAclRulesFirestoneCaEnabled(String value) {
this.proxAclRulesFirestoneCaEnabled = value;
}
/**
* Gets the value of the proxAclRulesAvcEnabled property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxAclRulesAvcEnabled() {
return proxAclRulesAvcEnabled;
}
/**
* Sets the value of the proxAclRulesAvcEnabled property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxAclRulesAvcEnabled(String value) {
this.proxAclRulesAvcEnabled = value;
}
/**
* Gets the value of the proxAclRulesAvcDecryptionEnabled property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxAclRulesAvcDecryptionEnabled() {
return proxAclRulesAvcDecryptionEnabled;
}
/**
* Sets the value of the proxAclRulesAvcDecryptionEnabled property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxAclRulesAvcDecryptionEnabled(String value) {
this.proxAclRulesAvcDecryptionEnabled = value;
}
/**
* Gets the value of the proxAclRulesAdaptiveScanningEnabled property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxAclRulesAdaptiveScanningEnabled() {
return proxAclRulesAdaptiveScanningEnabled;
}
/**
* Sets the value of the proxAclRulesAdaptiveScanningEnabled property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxAclRulesAdaptiveScanningEnabled(String value) {
this.proxAclRulesAdaptiveScanningEnabled = value;
}
/**
* Gets the value of the proxAclRulesAdaptiveScanningRiskScoreThreshold property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxAclRulesAdaptiveScanningRiskScoreThreshold() {
return proxAclRulesAdaptiveScanningRiskScoreThreshold;
}
/**
* Sets the value of the proxAclRulesAdaptiveScanningRiskScoreThreshold property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxAclRulesAdaptiveScanningRiskScoreThreshold(String value) {
this.proxAclRulesAdaptiveScanningRiskScoreThreshold = value;
}
/**
* Gets the value of the proxAclRulesAdaptiveScanningLoadFactorThreshold property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxAclRulesAdaptiveScanningLoadFactorThreshold() {
return proxAclRulesAdaptiveScanningLoadFactorThreshold;
}
/**
* Sets the value of the proxAclRulesAdaptiveScanningLoadFactorThreshold property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxAclRulesAdaptiveScanningLoadFactorThreshold(String value) {
this.proxAclRulesAdaptiveScanningLoadFactorThreshold = value;
}
/**
* Gets the value of the proxAclRulesWebexBypass property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxAclRulesWebexBypass() {
return proxAclRulesWebexBypass;
}
/**
* Sets the value of the proxAclRulesWebexBypass property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxAclRulesWebexBypass(String value) {
this.proxAclRulesWebexBypass = value;
}
/**
* Gets the value of the proxAclRulesAupEngineFailureBlock property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxAclRulesAupEngineFailureBlock() {
return proxAclRulesAupEngineFailureBlock;
}
/**
* Sets the value of the proxAclRulesAupEngineFailureBlock property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxAclRulesAupEngineFailureBlock(String value) {
this.proxAclRulesAupEngineFailureBlock = value;
}
/**
* Gets the value of the proxAclRulesMusOptin property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxAclRulesMusOptin() {
return proxAclRulesMusOptin;
}
/**
* Sets the value of the proxAclRulesMusOptin property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxAclRulesMusOptin(String value) {
this.proxAclRulesMusOptin = value;
}
/**
* Gets the value of the proxAclRulesMusEnabled property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxAclRulesMusEnabled() {
return proxAclRulesMusEnabled;
}
/**
* Sets the value of the proxAclRulesMusEnabled property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxAclRulesMusEnabled(String value) {
this.proxAclRulesMusEnabled = value;
}
/**
* Gets the value of the proxAclRulesWebcatUnreachable property.
*
* @return
* possible object is
* {@link ProxAclRulesWebcatUnreachable }
*
*/
public ProxAclRulesWebcatUnreachable getProxAclRulesWebcatUnreachable() {
return proxAclRulesWebcatUnreachable;
}
/**
* Sets the value of the proxAclRulesWebcatUnreachable property.
*
* @param value
* allowed object is
* {@link ProxAclRulesWebcatUnreachable }
*
*/
public void setProxAclRulesWebcatUnreachable(ProxAclRulesWebcatUnreachable value) {
this.proxAclRulesWebcatUnreachable = value;
}
/**
* Gets the value of the proxAclCustomCategories property.
*
* @return
* possible object is
* {@link ProxAclCustomCategories }
*
*/
public ProxAclCustomCategories getProxAclCustomCategories() {
return proxAclCustomCategories;
}
/**
* Sets the value of the proxAclCustomCategories property.
*
* @param value
* allowed object is
* {@link ProxAclCustomCategories }
*
*/
public void setProxAclCustomCategories(ProxAclCustomCategories value) {
this.proxAclCustomCategories = value;
}
/**
* Gets the value of the proxAclPolicyGroups property.
*
* @return
* possible object is
* {@link ProxAclPolicyGroups }
*
*/
public ProxAclPolicyGroups getProxAclPolicyGroups() {
return proxAclPolicyGroups;
}
/**
* Sets the value of the proxAclPolicyGroups property.
*
* @param value
* allowed object is
* {@link ProxAclPolicyGroups }
*
*/
public void setProxAclPolicyGroups(ProxAclPolicyGroups value) {
this.proxAclPolicyGroups = value;
}
/**
* Gets the value of the proxAclHttpsGroups property.
*
* @return
* possible object is
* {@link ProxAclHttpsGroups }
*
*/
public ProxAclHttpsGroups getProxAclHttpsGroups() {
return proxAclHttpsGroups;
}
/**
* Sets the value of the proxAclHttpsGroups property.
*
* @param value
* allowed object is
* {@link ProxAclHttpsGroups }
*
*/
public void setProxAclHttpsGroups(ProxAclHttpsGroups value) {
this.proxAclHttpsGroups = value;
}
/**
* Gets the value of the proxAclIdentityGroups property.
*
* @return
* possible object is
* {@link ProxAclIdentityGroups }
*
*/
public ProxAclIdentityGroups getProxAclIdentityGroups() {
return proxAclIdentityGroups;
}
/**
* Sets the value of the proxAclIdentityGroups property.
*
* @param value
* allowed object is
* {@link ProxAclIdentityGroups }
*
*/
public void setProxAclIdentityGroups(ProxAclIdentityGroups value) {
this.proxAclIdentityGroups = value;
}
/**
* Gets the value of the proxAclRoutingGroups property.
*
* @return
* possible object is
* {@link ProxAclRoutingGroups }
*
*/
public ProxAclRoutingGroups getProxAclRoutingGroups() {
return proxAclRoutingGroups;
}
/**
* Sets the value of the proxAclRoutingGroups property.
*
* @param value
* allowed object is
* {@link ProxAclRoutingGroups }
*
*/
public void setProxAclRoutingGroups(ProxAclRoutingGroups value) {
this.proxAclRoutingGroups = value;
}
/**
* Gets the value of the proxAclIcapPolicyGroups property.
*
* @return
* possible object is
* {@link ProxAclIcapPolicyGroups }
*
*/
public ProxAclIcapPolicyGroups getProxAclIcapPolicyGroups() {
return proxAclIcapPolicyGroups;
}
/**
* Sets the value of the proxAclIcapPolicyGroups property.
*
* @param value
* allowed object is
* {@link ProxAclIcapPolicyGroups }
*
*/
public void setProxAclIcapPolicyGroups(ProxAclIcapPolicyGroups value) {
this.proxAclIcapPolicyGroups = value;
}
/**
* Gets the value of the proxAclDlpPolicyGroups property.
*
* @return
* possible object is
* {@link ProxAclDlpPolicyGroups }
*
*/
public ProxAclDlpPolicyGroups getProxAclDlpPolicyGroups() {
return proxAclDlpPolicyGroups;
}
/**
* Sets the value of the proxAclDlpPolicyGroups property.
*
* @param value
* allowed object is
* {@link ProxAclDlpPolicyGroups }
*
*/
public void setProxAclDlpPolicyGroups(ProxAclDlpPolicyGroups value) {
this.proxAclDlpPolicyGroups = value;
}
/**
* Gets the value of the proxAclOutboundAmwPolicyGroups property.
*
* @return
* possible object is
* {@link ProxAclOutboundAmwPolicyGroups }
*
*/
public ProxAclOutboundAmwPolicyGroups getProxAclOutboundAmwPolicyGroups() {
return proxAclOutboundAmwPolicyGroups;
}
/**
* Sets the value of the proxAclOutboundAmwPolicyGroups property.
*
* @param value
* allowed object is
* {@link ProxAclOutboundAmwPolicyGroups }
*
*/
public void setProxAclOutboundAmwPolicyGroups(ProxAclOutboundAmwPolicyGroups value) {
this.proxAclOutboundAmwPolicyGroups = value;
}
/**
* Gets the value of the proxAclSocksGroups property.
*
* @return
* possible object is
* {@link ProxAclSocksGroups }
*
*/
public ProxAclSocksGroups getProxAclSocksGroups() {
return proxAclSocksGroups;
}
/**
* Sets the value of the proxAclSocksGroups property.
*
* @param value
* allowed object is
* {@link ProxAclSocksGroups }
*
*/
public void setProxAclSocksGroups(ProxAclSocksGroups value) {
this.proxAclSocksGroups = value;
}
/**
* Gets the value of the proxAclSaasPolicyGroups property.
*
* @return
* possible object is
* {@link ProxAclSaasPolicyGroups }
*
*/
public ProxAclSaasPolicyGroups getProxAclSaasPolicyGroups() {
return proxAclSaasPolicyGroups;
}
/**
* Sets the value of the proxAclSaasPolicyGroups property.
*
* @param value
* allowed object is
* {@link ProxAclSaasPolicyGroups }
*
*/
public void setProxAclSaasPolicyGroups(ProxAclSaasPolicyGroups value) {
this.proxAclSaasPolicyGroups = value;
}
/**
* Gets the value of the proxAclGlobals property.
*
* @return
* possible object is
* {@link ProxAclGlobals }
*
*/
public ProxAclGlobals getProxAclGlobals() {
return proxAclGlobals;
}
/**
* Sets the value of the proxAclGlobals property.
*
* @param value
* allowed object is
* {@link ProxAclGlobals }
*
*/
public void setProxAclGlobals(ProxAclGlobals value) {
this.proxAclGlobals = value;
}
/**
* Gets the value of the proxAclProxyGroups property.
*
* @return
* possible object is
* {@link ProxAclProxyGroups }
*
*/
public ProxAclProxyGroups getProxAclProxyGroups() {
return proxAclProxyGroups;
}
/**
* Sets the value of the proxAclProxyGroups property.
*
* @param value
* allowed object is
* {@link ProxAclProxyGroups }
*
*/
public void setProxAclProxyGroups(ProxAclProxyGroups value) {
this.proxAclProxyGroups = value;
}
/**
* Gets the value of the proxAclRulesPolicyTags property.
*
* @return
* possible object is
* {@link ProxAclRulesPolicyTags }
*
*/
public ProxAclRulesPolicyTags getProxAclRulesPolicyTags() {
return proxAclRulesPolicyTags;
}
/**
* Sets the value of the proxAclRulesPolicyTags property.
*
* @param value
* allowed object is
* {@link ProxAclRulesPolicyTags }
*
*/
public void setProxAclRulesPolicyTags(ProxAclRulesPolicyTags value) {
this.proxAclRulesPolicyTags = value;
}
/**
* Gets the value of the proxAclRulesUrlTags property.
*
* @return
* possible object is
* {@link ProxAclRulesUrlTags }
*
*/
public ProxAclRulesUrlTags getProxAclRulesUrlTags() {
return proxAclRulesUrlTags;
}
/**
* Sets the value of the proxAclRulesUrlTags property.
*
* @param value
* allowed object is
* {@link ProxAclRulesUrlTags }
*
*/
public void setProxAclRulesUrlTags(ProxAclRulesUrlTags value) {
this.proxAclRulesUrlTags = value;
}
/**
* Gets the value of the proxAclIcapServers property.
*
* @return
* possible object is
* {@link ProxAclIcapServers }
*
*/
public ProxAclIcapServers getProxAclIcapServers() {
return proxAclIcapServers;
}
/**
* Sets the value of the proxAclIcapServers property.
*
* @param value
* allowed object is
* {@link ProxAclIcapServers }
*
*/
public void setProxAclIcapServers(ProxAclIcapServers value) {
this.proxAclIcapServers = value;
}
/**
* Gets the value of the proxAclBwAggregateRules property.
*
* @return
* possible object is
* {@link ProxAclBwAggregateRules }
*
*/
public ProxAclBwAggregateRules getProxAclBwAggregateRules() {
return proxAclBwAggregateRules;
}
/**
* Sets the value of the proxAclBwAggregateRules property.
*
* @param value
* allowed object is
* {@link ProxAclBwAggregateRules }
*
*/
public void setProxAclBwAggregateRules(ProxAclBwAggregateRules value) {
this.proxAclBwAggregateRules = value;
}
/**
* Gets the value of the proxConfigAdvancedProxyOptions property.
*
* @return
* possible object is
* {@link ProxConfigAdvancedProxyOptions }
*
*/
public ProxConfigAdvancedProxyOptions getProxConfigAdvancedProxyOptions() {
return proxConfigAdvancedProxyOptions;
}
/**
* Sets the value of the proxConfigAdvancedProxyOptions property.
*
* @param value
* allowed object is
* {@link ProxConfigAdvancedProxyOptions }
*
*/
public void setProxConfigAdvancedProxyOptions(ProxConfigAdvancedProxyOptions value) {
this.proxConfigAdvancedProxyOptions = value;
}
/**
* Gets the value of the proxConfigAswEnable property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxConfigAswEnable() {
return proxConfigAswEnable;
}
/**
* Sets the value of the proxConfigAswEnable property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxConfigAswEnable(String value) {
this.proxConfigAswEnable = value;
}
/**
* Gets the value of the proxConfigAuthenticationMode property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxConfigAuthenticationMode() {
return proxConfigAuthenticationMode;
}
/**
* Sets the value of the proxConfigAuthenticationMode property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxConfigAuthenticationMode(String value) {
this.proxConfigAuthenticationMode = value;
}
/**
* Gets the value of the proxConfigAuthRealms property.
*
* @return
* possible object is
* {@link ProxConfigAuthRealms }
*
*/
public ProxConfigAuthRealms getProxConfigAuthRealms() {
return proxConfigAuthRealms;
}
/**
* Sets the value of the proxConfigAuthRealms property.
*
* @param value
* allowed object is
* {@link ProxConfigAuthRealms }
*
*/
public void setProxConfigAuthRealms(ProxConfigAuthRealms value) {
this.proxConfigAuthRealms = value;
}
/**
* Gets the value of the proxConfigAuthSequences property.
*
* @return
* possible object is
* {@link ProxConfigAuthSequences }
*
*/
public ProxConfigAuthSequences getProxConfigAuthSequences() {
return proxConfigAuthSequences;
}
/**
* Sets the value of the proxConfigAuthSequences property.
*
* @param value
* allowed object is
* {@link ProxConfigAuthSequences }
*
*/
public void setProxConfigAuthSequences(ProxConfigAuthSequences value) {
this.proxConfigAuthSequences = value;
}
/**
* Gets the value of the proxConfigAuthTimeout property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxConfigAuthTimeout() {
return proxConfigAuthTimeout;
}
/**
* Sets the value of the proxConfigAuthTimeout property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxConfigAuthTimeout(String value) {
this.proxConfigAuthTimeout = value;
}
/**
* Gets the value of the proxConfigAuthenticateReferralsEnabled property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxConfigAuthenticateReferralsEnabled() {
return proxConfigAuthenticateReferralsEnabled;
}
/**
* Sets the value of the proxConfigAuthenticateReferralsEnabled property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxConfigAuthenticateReferralsEnabled(String value) {
this.proxConfigAuthenticateReferralsEnabled = value;
}
/**
* Gets the value of the proxConfigCertDirectory property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxConfigCertDirectory() {
return proxConfigCertDirectory;
}
/**
* Sets the value of the proxConfigCertDirectory property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxConfigCertDirectory(String value) {
this.proxConfigCertDirectory = value;
}
/**
* Gets the value of the proxConfigEnableCustomEun property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxConfigEnableCustomEun() {
return proxConfigEnableCustomEun;
}
/**
* Sets the value of the proxConfigEnableCustomEun property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxConfigEnableCustomEun(String value) {
this.proxConfigEnableCustomEun = value;
}
/**
* Gets the value of the proxConfigAllowDecryptionForEUA property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxConfigAllowDecryptionForEUA() {
return proxConfigAllowDecryptionForEUA;
}
/**
* Sets the value of the proxConfigAllowDecryptionForEUA property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxConfigAllowDecryptionForEUA(String value) {
this.proxConfigAllowDecryptionForEUA = value;
}
/**
* Gets the value of the proxConfigEnableRangeRequests property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxConfigEnableRangeRequests() {
return proxConfigEnableRangeRequests;
}
/**
* Sets the value of the proxConfigEnableRangeRequests property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxConfigEnableRangeRequests(String value) {
this.proxConfigEnableRangeRequests = value;
}
/**
* Gets the value of the proxConfigEnableSslCache property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxConfigEnableSslCache() {
return proxConfigEnableSslCache;
}
/**
* Sets the value of the proxConfigEnableSslCache property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxConfigEnableSslCache(String value) {
this.proxConfigEnableSslCache = value;
}
/**
* Gets the value of the proxConfigEnableVerdictCache property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxConfigEnableVerdictCache() {
return proxConfigEnableVerdictCache;
}
/**
* Sets the value of the proxConfigEnableVerdictCache property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxConfigEnableVerdictCache(String value) {
this.proxConfigEnableVerdictCache = value;
}
/**
* Gets the value of the proxConfigErrorPageLanguage property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxConfigErrorPageLanguage() {
return proxConfigErrorPageLanguage;
}
/**
* Sets the value of the proxConfigErrorPageLanguage property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxConfigErrorPageLanguage(String value) {
this.proxConfigErrorPageLanguage = value;
}
/**
* Gets the value of the proxConfigErrorPageLogoDisplayValue property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxConfigErrorPageLogoDisplayValue() {
return proxConfigErrorPageLogoDisplayValue;
}
/**
* Sets the value of the proxConfigErrorPageLogoDisplayValue property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxConfigErrorPageLogoDisplayValue(String value) {
this.proxConfigErrorPageLogoDisplayValue = value;
}
/**
* Gets the value of the proxConfigErrorPageLogoType property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxConfigErrorPageLogoType() {
return proxConfigErrorPageLogoType;
}
/**
* Sets the value of the proxConfigErrorPageLogoType property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxConfigErrorPageLogoType(String value) {
this.proxConfigErrorPageLogoType = value;
}
/**
* Gets the value of the proxConfigExplicitImsRefreshTime property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxConfigExplicitImsRefreshTime() {
return proxConfigExplicitImsRefreshTime;
}
/**
* Sets the value of the proxConfigExplicitImsRefreshTime property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxConfigExplicitImsRefreshTime(String value) {
this.proxConfigExplicitImsRefreshTime = value;
}
/**
* Gets the value of the proxConfigGeneratedCertName property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxConfigGeneratedCertName() {
return proxConfigGeneratedCertName;
}
/**
* Sets the value of the proxConfigGeneratedCertName property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxConfigGeneratedCertName(String value) {
this.proxConfigGeneratedCertName = value;
}
/**
* Gets the value of the proxConfigGeneratedCert property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxConfigGeneratedCert() {
return proxConfigGeneratedCert;
}
/**
* Sets the value of the proxConfigGeneratedCert property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxConfigGeneratedCert(String value) {
this.proxConfigGeneratedCert = value;
}
/**
* Gets the value of the proxConfigGeneratedKey property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxConfigGeneratedKey() {
return proxConfigGeneratedKey;
}
/**
* Sets the value of the proxConfigGeneratedKey property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxConfigGeneratedKey(String value) {
this.proxConfigGeneratedKey = value;
}
/**
* Gets the value of the proxConfigHttpsEnabled property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxConfigHttpsEnabled() {
return proxConfigHttpsEnabled;
}
/**
* Sets the value of the proxConfigHttpsEnabled property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxConfigHttpsEnabled(String value) {
this.proxConfigHttpsEnabled = value;
}
/**
* Gets the value of the proxConfigHttpsOptin property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxConfigHttpsOptin() {
return proxConfigHttpsOptin;
}
/**
* Sets the value of the proxConfigHttpsOptin property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxConfigHttpsOptin(String value) {
this.proxConfigHttpsOptin = value;
}
/**
* Gets the value of the proxConfigInvalidCertHandling property.
*
* @return
* possible object is
* {@link ProxConfigInvalidCertHandling }
*
*/
public ProxConfigInvalidCertHandling getProxConfigInvalidCertHandling() {
return proxConfigInvalidCertHandling;
}
/**
* Sets the value of the proxConfigInvalidCertHandling property.
*
* @param value
* allowed object is
* {@link ProxConfigInvalidCertHandling }
*
*/
public void setProxConfigInvalidCertHandling(ProxConfigInvalidCertHandling value) {
this.proxConfigInvalidCertHandling = value;
}
/**
* Gets the value of the proxConfigMaxClientPconnTime property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxConfigMaxClientPconnTime() {
return proxConfigMaxClientPconnTime;
}
/**
* Sets the value of the proxConfigMaxClientPconnTime property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxConfigMaxClientPconnTime(String value) {
this.proxConfigMaxClientPconnTime = value;
}
/**
* Gets the value of the proxConfigMaxIdleClientPconns property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxConfigMaxIdleClientPconns() {
return proxConfigMaxIdleClientPconns;
}
/**
* Sets the value of the proxConfigMaxIdleClientPconns property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxConfigMaxIdleClientPconns(String value) {
this.proxConfigMaxIdleClientPconns = value;
}
/**
* Gets the value of the proxConfigMerlinEnabled property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxConfigMerlinEnabled() {
return proxConfigMerlinEnabled;
}
/**
* Sets the value of the proxConfigMerlinEnabled property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxConfigMerlinEnabled(String value) {
this.proxConfigMerlinEnabled = value;
}
/**
* Gets the value of the proxConfigMerlinOptin property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxConfigMerlinOptin() {
return proxConfigMerlinOptin;
}
/**
* Sets the value of the proxConfigMerlinOptin property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxConfigMerlinOptin(String value) {
this.proxConfigMerlinOptin = value;
}
/**
* Gets the value of the proxConfigLdapSettings property.
*
* @return
* possible object is
* {@link ProxConfigLdapSettings }
*
*/
public ProxConfigLdapSettings getProxConfigLdapSettings() {
return proxConfigLdapSettings;
}
/**
* Sets the value of the proxConfigLdapSettings property.
*
* @param value
* allowed object is
* {@link ProxConfigLdapSettings }
*
*/
public void setProxConfigLdapSettings(ProxConfigLdapSettings value) {
this.proxConfigLdapSettings = value;
}
/**
* Gets the value of the proxConfigNtlmSettings property.
*
* @return
* possible object is
* {@link ProxConfigNtlmSettings }
*
*/
public ProxConfigNtlmSettings getProxConfigNtlmSettings() {
return proxConfigNtlmSettings;
}
/**
* Sets the value of the proxConfigNtlmSettings property.
*
* @param value
* allowed object is
* {@link ProxConfigNtlmSettings }
*
*/
public void setProxConfigNtlmSettings(ProxConfigNtlmSettings value) {
this.proxConfigNtlmSettings = value;
}
/**
* Gets the value of the proxConfigPermitOnAuthFailure property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxConfigPermitOnAuthFailure() {
return proxConfigPermitOnAuthFailure;
}
/**
* Sets the value of the proxConfigPermitOnAuthFailure property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxConfigPermitOnAuthFailure(String value) {
this.proxConfigPermitOnAuthFailure = value;
}
/**
* Gets the value of the proxConfigProxConfigured property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxConfigProxConfigured() {
return proxConfigProxConfigured;
}
/**
* Sets the value of the proxConfigProxConfigured property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxConfigProxConfigured(String value) {
this.proxConfigProxConfigured = value;
}
/**
* Gets the value of the proxConfigProxEnabled property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxConfigProxEnabled() {
return proxConfigProxEnabled;
}
/**
* Sets the value of the proxConfigProxEnabled property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxConfigProxEnabled(String value) {
this.proxConfigProxEnabled = value;
}
/**
* Gets the value of the proxConfigProxFilename property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxConfigProxFilename() {
return proxConfigProxFilename;
}
/**
* Sets the value of the proxConfigProxFilename property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxConfigProxFilename(String value) {
this.proxConfigProxFilename = value;
}
/**
* Gets the value of the proxConfigProxOptin property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxConfigProxOptin() {
return proxConfigProxOptin;
}
/**
* Sets the value of the proxConfigProxOptin property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxConfigProxOptin(String value) {
this.proxConfigProxOptin = value;
}
/**
* Gets the value of the proxConfigProxyCacheEnabled property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxConfigProxyCacheEnabled() {
return proxConfigProxyCacheEnabled;
}
/**
* Sets the value of the proxConfigProxyCacheEnabled property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxConfigProxyCacheEnabled(String value) {
this.proxConfigProxyCacheEnabled = value;
}
/**
* Gets the value of the proxConfigSecureAuthCertName property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxConfigSecureAuthCertName() {
return proxConfigSecureAuthCertName;
}
/**
* Sets the value of the proxConfigSecureAuthCertName property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxConfigSecureAuthCertName(String value) {
this.proxConfigSecureAuthCertName = value;
}
/**
* Gets the value of the proxConfigSecureAuthCert property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxConfigSecureAuthCert() {
return proxConfigSecureAuthCert;
}
/**
* Sets the value of the proxConfigSecureAuthCert property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxConfigSecureAuthCert(String value) {
this.proxConfigSecureAuthCert = value;
}
/**
* Gets the value of the proxConfigSecureAuthKey property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxConfigSecureAuthKey() {
return proxConfigSecureAuthKey;
}
/**
* Sets the value of the proxConfigSecureAuthKey property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxConfigSecureAuthKey(String value) {
this.proxConfigSecureAuthKey = value;
}
/**
* Gets the value of the proxConfigSseMaximumSizeToScanMb property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxConfigSseMaximumSizeToScanMb() {
return proxConfigSseMaximumSizeToScanMb;
}
/**
* Sets the value of the proxConfigSseMaximumSizeToScanMb property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxConfigSseMaximumSizeToScanMb(String value) {
this.proxConfigSseMaximumSizeToScanMb = value;
}
/**
* Gets the value of the proxConfigSigningCertName property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxConfigSigningCertName() {
return proxConfigSigningCertName;
}
/**
* Sets the value of the proxConfigSigningCertName property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxConfigSigningCertName(String value) {
this.proxConfigSigningCertName = value;
}
/**
* Gets the value of the proxConfigTrustOverrideRootCertIDs property.
*
* @return
* possible object is
* {@link ProxConfigTrustOverrideRootCertIDs }
*
*/
public ProxConfigTrustOverrideRootCertIDs getProxConfigTrustOverrideRootCertIDs() {
return proxConfigTrustOverrideRootCertIDs;
}
/**
* Sets the value of the proxConfigTrustOverrideRootCertIDs property.
*
* @param value
* allowed object is
* {@link ProxConfigTrustOverrideRootCertIDs }
*
*/
public void setProxConfigTrustOverrideRootCertIDs(ProxConfigTrustOverrideRootCertIDs value) {
this.proxConfigTrustOverrideRootCertIDs = value;
}
/**
* Gets the value of the proxConfigUploadedCertName property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxConfigUploadedCertName() {
return proxConfigUploadedCertName;
}
/**
* Sets the value of the proxConfigUploadedCertName property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxConfigUploadedCertName(String value) {
this.proxConfigUploadedCertName = value;
}
/**
* Gets the value of the proxConfigUploadedCert property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxConfigUploadedCert() {
return proxConfigUploadedCert;
}
/**
* Sets the value of the proxConfigUploadedCert property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxConfigUploadedCert(String value) {
this.proxConfigUploadedCert = value;
}
/**
* Gets the value of the proxConfigUploadedKey property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxConfigUploadedKey() {
return proxConfigUploadedKey;
}
/**
* Sets the value of the proxConfigUploadedKey property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxConfigUploadedKey(String value) {
this.proxConfigUploadedKey = value;
}
/**
* Gets the value of the proxConfigUploadedRootCert property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxConfigUploadedRootCert() {
return proxConfigUploadedRootCert;
}
/**
* Sets the value of the proxConfigUploadedRootCert property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxConfigUploadedRootCert(String value) {
this.proxConfigUploadedRootCert = value;
}
/**
* Gets the value of the proxConfigUploadedRootCertContents property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxConfigUploadedRootCertContents() {
return proxConfigUploadedRootCertContents;
}
/**
* Sets the value of the proxConfigUploadedRootCertContents property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxConfigUploadedRootCertContents(String value) {
this.proxConfigUploadedRootCertContents = value;
}
/**
* Gets the value of the proxConfigUpstreamProxyAddress property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxConfigUpstreamProxyAddress() {
return proxConfigUpstreamProxyAddress;
}
/**
* Sets the value of the proxConfigUpstreamProxyAddress property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxConfigUpstreamProxyAddress(String value) {
this.proxConfigUpstreamProxyAddress = value;
}
/**
* Gets the value of the proxConfigUpstreamProxyMode property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxConfigUpstreamProxyMode() {
return proxConfigUpstreamProxyMode;
}
/**
* Sets the value of the proxConfigUpstreamProxyMode property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxConfigUpstreamProxyMode(String value) {
this.proxConfigUpstreamProxyMode = value;
}
/**
* Gets the value of the proxConfigUseGroupmemAttr property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxConfigUseGroupmemAttr() {
return proxConfigUseGroupmemAttr;
}
/**
* Sets the value of the proxConfigUseGroupmemAttr property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxConfigUseGroupmemAttr(String value) {
this.proxConfigUseGroupmemAttr = value;
}
/**
* Gets the value of the proxConfigEnableAdvancedWinbinddWatchdog property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxConfigEnableAdvancedWinbinddWatchdog() {
return proxConfigEnableAdvancedWinbinddWatchdog;
}
/**
* Sets the value of the proxConfigEnableAdvancedWinbinddWatchdog property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxConfigEnableAdvancedWinbinddWatchdog(String value) {
this.proxConfigEnableAdvancedWinbinddWatchdog = value;
}
/**
* Gets the value of the proxConfigHttpPortTunnelingEnabled property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxConfigHttpPortTunnelingEnabled() {
return proxConfigHttpPortTunnelingEnabled;
}
/**
* Sets the value of the proxConfigHttpPortTunnelingEnabled property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxConfigHttpPortTunnelingEnabled(String value) {
this.proxConfigHttpPortTunnelingEnabled = value;
}
/**
* Gets the value of the proxConfigSslPortBlockNonssl property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxConfigSslPortBlockNonssl() {
return proxConfigSslPortBlockNonssl;
}
/**
* Sets the value of the proxConfigSslPortBlockNonssl property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxConfigSslPortBlockNonssl(String value) {
this.proxConfigSslPortBlockNonssl = value;
}
/**
* Gets the value of the proxConfigMusTelemetryUrl property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxConfigMusTelemetryUrl() {
return proxConfigMusTelemetryUrl;
}
/**
* Sets the value of the proxConfigMusTelemetryUrl property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxConfigMusTelemetryUrl(String value) {
this.proxConfigMusTelemetryUrl = value;
}
/**
* Gets the value of the proxConfigMusTelemetryDataUrl property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxConfigMusTelemetryDataUrl() {
return proxConfigMusTelemetryDataUrl;
}
/**
* Sets the value of the proxConfigMusTelemetryDataUrl property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxConfigMusTelemetryDataUrl(String value) {
this.proxConfigMusTelemetryDataUrl = value;
}
/**
* Gets the value of the proxConfigMusTelemetryMaxSize property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxConfigMusTelemetryMaxSize() {
return proxConfigMusTelemetryMaxSize;
}
/**
* Sets the value of the proxConfigMusTelemetryMaxSize property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxConfigMusTelemetryMaxSize(String value) {
this.proxConfigMusTelemetryMaxSize = value;
}
/**
* Gets the value of the proxConfigSaml20IdpSettings property.
*
* @return
* possible object is
* {@link ProxConfigSaml20IdpSettings }
*
*/
public ProxConfigSaml20IdpSettings getProxConfigSaml20IdpSettings() {
return proxConfigSaml20IdpSettings;
}
/**
* Sets the value of the proxConfigSaml20IdpSettings property.
*
* @param value
* allowed object is
* {@link ProxConfigSaml20IdpSettings }
*
*/
public void setProxConfigSaml20IdpSettings(ProxConfigSaml20IdpSettings value) {
this.proxConfigSaml20IdpSettings = value;
}
/**
* Gets the value of the proxConfigSaml20IdpGeneratedCertificatePem property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxConfigSaml20IdpGeneratedCertificatePem() {
return proxConfigSaml20IdpGeneratedCertificatePem;
}
/**
* Sets the value of the proxConfigSaml20IdpGeneratedCertificatePem property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxConfigSaml20IdpGeneratedCertificatePem(String value) {
this.proxConfigSaml20IdpGeneratedCertificatePem = value;
}
/**
* Gets the value of the proxConfigSaml20IdpGeneratedPrivatekeyPem property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxConfigSaml20IdpGeneratedPrivatekeyPem() {
return proxConfigSaml20IdpGeneratedPrivatekeyPem;
}
/**
* Sets the value of the proxConfigSaml20IdpGeneratedPrivatekeyPem property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxConfigSaml20IdpGeneratedPrivatekeyPem(String value) {
this.proxConfigSaml20IdpGeneratedPrivatekeyPem = value;
}
/**
* Gets the value of the proxConfigSaml20IdpUploadedCertificatePem property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxConfigSaml20IdpUploadedCertificatePem() {
return proxConfigSaml20IdpUploadedCertificatePem;
}
/**
* Sets the value of the proxConfigSaml20IdpUploadedCertificatePem property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxConfigSaml20IdpUploadedCertificatePem(String value) {
this.proxConfigSaml20IdpUploadedCertificatePem = value;
}
/**
* Gets the value of the proxConfigSaml20IdpUploadedPrivatekeyPem property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxConfigSaml20IdpUploadedPrivatekeyPem() {
return proxConfigSaml20IdpUploadedPrivatekeyPem;
}
/**
* Sets the value of the proxConfigSaml20IdpUploadedPrivatekeyPem property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxConfigSaml20IdpUploadedPrivatekeyPem(String value) {
this.proxConfigSaml20IdpUploadedPrivatekeyPem = value;
}
/**
* Gets the value of the proxEtcAccessLogType property.
*
* @return
* possible object is
* {@link ProxEtcAccessLogType }
*
*/
public ProxEtcAccessLogType getProxEtcAccessLogType() {
return proxEtcAccessLogType;
}
/**
* Sets the value of the proxEtcAccessLogType property.
*
* @param value
* allowed object is
* {@link ProxEtcAccessLogType }
*
*/
public void setProxEtcAccessLogType(ProxEtcAccessLogType value) {
this.proxEtcAccessLogType = value;
}
/**
* Gets the value of the proxEtcAddForwardedFor property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcAddForwardedFor() {
return proxEtcAddForwardedFor;
}
/**
* Sets the value of the proxEtcAddForwardedFor property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcAddForwardedFor(String value) {
this.proxEtcAddForwardedFor = value;
}
/**
* Gets the value of the proxEtcAllowCaseInsensitiveUserMatch property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcAllowCaseInsensitiveUserMatch() {
return proxEtcAllowCaseInsensitiveUserMatch;
}
/**
* Sets the value of the proxEtcAllowCaseInsensitiveUserMatch property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcAllowCaseInsensitiveUserMatch(String value) {
this.proxEtcAllowCaseInsensitiveUserMatch = value;
}
/**
* Gets the value of the proxEtcAllowEtagMismatch property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcAllowEtagMismatch() {
return proxEtcAllowEtagMismatch;
}
/**
* Sets the value of the proxEtcAllowEtagMismatch property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcAllowEtagMismatch(String value) {
this.proxEtcAllowEtagMismatch = value;
}
/**
* Gets the value of the proxEtcAllowHeuristicNotModified property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcAllowHeuristicNotModified() {
return proxEtcAllowHeuristicNotModified;
}
/**
* Sets the value of the proxEtcAllowHeuristicNotModified property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcAllowHeuristicNotModified(String value) {
this.proxEtcAllowHeuristicNotModified = value;
}
/**
* Gets the value of the proxEtcAllowUserFeedback property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcAllowUserFeedback() {
return proxEtcAllowUserFeedback;
}
/**
* Sets the value of the proxEtcAllowUserFeedback property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcAllowUserFeedback(String value) {
this.proxEtcAllowUserFeedback = value;
}
/**
* Gets the value of the proxEtcAllowWildCardInGroupName property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcAllowWildCardInGroupName() {
return proxEtcAllowWildCardInGroupName;
}
/**
* Sets the value of the proxEtcAllowWildCardInGroupName property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcAllowWildCardInGroupName(String value) {
this.proxEtcAllowWildCardInGroupName = value;
}
/**
* Gets the value of the proxEtcAmpHighRiskPriority property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcAmpHighRiskPriority() {
return proxEtcAmpHighRiskPriority;
}
/**
* Sets the value of the proxEtcAmpHighRiskPriority property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcAmpHighRiskPriority(String value) {
this.proxEtcAmpHighRiskPriority = value;
}
/**
* Gets the value of the proxEtcAmpLowRiskPriority property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcAmpLowRiskPriority() {
return proxEtcAmpLowRiskPriority;
}
/**
* Sets the value of the proxEtcAmpLowRiskPriority property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcAmpLowRiskPriority(String value) {
this.proxEtcAmpLowRiskPriority = value;
}
/**
* Gets the value of the proxEtcAnonFtpLogin property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcAnonFtpLogin() {
return proxEtcAnonFtpLogin;
}
/**
* Sets the value of the proxEtcAnonFtpLogin property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcAnonFtpLogin(String value) {
this.proxEtcAnonFtpLogin = value;
}
/**
* Gets the value of the proxEtcAnonFtpPassword property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcAnonFtpPassword() {
return proxEtcAnonFtpPassword;
}
/**
* Sets the value of the proxEtcAnonFtpPassword property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcAnonFtpPassword(String value) {
this.proxEtcAnonFtpPassword = value;
}
/**
* Gets the value of the proxEtcAssociationInactivityTimeout property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcAssociationInactivityTimeout() {
return proxEtcAssociationInactivityTimeout;
}
/**
* Sets the value of the proxEtcAssociationInactivityTimeout property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcAssociationInactivityTimeout(String value) {
this.proxEtcAssociationInactivityTimeout = value;
}
/**
* Gets the value of the proxEtcAuthCookieName property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcAuthCookieName() {
return proxEtcAuthCookieName;
}
/**
* Sets the value of the proxEtcAuthCookieName property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcAuthCookieName(String value) {
this.proxEtcAuthCookieName = value;
}
/**
* Gets the value of the proxEtcAuthenticateBasicChildren property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcAuthenticateBasicChildren() {
return proxEtcAuthenticateBasicChildren;
}
/**
* Sets the value of the proxEtcAuthenticateBasicChildren property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcAuthenticateBasicChildren(String value) {
this.proxEtcAuthenticateBasicChildren = value;
}
/**
* Gets the value of the proxEtcAuthenticateNtlmBasicChildren property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcAuthenticateNtlmBasicChildren() {
return proxEtcAuthenticateNtlmBasicChildren;
}
/**
* Sets the value of the proxEtcAuthenticateNtlmBasicChildren property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcAuthenticateNtlmBasicChildren(String value) {
this.proxEtcAuthenticateNtlmBasicChildren = value;
}
/**
* Gets the value of the proxEtcAuthenticateNtlmChildren property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcAuthenticateNtlmChildren() {
return proxEtcAuthenticateNtlmChildren;
}
/**
* Sets the value of the proxEtcAuthenticateNtlmChildren property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcAuthenticateNtlmChildren(String value) {
this.proxEtcAuthenticateNtlmChildren = value;
}
/**
* Gets the value of the proxEtcAuthenticateTtl property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcAuthenticateTtl() {
return proxEtcAuthenticateTtl;
}
/**
* Sets the value of the proxEtcAuthenticateTtl property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcAuthenticateTtl(String value) {
this.proxEtcAuthenticateTtl = value;
}
/**
* Gets the value of the proxEtcBwctrlDebug property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcBwctrlDebug() {
return proxEtcBwctrlDebug;
}
/**
* Sets the value of the proxEtcBwctrlDebug property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcBwctrlDebug(String value) {
this.proxEtcBwctrlDebug = value;
}
/**
* Gets the value of the proxEtcCacheAuthContent property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcCacheAuthContent() {
return proxEtcCacheAuthContent;
}
/**
* Sets the value of the proxEtcCacheAuthContent property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcCacheAuthContent(String value) {
this.proxEtcCacheAuthContent = value;
}
/**
* Gets the value of the proxEtcCacheFromUntrustedServer property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcCacheFromUntrustedServer() {
return proxEtcCacheFromUntrustedServer;
}
/**
* Sets the value of the proxEtcCacheFromUntrustedServer property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcCacheFromUntrustedServer(String value) {
this.proxEtcCacheFromUntrustedServer = value;
}
/**
* Gets the value of the proxEtcCcwsAuthorizationKey property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcCcwsAuthorizationKey() {
return proxEtcCcwsAuthorizationKey;
}
/**
* Sets the value of the proxEtcCcwsAuthorizationKey property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcCcwsAuthorizationKey(String value) {
this.proxEtcCcwsAuthorizationKey = value;
}
/**
* Gets the value of the proxEtcCcwsKeyGenInterval property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcCcwsKeyGenInterval() {
return proxEtcCcwsKeyGenInterval;
}
/**
* Sets the value of the proxEtcCcwsKeyGenInterval property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcCcwsKeyGenInterval(String value) {
this.proxEtcCcwsKeyGenInterval = value;
}
/**
* Gets the value of the proxEtcContinueCustomText property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcContinueCustomText() {
return proxEtcContinueCustomText;
}
/**
* Sets the value of the proxEtcContinueCustomText property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcContinueCustomText(String value) {
this.proxEtcContinueCustomText = value;
}
/**
* Gets the value of the proxEtcContinueTimeout property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcContinueTimeout() {
return proxEtcContinueTimeout;
}
/**
* Sets the value of the proxEtcContinueTimeout property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcContinueTimeout(String value) {
this.proxEtcContinueTimeout = value;
}
/**
* Gets the value of the proxEtcCustomLogFields property.
*
* @return
* possible object is
* {@link ProxEtcCustomLogFields }
*
*/
public ProxEtcCustomLogFields getProxEtcCustomLogFields() {
return proxEtcCustomLogFields;
}
/**
* Sets the value of the proxEtcCustomLogFields property.
*
* @param value
* allowed object is
* {@link ProxEtcCustomLogFields }
*
*/
public void setProxEtcCustomLogFields(ProxEtcCustomLogFields value) {
this.proxEtcCustomLogFields = value;
}
/**
* Gets the value of the proxEtcDefaultMaxAge property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcDefaultMaxAge() {
return proxEtcDefaultMaxAge;
}
/**
* Sets the value of the proxEtcDefaultMaxAge property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcDefaultMaxAge(String value) {
this.proxEtcDefaultMaxAge = value;
}
/**
* Gets the value of the proxEtcDefaultMaxAgeNeg property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcDefaultMaxAgeNeg() {
return proxEtcDefaultMaxAgeNeg;
}
/**
* Sets the value of the proxEtcDefaultMaxAgeNeg property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcDefaultMaxAgeNeg(String value) {
this.proxEtcDefaultMaxAgeNeg = value;
}
/**
* Gets the value of the proxEtcDefaultMaxAgeNoLmt property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcDefaultMaxAgeNoLmt() {
return proxEtcDefaultMaxAgeNoLmt;
}
/**
* Sets the value of the proxEtcDefaultMaxAgeNoLmt property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcDefaultMaxAgeNoLmt(String value) {
this.proxEtcDefaultMaxAgeNoLmt = value;
}
/**
* Gets the value of the proxEtcDevice property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcDevice() {
return proxEtcDevice;
}
/**
* Sets the value of the proxEtcDevice property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcDevice(String value) {
this.proxEtcDevice = value;
}
/**
* Gets the value of the proxEtcDisablePeerDnsFailover property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcDisablePeerDnsFailover() {
return proxEtcDisablePeerDnsFailover;
}
/**
* Sets the value of the proxEtcDisablePeerDnsFailover property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcDisablePeerDnsFailover(String value) {
this.proxEtcDisablePeerDnsFailover = value;
}
/**
* Gets the value of the proxEtcDnsHostTableCacheTime property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcDnsHostTableCacheTime() {
return proxEtcDnsHostTableCacheTime;
}
/**
* Sets the value of the proxEtcDnsHostTableCacheTime property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcDnsHostTableCacheTime(String value) {
this.proxEtcDnsHostTableCacheTime = value;
}
/**
* Gets the value of the proxEtcDnsNegativeCacheTime property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcDnsNegativeCacheTime() {
return proxEtcDnsNegativeCacheTime;
}
/**
* Sets the value of the proxEtcDnsNegativeCacheTime property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcDnsNegativeCacheTime(String value) {
this.proxEtcDnsNegativeCacheTime = value;
}
/**
* Gets the value of the proxEtcDnsPref property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcDnsPref() {
return proxEtcDnsPref;
}
/**
* Sets the value of the proxEtcDnsPref property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcDnsPref(String value) {
this.proxEtcDnsPref = value;
}
/**
* Gets the value of the proxEtcDynamicRecvWinSize property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcDynamicRecvWinSize() {
return proxEtcDynamicRecvWinSize;
}
/**
* Sets the value of the proxEtcDynamicRecvWinSize property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcDynamicRecvWinSize(String value) {
this.proxEtcDynamicRecvWinSize = value;
}
/**
* Gets the value of the proxEtcDynamicSendWinSize property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcDynamicSendWinSize() {
return proxEtcDynamicSendWinSize;
}
/**
* Sets the value of the proxEtcDynamicSendWinSize property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcDynamicSendWinSize(String value) {
this.proxEtcDynamicSendWinSize = value;
}
/**
* Gets the value of the proxEtcErrorPageContactInfo property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcErrorPageContactInfo() {
return proxEtcErrorPageContactInfo;
}
/**
* Sets the value of the proxEtcErrorPageContactInfo property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcErrorPageContactInfo(String value) {
this.proxEtcErrorPageContactInfo = value;
}
/**
* Gets the value of the proxEtcErrorPageCustomText property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcErrorPageCustomText() {
return proxEtcErrorPageCustomText;
}
/**
* Sets the value of the proxEtcErrorPageCustomText property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcErrorPageCustomText(String value) {
this.proxEtcErrorPageCustomText = value;
}
/**
* Gets the value of the proxEtcErrorPageUserAckText property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcErrorPageUserAckText() {
return proxEtcErrorPageUserAckText;
}
/**
* Sets the value of the proxEtcErrorPageUserAckText property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcErrorPageUserAckText(String value) {
this.proxEtcErrorPageUserAckText = value;
}
/**
* Gets the value of the proxEtcErrorPageEmailAddr property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcErrorPageEmailAddr() {
return proxEtcErrorPageEmailAddr;
}
/**
* Sets the value of the proxEtcErrorPageEmailAddr property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcErrorPageEmailAddr(String value) {
this.proxEtcErrorPageEmailAddr = value;
}
/**
* Gets the value of the proxEtcErrorPageLogoUrl property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcErrorPageLogoUrl() {
return proxEtcErrorPageLogoUrl;
}
/**
* Sets the value of the proxEtcErrorPageLogoUrl property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcErrorPageLogoUrl(String value) {
this.proxEtcErrorPageLogoUrl = value;
}
/**
* Gets the value of the proxEtcErrorPageRedirectionEnabled property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcErrorPageRedirectionEnabled() {
return proxEtcErrorPageRedirectionEnabled;
}
/**
* Sets the value of the proxEtcErrorPageRedirectionEnabled property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcErrorPageRedirectionEnabled(String value) {
this.proxEtcErrorPageRedirectionEnabled = value;
}
/**
* Gets the value of the proxEtcErrorPageRedirectionUrl property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcErrorPageRedirectionUrl() {
return proxEtcErrorPageRedirectionUrl;
}
/**
* Sets the value of the proxEtcErrorPageRedirectionUrl property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcErrorPageRedirectionUrl(String value) {
this.proxEtcErrorPageRedirectionUrl = value;
}
/**
* Gets the value of the proxEtcErrorPageRedirectionUrlParams property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcErrorPageRedirectionUrlParams() {
return proxEtcErrorPageRedirectionUrlParams;
}
/**
* Sets the value of the proxEtcErrorPageRedirectionUrlParams property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcErrorPageRedirectionUrlParams(String value) {
this.proxEtcErrorPageRedirectionUrlParams = value;
}
/**
* Gets the value of the proxEtcForwardedFor property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcForwardedFor() {
return proxEtcForwardedFor;
}
/**
* Sets the value of the proxEtcForwardedFor property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcForwardedFor(String value) {
this.proxEtcForwardedFor = value;
}
/**
* Gets the value of the proxEtcFtpEnabled property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcFtpEnabled() {
return proxEtcFtpEnabled;
}
/**
* Sets the value of the proxEtcFtpEnabled property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcFtpEnabled(String value) {
this.proxEtcFtpEnabled = value;
}
/**
* Gets the value of the proxEtcFtpProxyPort property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcFtpProxyPort() {
return proxEtcFtpProxyPort;
}
/**
* Sets the value of the proxEtcFtpProxyPort property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcFtpProxyPort(String value) {
this.proxEtcFtpProxyPort = value;
}
/**
* Gets the value of the proxEtcFtpNativePassivePort property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcFtpNativePassivePort() {
return proxEtcFtpNativePassivePort;
}
/**
* Sets the value of the proxEtcFtpNativePassivePort property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcFtpNativePassivePort(String value) {
this.proxEtcFtpNativePassivePort = value;
}
/**
* Gets the value of the proxEtcFtpNativeActivePort property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcFtpNativeActivePort() {
return proxEtcFtpNativeActivePort;
}
/**
* Sets the value of the proxEtcFtpNativeActivePort property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcFtpNativeActivePort(String value) {
this.proxEtcFtpNativeActivePort = value;
}
/**
* Gets the value of the proxEtcFtpAuthFormat property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcFtpAuthFormat() {
return proxEtcFtpAuthFormat;
}
/**
* Sets the value of the proxEtcFtpAuthFormat property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcFtpAuthFormat(String value) {
this.proxEtcFtpAuthFormat = value;
}
/**
* Gets the value of the proxEtcFtpServerIpSpoofing property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcFtpServerIpSpoofing() {
return proxEtcFtpServerIpSpoofing;
}
/**
* Sets the value of the proxEtcFtpServerIpSpoofing property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcFtpServerIpSpoofing(String value) {
this.proxEtcFtpServerIpSpoofing = value;
}
/**
* Gets the value of the proxEtcFtpCachingEnabled property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcFtpCachingEnabled() {
return proxEtcFtpCachingEnabled;
}
/**
* Sets the value of the proxEtcFtpCachingEnabled property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcFtpCachingEnabled(String value) {
this.proxEtcFtpCachingEnabled = value;
}
/**
* Gets the value of the proxEtcFtpCacheSize property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcFtpCacheSize() {
return proxEtcFtpCacheSize;
}
/**
* Sets the value of the proxEtcFtpCacheSize property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcFtpCacheSize(String value) {
this.proxEtcFtpCacheSize = value;
}
/**
* Gets the value of the proxEtcFtpUseServerWelcome property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcFtpUseServerWelcome() {
return proxEtcFtpUseServerWelcome;
}
/**
* Sets the value of the proxEtcFtpUseServerWelcome property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcFtpUseServerWelcome(String value) {
this.proxEtcFtpUseServerWelcome = value;
}
/**
* Gets the value of the proxEtcFtpWelcomeBanner property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcFtpWelcomeBanner() {
return proxEtcFtpWelcomeBanner;
}
/**
* Sets the value of the proxEtcFtpWelcomeBanner property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcFtpWelcomeBanner(String value) {
this.proxEtcFtpWelcomeBanner = value;
}
/**
* Gets the value of the proxEtcFtpMaxClientControlConnTime property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcFtpMaxClientControlConnTime() {
return proxEtcFtpMaxClientControlConnTime;
}
/**
* Sets the value of the proxEtcFtpMaxClientControlConnTime property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcFtpMaxClientControlConnTime(String value) {
this.proxEtcFtpMaxClientControlConnTime = value;
}
/**
* Gets the value of the proxEtcFtpMaxServerControlConnTime property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcFtpMaxServerControlConnTime() {
return proxEtcFtpMaxServerControlConnTime;
}
/**
* Sets the value of the proxEtcFtpMaxServerControlConnTime property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcFtpMaxServerControlConnTime(String value) {
this.proxEtcFtpMaxServerControlConnTime = value;
}
/**
* Gets the value of the proxEtcFtpMaxClientDataConnTime property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcFtpMaxClientDataConnTime() {
return proxEtcFtpMaxClientDataConnTime;
}
/**
* Sets the value of the proxEtcFtpMaxClientDataConnTime property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcFtpMaxClientDataConnTime(String value) {
this.proxEtcFtpMaxClientDataConnTime = value;
}
/**
* Gets the value of the proxEtcFtpMaxServerDataConnTime property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcFtpMaxServerDataConnTime() {
return proxEtcFtpMaxServerDataConnTime;
}
/**
* Sets the value of the proxEtcFtpMaxServerDataConnTime property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcFtpMaxServerDataConnTime(String value) {
this.proxEtcFtpMaxServerDataConnTime = value;
}
/**
* Gets the value of the proxEtcFtpMaxPathSize property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcFtpMaxPathSize() {
return proxEtcFtpMaxPathSize;
}
/**
* Sets the value of the proxEtcFtpMaxPathSize property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcFtpMaxPathSize(String value) {
this.proxEtcFtpMaxPathSize = value;
}
/**
* Gets the value of the proxEtcFtpEunLanguage property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcFtpEunLanguage() {
return proxEtcFtpEunLanguage;
}
/**
* Sets the value of the proxEtcFtpEunLanguage property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcFtpEunLanguage(String value) {
this.proxEtcFtpEunLanguage = value;
}
/**
* Gets the value of the proxEtcFtpEunMessage property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcFtpEunMessage() {
return proxEtcFtpEunMessage;
}
/**
* Sets the value of the proxEtcFtpEunMessage property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcFtpEunMessage(String value) {
this.proxEtcFtpEunMessage = value;
}
/**
* Gets the value of the proxEtcGuestRealmName property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcGuestRealmName() {
return proxEtcGuestRealmName;
}
/**
* Sets the value of the proxEtcGuestRealmName property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcGuestRealmName(String value) {
this.proxEtcGuestRealmName = value;
}
/**
* Gets the value of the proxEtcGuestUserNameOption property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcGuestUserNameOption() {
return proxEtcGuestUserNameOption;
}
/**
* Sets the value of the proxEtcGuestUserNameOption property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcGuestUserNameOption(String value) {
this.proxEtcGuestUserNameOption = value;
}
/**
* Gets the value of the proxEtcHealthChecksDefault property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcHealthChecksDefault() {
return proxEtcHealthChecksDefault;
}
/**
* Sets the value of the proxEtcHealthChecksDefault property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcHealthChecksDefault(String value) {
this.proxEtcHealthChecksDefault = value;
}
/**
* Gets the value of the proxEtcHideUserName property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcHideUserName() {
return proxEtcHideUserName;
}
/**
* Sets the value of the proxEtcHideUserName property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcHideUserName(String value) {
this.proxEtcHideUserName = value;
}
/**
* Gets the value of the proxEtcHttpBindAddresses property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcHttpBindAddresses() {
return proxEtcHttpBindAddresses;
}
/**
* Sets the value of the proxEtcHttpBindAddresses property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcHttpBindAddresses(String value) {
this.proxEtcHttpBindAddresses = value;
}
/**
* Gets the value of the proxEtcHttpsClientCertAction property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcHttpsClientCertAction() {
return proxEtcHttpsClientCertAction;
}
/**
* Sets the value of the proxEtcHttpsClientCertAction property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcHttpsClientCertAction(String value) {
this.proxEtcHttpsClientCertAction = value;
}
/**
* Gets the value of the proxEtcHttpsSessionEuaAction property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcHttpsSessionEuaAction() {
return proxEtcHttpsSessionEuaAction;
}
/**
* Sets the value of the proxEtcHttpsSessionEuaAction property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcHttpsSessionEuaAction(String value) {
this.proxEtcHttpsSessionEuaAction = value;
}
/**
* Gets the value of the proxEtcHttpsUriLogStyle property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcHttpsUriLogStyle() {
return proxEtcHttpsUriLogStyle;
}
/**
* Sets the value of the proxEtcHttpsUriLogStyle property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcHttpsUriLogStyle(String value) {
this.proxEtcHttpsUriLogStyle = value;
}
/**
* Gets the value of the proxEtcIcapMaxConnections property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcIcapMaxConnections() {
return proxEtcIcapMaxConnections;
}
/**
* Sets the value of the proxEtcIcapMaxConnections property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcIcapMaxConnections(String value) {
this.proxEtcIcapMaxConnections = value;
}
/**
* Gets the value of the proxEtcIgnoreNoCache property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcIgnoreNoCache() {
return proxEtcIgnoreNoCache;
}
/**
* Sets the value of the proxEtcIgnoreNoCache property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcIgnoreNoCache(String value) {
this.proxEtcIgnoreNoCache = value;
}
/**
* Gets the value of the proxEtcIgnoreReloadTime property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcIgnoreReloadTime() {
return proxEtcIgnoreReloadTime;
}
/**
* Sets the value of the proxEtcIgnoreReloadTime property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcIgnoreReloadTime(String value) {
this.proxEtcIgnoreReloadTime = value;
}
/**
* Gets the value of the proxEtcBasicAuthCharset property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcBasicAuthCharset() {
return proxEtcBasicAuthCharset;
}
/**
* Sets the value of the proxEtcBasicAuthCharset property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcBasicAuthCharset(String value) {
this.proxEtcBasicAuthCharset = value;
}
/**
* Gets the value of the proxEtcLogUnauthUser property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcLogUnauthUser() {
return proxEtcLogUnauthUser;
}
/**
* Sets the value of the proxEtcLogUnauthUser property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcLogUnauthUser(String value) {
this.proxEtcLogUnauthUser = value;
}
/**
* Gets the value of the proxEtcMalwareScanAllContent property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcMalwareScanAllContent() {
return proxEtcMalwareScanAllContent;
}
/**
* Sets the value of the proxEtcMalwareScanAllContent property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcMalwareScanAllContent(String value) {
this.proxEtcMalwareScanAllContent = value;
}
/**
* Gets the value of the proxEtcMaxAckTtl property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcMaxAckTtl() {
return proxEtcMaxAckTtl;
}
/**
* Sets the value of the proxEtcMaxAckTtl property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcMaxAckTtl(String value) {
this.proxEtcMaxAckTtl = value;
}
/**
* Gets the value of the proxEtcMaxAuthCacheEntries property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcMaxAuthCacheEntries() {
return proxEtcMaxAuthCacheEntries;
}
/**
* Sets the value of the proxEtcMaxAuthCacheEntries property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcMaxAuthCacheEntries(String value) {
this.proxEtcMaxAuthCacheEntries = value;
}
/**
* Gets the value of the proxEtcMaxAwaitingClientTime property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcMaxAwaitingClientTime() {
return proxEtcMaxAwaitingClientTime;
}
/**
* Sets the value of the proxEtcMaxAwaitingClientTime property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcMaxAwaitingClientTime(String value) {
this.proxEtcMaxAwaitingClientTime = value;
}
/**
* Gets the value of the proxEtcMaxClientIdleConnTime property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcMaxClientIdleConnTime() {
return proxEtcMaxClientIdleConnTime;
}
/**
* Sets the value of the proxEtcMaxClientIdleConnTime property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcMaxClientIdleConnTime(String value) {
this.proxEtcMaxClientIdleConnTime = value;
}
/**
* Gets the value of the proxEtcMaxFailedPeerRetrySec property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcMaxFailedPeerRetrySec() {
return proxEtcMaxFailedPeerRetrySec;
}
/**
* Sets the value of the proxEtcMaxFailedPeerRetrySec property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcMaxFailedPeerRetrySec(String value) {
this.proxEtcMaxFailedPeerRetrySec = value;
}
/**
* Gets the value of the proxEtcMaxIdleServPconns property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcMaxIdleServPconns() {
return proxEtcMaxIdleServPconns;
}
/**
* Sets the value of the proxEtcMaxIdleServPconns property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcMaxIdleServPconns(String value) {
this.proxEtcMaxIdleServPconns = value;
}
/**
* Gets the value of the proxEtcMaxIpAckIdle property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcMaxIpAckIdle() {
return proxEtcMaxIpAckIdle;
}
/**
* Sets the value of the proxEtcMaxIpAckIdle property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcMaxIpAckIdle(String value) {
this.proxEtcMaxIpAckIdle = value;
}
/**
* Gets the value of the proxEtcMaxIpToUserIdle property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcMaxIpToUserIdle() {
return proxEtcMaxIpToUserIdle;
}
/**
* Sets the value of the proxEtcMaxIpToUserIdle property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcMaxIpToUserIdle(String value) {
this.proxEtcMaxIpToUserIdle = value;
}
/**
* Gets the value of the proxEtcMaxServerRetries property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcMaxServerRetries() {
return proxEtcMaxServerRetries;
}
/**
* Sets the value of the proxEtcMaxServerRetries property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcMaxServerRetries(String value) {
this.proxEtcMaxServerRetries = value;
}
/**
* Gets the value of the proxEtcMaxServPconnTime property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcMaxServPconnTime() {
return proxEtcMaxServPconnTime;
}
/**
* Sets the value of the proxEtcMaxServPconnTime property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcMaxServPconnTime(String value) {
this.proxEtcMaxServPconnTime = value;
}
/**
* Gets the value of the proxEtcMaxTransparentAuthTtl property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcMaxTransparentAuthTtl() {
return proxEtcMaxTransparentAuthTtl;
}
/**
* Sets the value of the proxEtcMaxTransparentAuthTtl property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcMaxTransparentAuthTtl(String value) {
this.proxEtcMaxTransparentAuthTtl = value;
}
/**
* Gets the value of the proxEtcMaxMachineCredAuthTtl property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcMaxMachineCredAuthTtl() {
return proxEtcMaxMachineCredAuthTtl;
}
/**
* Sets the value of the proxEtcMaxMachineCredAuthTtl property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcMaxMachineCredAuthTtl(String value) {
this.proxEtcMaxMachineCredAuthTtl = value;
}
/**
* Gets the value of the proxEtcMaxBrokenAuthTtl property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcMaxBrokenAuthTtl() {
return proxEtcMaxBrokenAuthTtl;
}
/**
* Sets the value of the proxEtcMaxBrokenAuthTtl property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcMaxBrokenAuthTtl(String value) {
this.proxEtcMaxBrokenAuthTtl = value;
}
/**
* Gets the value of the proxEtcMcafeeRequestPoolSize property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcMcafeeRequestPoolSize() {
return proxEtcMcafeeRequestPoolSize;
}
/**
* Sets the value of the proxEtcMcafeeRequestPoolSize property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcMcafeeRequestPoolSize(String value) {
this.proxEtcMcafeeRequestPoolSize = value;
}
/**
* Gets the value of the proxEtcSophosRequestPoolSize property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcSophosRequestPoolSize() {
return proxEtcSophosRequestPoolSize;
}
/**
* Sets the value of the proxEtcSophosRequestPoolSize property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcSophosRequestPoolSize(String value) {
this.proxEtcSophosRequestPoolSize = value;
}
/**
* Gets the value of the proxEtcMinActivitySecs property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcMinActivitySecs() {
return proxEtcMinActivitySecs;
}
/**
* Sets the value of the proxEtcMinActivitySecs property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcMinActivitySecs(String value) {
this.proxEtcMinActivitySecs = value;
}
/**
* Gets the value of the proxEtcMinFailedPeerRetrySec property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcMinFailedPeerRetrySec() {
return proxEtcMinFailedPeerRetrySec;
}
/**
* Sets the value of the proxEtcMinFailedPeerRetrySec property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcMinFailedPeerRetrySec(String value) {
this.proxEtcMinFailedPeerRetrySec = value;
}
/**
* Gets the value of the proxEtcPassForwardedFor property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcPassForwardedFor() {
return proxEtcPassForwardedFor;
}
/**
* Sets the value of the proxEtcPassForwardedFor property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcPassForwardedFor(String value) {
this.proxEtcPassForwardedFor = value;
}
/**
* Gets the value of the proxEtcPassProxyAuth property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcPassProxyAuth() {
return proxEtcPassProxyAuth;
}
/**
* Sets the value of the proxEtcPassProxyAuth property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcPassProxyAuth(String value) {
this.proxEtcPassProxyAuth = value;
}
/**
* Gets the value of the proxEtcPreventMultipleLogin property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcPreventMultipleLogin() {
return proxEtcPreventMultipleLogin;
}
/**
* Sets the value of the proxEtcPreventMultipleLogin property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcPreventMultipleLogin(String value) {
this.proxEtcPreventMultipleLogin = value;
}
/**
* Gets the value of the proxEtcPrintStaleFd property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcPrintStaleFd() {
return proxEtcPrintStaleFd;
}
/**
* Sets the value of the proxEtcPrintStaleFd property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcPrintStaleFd(String value) {
this.proxEtcPrintStaleFd = value;
}
/**
* Gets the value of the proxEtcProxyAuthorizationRealm property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcProxyAuthorizationRealm() {
return proxEtcProxyAuthorizationRealm;
}
/**
* Sets the value of the proxEtcProxyAuthorizationRealm property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcProxyAuthorizationRealm(String value) {
this.proxEtcProxyAuthorizationRealm = value;
}
/**
* Gets the value of the proxEtcProxymode property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcProxymode() {
return proxEtcProxymode;
}
/**
* Sets the value of the proxEtcProxymode property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcProxymode(String value) {
this.proxEtcProxymode = value;
}
/**
* Gets the value of the proxEtcProxyspoofing property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcProxyspoofing() {
return proxEtcProxyspoofing;
}
/**
* Sets the value of the proxEtcProxyspoofing property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcProxyspoofing(String value) {
this.proxEtcProxyspoofing = value;
}
/**
* Gets the value of the proxEtcPort property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcPort() {
return proxEtcPort;
}
/**
* Sets the value of the proxEtcPort property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcPort(String value) {
this.proxEtcPort = value;
}
/**
* Gets the value of the proxEtcReAuthOnRequestDenied property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcReAuthOnRequestDenied() {
return proxEtcReAuthOnRequestDenied;
}
/**
* Sets the value of the proxEtcReAuthOnRequestDenied property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcReAuthOnRequestDenied(String value) {
this.proxEtcReAuthOnRequestDenied = value;
}
/**
* Gets the value of the proxEtcReloadToMaxAge property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcReloadToMaxAge() {
return proxEtcReloadToMaxAge;
}
/**
* Sets the value of the proxEtcReloadToMaxAge property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcReloadToMaxAge(String value) {
this.proxEtcReloadToMaxAge = value;
}
/**
* Gets the value of the proxEtcReplaceIpWithForwardedFor property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcReplaceIpWithForwardedFor() {
return proxEtcReplaceIpWithForwardedFor;
}
/**
* Sets the value of the proxEtcReplaceIpWithForwardedFor property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcReplaceIpWithForwardedFor(String value) {
this.proxEtcReplaceIpWithForwardedFor = value;
}
/**
* Gets the value of the proxEtcRetryDnsAbbrev property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcRetryDnsAbbrev() {
return proxEtcRetryDnsAbbrev;
}
/**
* Sets the value of the proxEtcRetryDnsAbbrev property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcRetryDnsAbbrev(String value) {
this.proxEtcRetryDnsAbbrev = value;
}
/**
* Gets the value of the proxEtcAuthRedirectPort property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcAuthRedirectPort() {
return proxEtcAuthRedirectPort;
}
/**
* Sets the value of the proxEtcAuthRedirectPort property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcAuthRedirectPort(String value) {
this.proxEtcAuthRedirectPort = value;
}
/**
* Gets the value of the proxEtcSendNegotiateHeader property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcSendNegotiateHeader() {
return proxEtcSendNegotiateHeader;
}
/**
* Sets the value of the proxEtcSendNegotiateHeader property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcSendNegotiateHeader(String value) {
this.proxEtcSendNegotiateHeader = value;
}
/**
* Gets the value of the proxEtcSendSize property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcSendSize() {
return proxEtcSendSize;
}
/**
* Sets the value of the proxEtcSendSize property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcSendSize(String value) {
this.proxEtcSendSize = value;
}
/**
* Gets the value of the proxEtcServerNameExpansion property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcServerNameExpansion() {
return proxEtcServerNameExpansion;
}
/**
* Sets the value of the proxEtcServerNameExpansion property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcServerNameExpansion(String value) {
this.proxEtcServerNameExpansion = value;
}
/**
* Gets the value of the proxEtcSnmpPort property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcSnmpPort() {
return proxEtcSnmpPort;
}
/**
* Sets the value of the proxEtcSnmpPort property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcSnmpPort(String value) {
this.proxEtcSnmpPort = value;
}
/**
* Gets the value of the proxEtcSocksProxyEnabled property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcSocksProxyEnabled() {
return proxEtcSocksProxyEnabled;
}
/**
* Sets the value of the proxEtcSocksProxyEnabled property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcSocksProxyEnabled(String value) {
this.proxEtcSocksProxyEnabled = value;
}
/**
* Gets the value of the proxEtcSocksProxyNegotiationTimeout property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcSocksProxyNegotiationTimeout() {
return proxEtcSocksProxyNegotiationTimeout;
}
/**
* Sets the value of the proxEtcSocksProxyNegotiationTimeout property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcSocksProxyNegotiationTimeout(String value) {
this.proxEtcSocksProxyNegotiationTimeout = value;
}
/**
* Gets the value of the proxEtcSocksProxyUdpTunnelTimeout property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcSocksProxyUdpTunnelTimeout() {
return proxEtcSocksProxyUdpTunnelTimeout;
}
/**
* Sets the value of the proxEtcSocksProxyUdpTunnelTimeout property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcSocksProxyUdpTunnelTimeout(String value) {
this.proxEtcSocksProxyUdpTunnelTimeout = value;
}
/**
* Gets the value of the proxEtcSocksProxyPorts property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcSocksProxyPorts() {
return proxEtcSocksProxyPorts;
}
/**
* Sets the value of the proxEtcSocksProxyPorts property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcSocksProxyPorts(String value) {
this.proxEtcSocksProxyPorts = value;
}
/**
* Gets the value of the proxEtcSocksProxyUdpRequestPorts property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcSocksProxyUdpRequestPorts() {
return proxEtcSocksProxyUdpRequestPorts;
}
/**
* Sets the value of the proxEtcSocksProxyUdpRequestPorts property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcSocksProxyUdpRequestPorts(String value) {
this.proxEtcSocksProxyUdpRequestPorts = value;
}
/**
* Gets the value of the proxEtcSseQueryTimeout property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcSseQueryTimeout() {
return proxEtcSseQueryTimeout;
}
/**
* Sets the value of the proxEtcSseQueryTimeout property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcSseQueryTimeout(String value) {
this.proxEtcSseQueryTimeout = value;
}
/**
* Gets the value of the proxEtcSslPort property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcSslPort() {
return proxEtcSslPort;
}
/**
* Sets the value of the proxEtcSslPort property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcSslPort(String value) {
this.proxEtcSslPort = value;
}
/**
* Gets the value of the proxEtcEnableSni property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcEnableSni() {
return proxEtcEnableSni;
}
/**
* Sets the value of the proxEtcEnableSni property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcEnableSni(String value) {
this.proxEtcEnableSni = value;
}
/**
* Gets the value of the proxEtcEnableSessReuse property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcEnableSessReuse() {
return proxEtcEnableSessReuse;
}
/**
* Sets the value of the proxEtcEnableSessReuse property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcEnableSessReuse(String value) {
this.proxEtcEnableSessReuse = value;
}
/**
* Gets the value of the proxEtcSslParseTimeout property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcSslParseTimeout() {
return proxEtcSslParseTimeout;
}
/**
* Sets the value of the proxEtcSslParseTimeout property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcSslParseTimeout(String value) {
this.proxEtcSslParseTimeout = value;
}
/**
* Gets the value of the proxEtcCertificateCacheSize property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcCertificateCacheSize() {
return proxEtcCertificateCacheSize;
}
/**
* Sets the value of the proxEtcCertificateCacheSize property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcCertificateCacheSize(String value) {
this.proxEtcCertificateCacheSize = value;
}
/**
* Gets the value of the proxEtcSslSessionExpiry property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcSslSessionExpiry() {
return proxEtcSslSessionExpiry;
}
/**
* Sets the value of the proxEtcSslSessionExpiry property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcSslSessionExpiry(String value) {
this.proxEtcSslSessionExpiry = value;
}
/**
* Gets the value of the proxEtcMaxSslSrvSessions property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcMaxSslSrvSessions() {
return proxEtcMaxSslSrvSessions;
}
/**
* Sets the value of the proxEtcMaxSslSrvSessions property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcMaxSslSrvSessions(String value) {
this.proxEtcMaxSslSrvSessions = value;
}
/**
* Gets the value of the proxEtcMaxSslClntSessions property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcMaxSslClntSessions() {
return proxEtcMaxSslClntSessions;
}
/**
* Sets the value of the proxEtcMaxSslClntSessions property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcMaxSslClntSessions(String value) {
this.proxEtcMaxSslClntSessions = value;
}
/**
* Gets the value of the proxEtcSuppressRequestVia property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcSuppressRequestVia() {
return proxEtcSuppressRequestVia;
}
/**
* Sets the value of the proxEtcSuppressRequestVia property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcSuppressRequestVia(String value) {
this.proxEtcSuppressRequestVia = value;
}
/**
* Gets the value of the proxEtcSuppressResponseVia property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcSuppressResponseVia() {
return proxEtcSuppressResponseVia;
}
/**
* Sets the value of the proxEtcSuppressResponseVia property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcSuppressResponseVia(String value) {
this.proxEtcSuppressResponseVia = value;
}
/**
* Gets the value of the proxEtcTcpBufCliRcvBin property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcTcpBufCliRcvBin() {
return proxEtcTcpBufCliRcvBin;
}
/**
* Sets the value of the proxEtcTcpBufCliRcvBin property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcTcpBufCliRcvBin(String value) {
this.proxEtcTcpBufCliRcvBin = value;
}
/**
* Gets the value of the proxEtcTcpBufCliSndBin property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcTcpBufCliSndBin() {
return proxEtcTcpBufCliSndBin;
}
/**
* Sets the value of the proxEtcTcpBufCliSndBin property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcTcpBufCliSndBin(String value) {
this.proxEtcTcpBufCliSndBin = value;
}
/**
* Gets the value of the proxEtcTcpBufRcvBpsFact property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcTcpBufRcvBpsFact() {
return proxEtcTcpBufRcvBpsFact;
}
/**
* Sets the value of the proxEtcTcpBufRcvBpsFact property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcTcpBufRcvBpsFact(String value) {
this.proxEtcTcpBufRcvBpsFact = value;
}
/**
* Gets the value of the proxEtcTcpBufSndBpsFact property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcTcpBufSndBpsFact() {
return proxEtcTcpBufSndBpsFact;
}
/**
* Sets the value of the proxEtcTcpBufSndBpsFact property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcTcpBufSndBpsFact(String value) {
this.proxEtcTcpBufSndBpsFact = value;
}
/**
* Gets the value of the proxEtcTcpBufSrvRcvBin property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcTcpBufSrvRcvBin() {
return proxEtcTcpBufSrvRcvBin;
}
/**
* Sets the value of the proxEtcTcpBufSrvRcvBin property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcTcpBufSrvRcvBin(String value) {
this.proxEtcTcpBufSrvRcvBin = value;
}
/**
* Gets the value of the proxEtcTcpBufSrvSndBin property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcTcpBufSrvSndBin() {
return proxEtcTcpBufSrvSndBin;
}
/**
* Sets the value of the proxEtcTcpBufSrvSndBin property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcTcpBufSrvSndBin(String value) {
this.proxEtcTcpBufSrvSndBin = value;
}
/**
* Gets the value of the proxEtcThrottleCacheContent property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcThrottleCacheContent() {
return proxEtcThrottleCacheContent;
}
/**
* Sets the value of the proxEtcThrottleCacheContent property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcThrottleCacheContent(String value) {
this.proxEtcThrottleCacheContent = value;
}
/**
* Gets the value of the proxEtcTrackFileName property.
*
* @return
* possible object is
* {@link ProxEtcTrackFileName }
*
*/
public ProxEtcTrackFileName getProxEtcTrackFileName() {
return proxEtcTrackFileName;
}
/**
* Sets the value of the proxEtcTrackFileName property.
*
* @param value
* allowed object is
* {@link ProxEtcTrackFileName }
*
*/
public void setProxEtcTrackFileName(ProxEtcTrackFileName value) {
this.proxEtcTrackFileName = value;
}
/**
* Gets the value of the proxEtcTrackTime property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcTrackTime() {
return proxEtcTrackTime;
}
/**
* Sets the value of the proxEtcTrackTime property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcTrackTime(String value) {
this.proxEtcTrackTime = value;
}
/**
* Gets the value of the proxEtcTransparentAuthServer property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcTransparentAuthServer() {
return proxEtcTransparentAuthServer;
}
/**
* Sets the value of the proxEtcTransparentAuthServer property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcTransparentAuthServer(String value) {
this.proxEtcTransparentAuthServer = value;
}
/**
* Gets the value of the proxEtcTunnelPort property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcTunnelPort() {
return proxEtcTunnelPort;
}
/**
* Sets the value of the proxEtcTunnelPort property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcTunnelPort(String value) {
this.proxEtcTunnelPort = value;
}
/**
* Gets the value of the proxEtcUseFtpActiveMode property.
*
* @return
* possible object is
* {@link ProxEtcUseFtpActiveMode }
*
*/
public ProxEtcUseFtpActiveMode getProxEtcUseFtpActiveMode() {
return proxEtcUseFtpActiveMode;
}
/**
* Sets the value of the proxEtcUseFtpActiveMode property.
*
* @param value
* allowed object is
* {@link ProxEtcUseFtpActiveMode }
*
*/
public void setProxEtcUseFtpActiveMode(ProxEtcUseFtpActiveMode value) {
this.proxEtcUseFtpActiveMode = value;
}
/**
* Gets the value of the proxEtcUseFtpActivePort property.
*
* @return
* possible object is
* {@link ProxEtcUseFtpActivePort }
*
*/
public ProxEtcUseFtpActivePort getProxEtcUseFtpActivePort() {
return proxEtcUseFtpActivePort;
}
/**
* Sets the value of the proxEtcUseFtpActivePort property.
*
* @param value
* allowed object is
* {@link ProxEtcUseFtpActivePort }
*
*/
public void setProxEtcUseFtpActivePort(ProxEtcUseFtpActivePort value) {
this.proxEtcUseFtpActivePort = value;
}
/**
* Gets the value of the proxEtcUseFtpPassivePort property.
*
* @return
* possible object is
* {@link ProxEtcUseFtpPassivePort }
*
*/
public ProxEtcUseFtpPassivePort getProxEtcUseFtpPassivePort() {
return proxEtcUseFtpPassivePort;
}
/**
* Sets the value of the proxEtcUseFtpPassivePort property.
*
* @param value
* allowed object is
* {@link ProxEtcUseFtpPassivePort }
*
*/
public void setProxEtcUseFtpPassivePort(ProxEtcUseFtpPassivePort value) {
this.proxEtcUseFtpPassivePort = value;
}
/**
* Gets the value of the proxEtcUseL2ForwardAndRedir property.
*
* @return
* possible object is
* {@link ProxEtcUseL2ForwardAndRedir }
*
*/
public ProxEtcUseL2ForwardAndRedir getProxEtcUseL2ForwardAndRedir() {
return proxEtcUseL2ForwardAndRedir;
}
/**
* Sets the value of the proxEtcUseL2ForwardAndRedir property.
*
* @param value
* allowed object is
* {@link ProxEtcUseL2ForwardAndRedir }
*
*/
public void setProxEtcUseL2ForwardAndRedir(ProxEtcUseL2ForwardAndRedir value) {
this.proxEtcUseL2ForwardAndRedir = value;
}
/**
* Gets the value of the proxEtcUseOriginalDest property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcUseOriginalDest() {
return proxEtcUseOriginalDest;
}
/**
* Sets the value of the proxEtcUseOriginalDest property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcUseOriginalDest(String value) {
this.proxEtcUseOriginalDest = value;
}
/**
* Gets the value of the proxEtcUseSecureClientAuth property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcUseSecureClientAuth() {
return proxEtcUseSecureClientAuth;
}
/**
* Sets the value of the proxEtcUseSecureClientAuth property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcUseSecureClientAuth(String value) {
this.proxEtcUseSecureClientAuth = value;
}
/**
* Gets the value of the proxEtcUserAckTrackingMethod property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcUserAckTrackingMethod() {
return proxEtcUserAckTrackingMethod;
}
/**
* Sets the value of the proxEtcUserAckTrackingMethod property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcUserAckTrackingMethod(String value) {
this.proxEtcUserAckTrackingMethod = value;
}
/**
* Gets the value of the proxEtcMusAsaSettings property.
*
* @return
* possible object is
* {@link ProxEtcMusAsaSettings }
*
*/
public ProxEtcMusAsaSettings getProxEtcMusAsaSettings() {
return proxEtcMusAsaSettings;
}
/**
* Sets the value of the proxEtcMusAsaSettings property.
*
* @param value
* allowed object is
* {@link ProxEtcMusAsaSettings }
*
*/
public void setProxEtcMusAsaSettings(ProxEtcMusAsaSettings value) {
this.proxEtcMusAsaSettings = value;
}
/**
* Gets the value of the proxEtcMusIpRange property.
*
* @return
* possible object is
* {@link ProxEtcMusIpRange }
*
*/
public ProxEtcMusIpRange getProxEtcMusIpRange() {
return proxEtcMusIpRange;
}
/**
* Sets the value of the proxEtcMusIpRange property.
*
* @param value
* allowed object is
* {@link ProxEtcMusIpRange }
*
*/
public void setProxEtcMusIpRange(ProxEtcMusIpRange value) {
this.proxEtcMusIpRange = value;
}
/**
* Gets the value of the proxEtcWebrootBodyScanDisabled property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxEtcWebrootBodyScanDisabled() {
return proxEtcWebrootBodyScanDisabled;
}
/**
* Sets the value of the proxEtcWebrootBodyScanDisabled property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxEtcWebrootBodyScanDisabled(String value) {
this.proxEtcWebrootBodyScanDisabled = value;
}
/**
* Gets the value of the systemNetworkUseManagementForProxy property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getSystemNetworkUseManagementForProxy() {
return systemNetworkUseManagementForProxy;
}
/**
* Sets the value of the systemNetworkUseManagementForProxy property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setSystemNetworkUseManagementForProxy(String value) {
this.systemNetworkUseManagementForProxy = value;
}
/**
* Gets the value of the systemNetworkPathMtuDiscovery property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getSystemNetworkPathMtuDiscovery() {
return systemNetworkPathMtuDiscovery;
}
/**
* Sets the value of the systemNetworkPathMtuDiscovery property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setSystemNetworkPathMtuDiscovery(String value) {
this.systemNetworkPathMtuDiscovery = value;
}
/**
* Gets the value of the systemPacketTrace property.
*
* @return
* possible object is
* {@link SystemPacketTrace }
*
*/
public SystemPacketTrace getSystemPacketTrace() {
return systemPacketTrace;
}
/**
* Sets the value of the systemPacketTrace property.
*
* @param value
* allowed object is
* {@link SystemPacketTrace }
*
*/
public void setSystemPacketTrace(SystemPacketTrace value) {
this.systemPacketTrace = value;
}
/**
* Gets the value of the trafmonBlacklist property.
*
* @return
* possible object is
* {@link TrafmonBlacklist }
*
*/
public TrafmonBlacklist getTrafmonBlacklist() {
return trafmonBlacklist;
}
/**
* Sets the value of the trafmonBlacklist property.
*
* @param value
* allowed object is
* {@link TrafmonBlacklist }
*
*/
public void setTrafmonBlacklist(TrafmonBlacklist value) {
this.trafmonBlacklist = value;
}
/**
* Gets the value of the trafmonConfigDnsSnoopEnabled property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getTrafmonConfigDnsSnoopEnabled() {
return trafmonConfigDnsSnoopEnabled;
}
/**
* Sets the value of the trafmonConfigDnsSnoopEnabled property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setTrafmonConfigDnsSnoopEnabled(String value) {
this.trafmonConfigDnsSnoopEnabled = value;
}
/**
* Gets the value of the trafmonConfigTmAdditionalPorts property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getTrafmonConfigTmAdditionalPorts() {
return trafmonConfigTmAdditionalPorts;
}
/**
* Sets the value of the trafmonConfigTmAdditionalPorts property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setTrafmonConfigTmAdditionalPorts(String value) {
this.trafmonConfigTmAdditionalPorts = value;
}
/**
* Gets the value of the trafmonConfigTmBlacklistEnabled property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getTrafmonConfigTmBlacklistEnabled() {
return trafmonConfigTmBlacklistEnabled;
}
/**
* Sets the value of the trafmonConfigTmBlacklistEnabled property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setTrafmonConfigTmBlacklistEnabled(String value) {
this.trafmonConfigTmBlacklistEnabled = value;
}
/**
* Gets the value of the trafmonConfigTmConfigured property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getTrafmonConfigTmConfigured() {
return trafmonConfigTmConfigured;
}
/**
* Sets the value of the trafmonConfigTmConfigured property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setTrafmonConfigTmConfigured(String value) {
this.trafmonConfigTmConfigured = value;
}
/**
* Gets the value of the trafmonConfigTmEnabled property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getTrafmonConfigTmEnabled() {
return trafmonConfigTmEnabled;
}
/**
* Sets the value of the trafmonConfigTmEnabled property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setTrafmonConfigTmEnabled(String value) {
this.trafmonConfigTmEnabled = value;
}
/**
* Gets the value of the trafmonConfigTmExemptlistEnabled property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getTrafmonConfigTmExemptlistEnabled() {
return trafmonConfigTmExemptlistEnabled;
}
/**
* Sets the value of the trafmonConfigTmExemptlistEnabled property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setTrafmonConfigTmExemptlistEnabled(String value) {
this.trafmonConfigTmExemptlistEnabled = value;
}
/**
* Gets the value of the trafmonConfigTmMode property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getTrafmonConfigTmMode() {
return trafmonConfigTmMode;
}
/**
* Sets the value of the trafmonConfigTmMode property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setTrafmonConfigTmMode(String value) {
this.trafmonConfigTmMode = value;
}
/**
* Gets the value of the trafmonConfigTmOptin property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getTrafmonConfigTmOptin() {
return trafmonConfigTmOptin;
}
/**
* Sets the value of the trafmonConfigTmOptin property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setTrafmonConfigTmOptin(String value) {
this.trafmonConfigTmOptin = value;
}
/**
* Gets the value of the trafmonConfigTmResponse property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getTrafmonConfigTmResponse() {
return trafmonConfigTmResponse;
}
/**
* Sets the value of the trafmonConfigTmResponse property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setTrafmonConfigTmResponse(String value) {
this.trafmonConfigTmResponse = value;
}
/**
* Gets the value of the trafmonConfigTmBlacklistChanges property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getTrafmonConfigTmBlacklistChanges() {
return trafmonConfigTmBlacklistChanges;
}
/**
* Sets the value of the trafmonConfigTmBlacklistChanges property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setTrafmonConfigTmBlacklistChanges(String value) {
this.trafmonConfigTmBlacklistChanges = value;
}
/**
* Gets the value of the trafmonConfigTmForceGreylistBlack property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getTrafmonConfigTmForceGreylistBlack() {
return trafmonConfigTmForceGreylistBlack;
}
/**
* Sets the value of the trafmonConfigTmForceGreylistBlack property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setTrafmonConfigTmForceGreylistBlack(String value) {
this.trafmonConfigTmForceGreylistBlack = value;
}
/**
* Gets the value of the trafmonConfigTmSkipProxyPorts property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getTrafmonConfigTmSkipProxyPorts() {
return trafmonConfigTmSkipProxyPorts;
}
/**
* Sets the value of the trafmonConfigTmSkipProxyPorts property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setTrafmonConfigTmSkipProxyPorts(String value) {
this.trafmonConfigTmSkipProxyPorts = value;
}
/**
* Gets the value of the trafmonWhitelistTmWhitelistPorts property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getTrafmonWhitelistTmWhitelistPorts() {
return trafmonWhitelistTmWhitelistPorts;
}
/**
* Sets the value of the trafmonWhitelistTmWhitelistPorts property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setTrafmonWhitelistTmWhitelistPorts(String value) {
this.trafmonWhitelistTmWhitelistPorts = value;
}
/**
* Gets the value of the trafmonGrownBlacklistTmAdminBlacklistPorts property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getTrafmonGrownBlacklistTmAdminBlacklistPorts() {
return trafmonGrownBlacklistTmAdminBlacklistPorts;
}
/**
* Sets the value of the trafmonGrownBlacklistTmAdminBlacklistPorts property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setTrafmonGrownBlacklistTmAdminBlacklistPorts(String value) {
this.trafmonGrownBlacklistTmAdminBlacklistPorts = value;
}
/**
* Gets the value of the trafmonWhitelist property.
*
* @return
* possible object is
* {@link TrafmonWhitelist }
*
*/
public TrafmonWhitelist getTrafmonWhitelist() {
return trafmonWhitelist;
}
/**
* Sets the value of the trafmonWhitelist property.
*
* @param value
* allowed object is
* {@link TrafmonWhitelist }
*
*/
public void setTrafmonWhitelist(TrafmonWhitelist value) {
this.trafmonWhitelist = value;
}
/**
* Gets the value of the trafmonBypasslist property.
*
* @return
* possible object is
* {@link TrafmonBypasslist }
*
*/
public TrafmonBypasslist getTrafmonBypasslist() {
return trafmonBypasslist;
}
/**
* Sets the value of the trafmonBypasslist property.
*
* @param value
* allowed object is
* {@link TrafmonBypasslist }
*
*/
public void setTrafmonBypasslist(TrafmonBypasslist value) {
this.trafmonBypasslist = value;
}
/**
* Gets the value of the updaterDownloadsRetryInterval property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getUpdaterDownloadsRetryInterval() {
return updaterDownloadsRetryInterval;
}
/**
* Sets the value of the updaterDownloadsRetryInterval property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setUpdaterDownloadsRetryInterval(String value) {
this.updaterDownloadsRetryInterval = value;
}
/**
* Gets the value of the updaterDownloadsServer property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getUpdaterDownloadsServer() {
return updaterDownloadsServer;
}
/**
* Sets the value of the updaterDownloadsServer property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setUpdaterDownloadsServer(String value) {
this.updaterDownloadsServer = value;
}
/**
* Gets the value of the updaterManifestAlertThreshold property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getUpdaterManifestAlertThreshold() {
return updaterManifestAlertThreshold;
}
/**
* Sets the value of the updaterManifestAlertThreshold property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setUpdaterManifestAlertThreshold(String value) {
this.updaterManifestAlertThreshold = value;
}
/**
* Gets the value of the updaterManifestDynamicHost property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getUpdaterManifestDynamicHost() {
return updaterManifestDynamicHost;
}
/**
* Sets the value of the updaterManifestDynamicHost property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setUpdaterManifestDynamicHost(String value) {
this.updaterManifestDynamicHost = value;
}
/**
* Gets the value of the updaterManifestDynamicPort property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getUpdaterManifestDynamicPort() {
return updaterManifestDynamicPort;
}
/**
* Sets the value of the updaterManifestDynamicPort property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setUpdaterManifestDynamicPort(String value) {
this.updaterManifestDynamicPort = value;
}
/**
* Gets the value of the updaterManifestFetchInterval property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getUpdaterManifestFetchInterval() {
return updaterManifestFetchInterval;
}
/**
* Sets the value of the updaterManifestFetchInterval property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setUpdaterManifestFetchInterval(String value) {
this.updaterManifestFetchInterval = value;
}
/**
* Gets the value of the updaterManifestFetchType property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getUpdaterManifestFetchType() {
return updaterManifestFetchType;
}
/**
* Sets the value of the updaterManifestFetchType property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setUpdaterManifestFetchType(String value) {
this.updaterManifestFetchType = value;
}
/**
* Gets the value of the updaterManifestStaticUrl property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getUpdaterManifestStaticUrl() {
return updaterManifestStaticUrl;
}
/**
* Sets the value of the updaterManifestStaticUrl property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setUpdaterManifestStaticUrl(String value) {
this.updaterManifestStaticUrl = value;
}
/**
* Gets the value of the updaterNetworkInterface property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getUpdaterNetworkInterface() {
return updaterNetworkInterface;
}
/**
* Sets the value of the updaterNetworkInterface property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setUpdaterNetworkInterface(String value) {
this.updaterNetworkInterface = value;
}
/**
* Gets the value of the updaterNetworkHttpProxy property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getUpdaterNetworkHttpProxy() {
return updaterNetworkHttpProxy;
}
/**
* Sets the value of the updaterNetworkHttpProxy property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setUpdaterNetworkHttpProxy(String value) {
this.updaterNetworkHttpProxy = value;
}
/**
* Gets the value of the updaterNetworkHttpsProxy property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getUpdaterNetworkHttpsProxy() {
return updaterNetworkHttpsProxy;
}
/**
* Sets the value of the updaterNetworkHttpsProxy property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setUpdaterNetworkHttpsProxy(String value) {
this.updaterNetworkHttpsProxy = value;
}
/**
* Gets the value of the updaterNetworkRoutingTable property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getUpdaterNetworkRoutingTable() {
return updaterNetworkRoutingTable;
}
/**
* Sets the value of the updaterNetworkRoutingTable property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setUpdaterNetworkRoutingTable(String value) {
this.updaterNetworkRoutingTable = value;
}
/**
* Gets the value of the wbrsCommandManagerWbnpDetailLevel property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getWbrsCommandManagerWbnpDetailLevel() {
return wbrsCommandManagerWbnpDetailLevel;
}
/**
* Sets the value of the wbrsCommandManagerWbnpDetailLevel property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setWbrsCommandManagerWbnpDetailLevel(String value) {
this.wbrsCommandManagerWbnpDetailLevel = value;
}
/**
* Gets the value of the wbrsCommandManagerWbnpOptin property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getWbrsCommandManagerWbnpOptin() {
return wbrsCommandManagerWbnpOptin;
}
/**
* Sets the value of the wbrsCommandManagerWbnpOptin property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setWbrsCommandManagerWbnpOptin(String value) {
this.wbrsCommandManagerWbnpOptin = value;
}
/**
* Gets the value of the wbrsCommandManagerCategoriesVersion property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getWbrsCommandManagerCategoriesVersion() {
return wbrsCommandManagerCategoriesVersion;
}
/**
* Sets the value of the wbrsCommandManagerCategoriesVersion property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setWbrsCommandManagerCategoriesVersion(String value) {
this.wbrsCommandManagerCategoriesVersion = value;
}
/**
* Gets the value of the wbrsCommandManagerWbrsUpdateInterval property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getWbrsCommandManagerWbrsUpdateInterval() {
return wbrsCommandManagerWbrsUpdateInterval;
}
/**
* Sets the value of the wbrsCommandManagerWbrsUpdateInterval property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setWbrsCommandManagerWbrsUpdateInterval(String value) {
this.wbrsCommandManagerWbrsUpdateInterval = value;
}
/**
* Gets the value of the wccpConfigServiceSettings property.
*
* @return
* possible object is
* {@link WccpConfigServiceSettings }
*
*/
public WccpConfigServiceSettings getWccpConfigServiceSettings() {
return wccpConfigServiceSettings;
}
/**
* Sets the value of the wccpConfigServiceSettings property.
*
* @param value
* allowed object is
* {@link WccpConfigServiceSettings }
*
*/
public void setWccpConfigServiceSettings(WccpConfigServiceSettings value) {
this.wccpConfigServiceSettings = value;
}
/**
* Gets the value of the wccpDebugLevel property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getWccpDebugLevel() {
return wccpDebugLevel;
}
/**
* Sets the value of the wccpDebugLevel property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setWccpDebugLevel(String value) {
this.wccpDebugLevel = value;
}
/**
* Gets the value of the syslogRetryTimeout property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getSyslogRetryTimeout() {
return syslogRetryTimeout;
}
/**
* Sets the value of the syslogRetryTimeout property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setSyslogRetryTimeout(String value) {
this.syslogRetryTimeout = value;
}
/**
* Gets the value of the syslogBufferThrottle property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getSyslogBufferThrottle() {
return syslogBufferThrottle;
}
/**
* Sets the value of the syslogBufferThrottle property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setSyslogBufferThrottle(String value) {
this.syslogBufferThrottle = value;
}
/**
* Gets the value of the syslogMaxMessageSize property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getSyslogMaxMessageSize() {
return syslogMaxMessageSize;
}
/**
* Sets the value of the syslogMaxMessageSize property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setSyslogMaxMessageSize(String value) {
this.syslogMaxMessageSize = value;
}
}
| [
"[email protected]"
] | |
5fdd04855d92d71c584ef2c50b8f782bced85ff7 | 3ae112a1e0cfb8139e56cf285cb174e8f7e29529 | /0000-Interview/singleton_code/src/cn/liuawen/single/Singleton2.java | 1a7d6859a2b7176de03b0dac81de4792c865594b | [] | no_license | liuawen/Play-Leetcode | af8f4e9e5e25ab534df129881443ac1a2b2d79b7 | 790cca15c44db3f756992a61cfdf576df40eb62c | refs/heads/master | 2023-03-08T16:31:08.747905 | 2023-02-26T00:05:51 | 2023-02-26T00:05:51 | 293,091,784 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 264 | java | package cn.liuawen.single;
/**
* @author Liu Awen Email:[email protected]
* @create 2020-09-19
* 枚举类型 表示该类型的对象是有限的几个
* 我们可以限定为一个,就成了单例
* 1.5 JDK
*/
public enum Singleton2 {
INSTANCE
}
| [
"[email protected]"
] | |
55f3884ae361c140997953f11845a7c23f8bb789 | 4852d18610ddd1f0cc31a8dcb55c20a5cf6870f7 | /app/src/test/java/com/omega_r/omeganavigationmenu/ExampleUnitTest.java | 5f686632d0987f4930d38148f064f046f0842ed2 | [
"Apache-2.0"
] | permissive | M-Elnemr/OmegaNavigationMenu-Arabic-Support | aa66c4fc4a18e83fb5167c069951187382fbfd48 | f3e700489e187607759e2aca17ea282006481ef3 | refs/heads/master | 2023-04-26T08:18:11.608918 | 2021-06-11T23:15:34 | 2021-06-11T23:15:34 | 295,819,846 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 409 | java | package com.omega_r.omeganavigationmenu;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Example local unit test, which will execute on the development machine (host).
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
public class ExampleUnitTest {
@Test
public void addition_isCorrect() throws Exception {
assertEquals(4, 2 + 2);
}
} | [
"[email protected]"
] | |
68043f35ab4f2996bc0f71976dae1c263c309477 | e44075c0fbfb1a78ad24071cd012cc5a8b054a45 | /algorithm/A1_Code2.java | 58de52585f3a3a1ff84ff1c3ec6cf4157f41eae1 | [] | no_license | sanchenghai/useful | c5b610adbb6f79f9ebbeebfe9aa94606175a7ea3 | ce502cc89a21959fa121d308c793bb9e708ea1fe | refs/heads/master | 2020-04-15T14:32:08.898849 | 2019-09-23T17:25:18 | 2019-09-23T17:25:18 | 49,551,885 | 1 | 1 | null | null | null | null | UTF-8 | Java | false | false | 276 | java | class Program{
static void Main(string[] args){
int x = 0,
y = 0,
z = 0,
k = 0;
for(k = 1; k <= 3; k++){
x = 4 * k;
y = 25 - 7 * k;
z = 75 + 3 * k;
Console.WriteLine("公鸡:{0}只,母鸡:{1}只,小鸡:{2}只", x, y, z);
}
Console.Read();
}
} | [
"[email protected]"
] | |
13455e3b5a9a92d23f515f9bb6b9be95a622abfc | dcc0270f07d465b3a45168333779932b96352f14 | /src/main/java/com/chenx/example/proxy/gumball/HasQuarterState.java | a6b478c93ac4c428851a197afa994e3d5079337a | [] | no_license | cxhfuujust/design-pattern | f94ca566f9e2a0a35333a72123fab575cfc5c6ec | 9a965ee02d133d1100edc4e6926de414251d48b9 | refs/heads/master | 2020-08-26T14:48:43.314926 | 2019-11-08T08:49:01 | 2019-11-08T08:49:01 | 217,045,180 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,051 | java | package com.chenx.example.proxy.gumball;
import java.util.Random;
public class HasQuarterState implements State {
/**
*
*/
private static final long serialVersionUID = 768887299984514010L;
Random randomWinner = new Random(System.currentTimeMillis());
transient GumballMachine gumballMachine;
public HasQuarterState(GumballMachine gumballMachine) {
this.gumballMachine = gumballMachine;
}
public void insertQuarter() {
System.out.println("You can't insert another quarter");
}
public void ejectQuarter() {
System.out.println("Quarter returned");
gumballMachine.setState(gumballMachine.getNoQuarterState());
}
public void turnCrank() {
System.out.println("You turned...");
int winner = randomWinner.nextInt(10);
if (winner == 0) {
gumballMachine.setState(gumballMachine.getWinnerState());
} else {
gumballMachine.setState(gumballMachine.getSoldState());
}
}
public void dispense() {
System.out.println("No gumball dispensed");
}
public String toString() {
return "waiting for turn of crank";
}
}
| [
"[email protected]"
] | |
a074909d73acaef034e2a437db90cd50ef96275c | 1d5e2d09e455ac7f160b2d84203353e7d8833dea | /app/src/main/java/com/happybot/vcoupon/fragment/SearchFragment.java | b0400253c9cd81d8b5d75ca9c7846d01b0d39923 | [] | no_license | nvtuan305/vcoupon | 423340f1a1b635b2d493b3138791a8465c4dc3a5 | afaf7c0e2fbaf3781888ee86967c124bc4996a93 | refs/heads/master | 2021-01-20T04:46:15.656587 | 2016-12-17T05:24:42 | 2016-12-17T05:24:42 | 73,625,407 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 584 | java | package com.happybot.vcoupon.fragment;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.happybot.vcoupon.R;
/**
* Created by Nguyễn Phương Tuấn on 05-Dec-16.
*/
public class SearchFragment extends Fragment {
public SearchFragment() {
}
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
return inflater.inflate(R.layout.fragment_search, container, false);
}
}
| [
"[email protected]"
] | |
c9a5e48ca79c84658e92f015b521e48082e2460f | 236b04a3b5e632002bbb6c93d2b5ef1337abe005 | /app/src/main/java/mobile/rojas/com/budgetcare/presenter/BudgetInteractor.java | 1db7a43dc2904dab9b4b0c5a49e1098a100fefef | [] | no_license | buitro/BudgetCare | a25907bba8939cc3e623ec73a773ce964c5fc93b | cbccd8d049b38350aa5a37a2c8213e3930c6004d | refs/heads/master | 2020-12-30T12:36:09.665948 | 2017-05-16T01:25:21 | 2017-05-16T01:25:21 | 67,452,726 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,147 | java | package mobile.rojas.com.budgetcare.presenter;
import android.text.TextUtils;
import java.util.Date;
import java.util.UUID;
import io.realm.Realm;
import mobile.rojas.com.budgetcare.R;
import mobile.rojas.com.budgetcare.model.Budget;
public class BudgetInteractor implements IBudgetInteractor {
@Override
public void onSave(String amount, OnListener listener) {
boolean error = false;
if (TextUtils.isEmpty(amount)) {
error = true;
listener.onAmount(R.string.form_field_not_blank);
}
if (!error) {
save(Double.valueOf(amount), listener);
}
}
private void save(final Double amount, final OnListener listener) {
Realm realm = Realm.getDefaultInstance();
realm.executeTransaction(new Realm.Transaction() {
@Override
public void execute(Realm realm) {
Budget budget = realm.createObject(Budget.class, UUID.randomUUID().toString());
budget.setAmount(amount);
budget.setDate(new Date());
listener.onSuccess();
}
});
}
}
| [
"[email protected]"
] | |
8a91fc3f102b94704bdad482f312f1a2a608e72a | 47275fa443fbcf7e5546045809b459a13efe1447 | /android/app/src/main/java/com/universalapp/MainApplication.java | 03fc65912b195844a7e878d1e1125acb88857f81 | [] | no_license | Vstoy001/universal-app | 465a1f255bf2b4048b973499c0e425caa7433fae | 6857656043f6d57fbb7b6dd7c068ef923bd926bf | refs/heads/master | 2021-01-25T10:34:41.763680 | 2018-03-01T00:20:33 | 2018-03-01T00:20:33 | 123,358,525 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,298 | java | package com.universalapp;
import android.app.Application;
import com.facebook.react.ReactApplication;
import com.microsoft.appcenter.reactnative.crashes.AppCenterReactNativeCrashesPackage;
import com.microsoft.appcenter.reactnative.analytics.AppCenterReactNativeAnalyticsPackage;
import com.microsoft.appcenter.reactnative.appcenter.AppCenterReactNativePackage;
import com.microsoft.appcenter.reactnative.crashes.AppCenterReactNativeCrashesPackage;
import com.microsoft.appcenter.reactnative.analytics.AppCenterReactNativeAnalyticsPackage;
import com.microsoft.appcenter.reactnative.appcenter.AppCenterReactNativePackage;
import com.facebook.react.ReactNativeHost;
import com.facebook.react.ReactPackage;
import com.facebook.react.shell.MainReactPackage;
import com.facebook.soloader.SoLoader;
import java.util.Arrays;
import java.util.List;
public class MainApplication extends Application implements ReactApplication {
private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {
@Override
public boolean getUseDeveloperSupport() {
return BuildConfig.DEBUG;
}
@Override
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new MainReactPackage(),
new AppCenterReactNativeCrashesPackage(MainApplication.this, getResources().getString(R.string.appcenterCrashes_whenToSendCrashes)),
new AppCenterReactNativeAnalyticsPackage(MainApplication.this, getResources().getString(R.string.appcenterAnalytics_whenToEnableAnalytics)),
new AppCenterReactNativePackage(MainApplication.this),
new AppCenterReactNativeCrashesPackage(MainApplication.this, getResources().getString(R.string.appcenterCrashes_whenToSendCrashes)),
new AppCenterReactNativeAnalyticsPackage(MainApplication.this, getResources().getString(R.string.appcenterAnalytics_whenToEnableAnalytics)),
new AppCenterReactNativePackage(MainApplication.this)
);
}
@Override
protected String getJSMainModuleName() {
return "index";
}
};
@Override
public ReactNativeHost getReactNativeHost() {
return mReactNativeHost;
}
@Override
public void onCreate() {
super.onCreate();
SoLoader.init(this, /* native exopackage */ false);
}
}
| [
"[email protected]"
] | |
519d5eee7b0cb3e808c05eaa314f74290e9fe7aa | fcdc2350bc03d7b44e1aaf1f4af82f5ef65f6311 | /src/msg/manage/modal/Pager.java | fb38c7e853bc90beb9520938fb8738d166c2d585 | [] | no_license | amykiki/JavaWeb | 72f0fc6c2b4920388ea3d516df9d01811d4b4dad | 9a594b9095e07c7c6475ea80a569946198d847b4 | refs/heads/master | 2021-01-10T14:30:19.767129 | 2016-03-11T16:29:26 | 2016-03-11T16:29:26 | 52,582,847 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 688 | java | package msg.manage.modal;
import java.util.List;
/**
* Created by Amysue on 2016/3/10.
*/
public class Pager {
private List<User> users;
private int itemCounts;
private int currentPage;
public int getCurrentPage() {
return currentPage;
}
public void setCurrentPage(int currentPage) {
this.currentPage = currentPage;
}
public int getItemCounts() {
return itemCounts;
}
public void setItemCounts(int itemCounts) {
this.itemCounts = itemCounts;
}
public List<User> getUsers() {
return users;
}
public void setUsers(List<User> users) {
this.users = users;
}
}
| [
"[email protected]"
] | |
9a3f1ecfcc74982fd1303b09d044a2f3ed6cf3fe | e8e83832fc8ee96550657e453dc5461e786176c3 | /pscportalroot/psc-portal-web/src/main/java/gov/medicaid/controllers/SomeTest.java | 9fc89d04d62a6245a967aa89832ca7fe1e682b7f | [] | no_license | Marc-Williams-NewWave/pscportalroot | 1b3eb51e3c745ee3b3f174105ec84ed8488c6ae1 | 07817fbc49c409ab5fce7ff1db634ed6ca72e142 | refs/heads/master | 2016-09-05T16:44:40.559968 | 2013-11-14T19:44:52 | 2013-11-14T19:44:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 203 | java | package gov.medicaid.controllers;
public class SomeTest {
private String someok;
public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.println("HAHAHA!!!!");
}
}
| [
"[email protected]"
] | |
0909dee826e2ff682eaef8a0384f6e508b538cee | 74dbdc8f672e46e2c6b69e620a168bdb0b9bc841 | /DogDao.java | 00a5fa123011d7abcd9080093e0c6f75a14bffe5 | [] | no_license | MarcinFedorek/hibernateBasic1 | 1e6e74351abf4657d2857edae8057bd024434098 | d0a9004c49057da50136e7c580125edc6a6d4d11 | refs/heads/master | 2020-03-19T16:26:13.584308 | 2018-06-09T10:56:40 | 2018-06-09T10:56:40 | 136,715,304 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,464 | java | package App;
import org.hibernate.Session;
import java.util.List;
public class DogDao {
//Crud create, read, update, delete
public static void addDog(Dog dog) {
Session session = HibernateFactory.getSessionFactory().openSession();
session.beginTransaction();
session.save(dog);
session.getTransaction().commit();
session.close();
}
public static Dog getDog(Long id) {
Session session = HibernateFactory.getSessionFactory().openSession();
Dog dog = (Dog) session.get(Dog.class, id);
session.close();
return dog;
}
public static List<Dog> readAll(){
Session session = HibernateFactory.getSessionFactory().openSession();
List<Dog> dogs = session.createQuery("FROM Dog").list();
session.close();
System.out.println("Found"+" "+dogs.size()+" "+"Dogs");
return dogs;
}
public static void deleteDog(Long dogId){
Session session = HibernateFactory.getSessionFactory().openSession();
session.beginTransaction();
Dog dog = getDog(dogId);
session.delete(dog);
session.getTransaction().commit();
session.close();
}
public static void updateDog(Long dogId, Dog newDog) {
Session session = HibernateFactory.getSessionFactory().openSession();
session.beginTransaction();
Dog dog = getDog(dogId);
dog.setName(newDog.getName());
dog.setAge(newDog.getAge());
session.update(dog);
session.getTransaction().commit();
session.close();
}
}
| [
"[email protected]"
] | |
9f8e6ba1196c38a108ab7bba5219afb78d611989 | b56437f122947e6594716f069a9eda024c0ca157 | /src/Ejercicios_clase/UT3_Programacion_ComunicacionesEnRed/b1_clasesJavaComunicacionesEnRed/URLConnection/Ejemplo2urlCon.java | 5a7f81200dbf60fb9d2480b3199b7658d19a9f41 | [] | no_license | vrsanchez99/psp-2021 | db01678b1cac700275cb2edefd8dd3f287cf2259 | 638dfd17fd3e5d2532debed6ba89b17ed86b5550 | refs/heads/master | 2023-02-18T06:12:30.618372 | 2021-01-19T22:37:26 | 2021-01-19T22:37:26 | 301,686,832 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,217 | java | package Ejercicios_clase.UT3_Programacion_ComunicacionesEnRed.b1_clasesJavaComunicacionesEnRed.URLConnection;
import java.io.*;
import java.net.*;
public class Ejemplo2urlCon {
public static void main(String[] args) {
try {
URL url = new URL("http://localhost/2018/vernombre.php");
URLConnection conexion = url.openConnection();
conexion.setDoOutput(true);
String cadena ="nombre=Mar�a Jes�s&apellidos=Ramos Mart�n";
//ESCRIBIR EN LA URL � stream de salida
PrintWriter output = new PrintWriter
(conexion.getOutputStream());
output.write(cadena);
output.close(); //cerrar flujo
//LEER DE LA URL � stream de entrada
BufferedReader reader = new BufferedReader
(new InputStreamReader(conexion.getInputStream()));
String linea;
while ((linea = reader.readLine()) != null) {
System.out.println(linea);
}
reader.close();//cerrar flujo
} catch (MalformedURLException me) {
System.err.println("MalformedURLException: " + me);
} catch (IOException ioe) {
System.err.println("IOException: " + ioe);
}
}//main
}//Ejemplo2urlCon
| [
"[email protected]"
] | |
67b3cdd3e07017a1c67fed164c76f4e0f7b566a7 | af2a554c211523465d64c43671d58820f009a291 | /Java/src code for oracle java/org/omg/PortableInterceptor/ClientRequestInfo.java | 0e2f2100a075212045494d22db3204b6c18119a3 | [] | no_license | mjachowdhury/ProgrammingBooks | e4abff9db2edea7518ac74fcde07e45359c76bf5 | aff4a0321de87a7bfeef6d28ab076294a8b45ea9 | refs/heads/master | 2020-06-01T05:42:29.526386 | 2019-06-06T23:42:13 | 2019-06-06T23:42:13 | 190,661,188 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 9,545 | java | package org.omg.PortableInterceptor;
/**
* org/omg/PortableInterceptor/ClientRequestInfo.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/re/workspace/8-2-build-windows-amd64-cygwin/jdk8u121/8372/corba/src/share/classes/org/omg/PortableInterceptor/Interceptors.idl
* Monday, December 12, 2016 6:22:55 PM PST
*/
/**
* Request Information, accessible to client-side request interceptors.
* <p>
* Some attributes and operations on <code>ClientRequestInfo</code> are
* not valid at all interception points. The following table shows the
* validity of each attribute or operation. If it is not valid, attempting
* to access it will result in a <code>BAD_INV_ORDER</code> being thrown
* with a standard minor code of 14.
* <p>
*
* <table border=1 summary="Shows the validity of each attribute or operation">
* <thead>
* <tr>
* <th> </th>
* <th id="send_req">send_request</th>
* <th id="send_poll">send_poll</th>
* <th id="rec_reply">receive_reply</th>
* <th id="rec_ex">receive_exception</th>
* <th id="rec_oth">receive_other</th>
* </tr>
* </thead>
* <tbody>
*
* <tr>
* <td id="ri" colspan=6><i>Inherited from RequestInfo:</i></td>
* </tr>
*
* <tr><th id="req_id"><p align="left">request_id</p></th>
* <td headers="ri req_id send_req">yes</td>
* <td headers="ri req_id send_poll">yes</td>
* <td headers="ri req_id rec_reply">yes</td>
* <td headers="ri req_id rec_ex">yes</td>
* <td headers="ri req_id rec_oth">yes</td></tr>
*
* <tr><th id="op"><p align="left">operation</p></th>
* <td headers="ri op send_req">yes</td>
* <td headers="ri op send_poll">yes</td>
* <td headers="ri op rec_reply">yes</td>
* <td headers="ri op rec_ex">yes</td>
* <td headers="ri op rec_oth">yes</td></tr>
*
* <tr><th id="arg"><p align="left">arguments</p></th>
* <td headers="ri arg send_req">yes<sub>1</sub></td>
* <td headers="ri arg send_poll">no </td>
* <td headers="ri arg rec_reply">yes</td>
* <td headers="ri arg rec_ex">no </td>
* <td headers="ri arg rec_oth">no </td></tr>
*
* <tr><th id="exc"><p align="left">exceptions</p></th>
* <td headers="ri exc send_req">yes</td>
* <td headers="ri exc send_poll">no </td>
* <td headers="ri exc rec_reply">yes</td>
* <td headers="ri exc rec_ex">yes</td>
* <td headers="ri exc rec_oth">yes</td></tr>
*
* <tr><th id="con"><p align="left">contexts</p></th>
* <td headers="ri con send_req">yes</td>
* <td headers="ri con send_poll">no </td>
* <td headers="ri con rec_reply">yes</td>
* <td headers="ri con rec_ex">yes</td>
* <td headers="ri con rec_oth">yes</td></tr>
*
* <tr><th id="op_con"><p align="left">operation_context</p></th>
* <td headers="ri op_con send_req">yes</td>
* <td headers="ri op_con send_poll">no </td>
* <td headers="ri op_con rec_reply">yes</td>
* <td headers="ri op_con rec_ex">yes</td>
* <td headers="ri op_con rec_oth">yes</td>
* </tr>
*
* <tr><th id="result"><p align="left">result</p></th>
* <td headers="ri result send_req">no </td>
* <td headers="ri result send_poll">no </td>
* <td headers="ri result rec_reply">yes</td>
* <td headers="ri result rec_ex">no </td>
* <td headers="ri result rec_oth">no </td>
* </tr>
*
* <tr><th id="res_exp"><p align="left">response_expected</p></th>
* <td headers="ri res_exp send_req">yes</td>
* <td headers="ri res_exp send_poll">yes</td>
* <td headers="ri res_exp rec_reply">yes</td>
* <td headers="ri res_exp rec_ex">yes</td>
* <td headers="ri res_exp rec_oth">yes</td></tr>
*
* <tr><th id="sync_sco"><p align="left">sync_scope</p></th>
* <td headers="ri sync_sco send_req">yes</td>
* <td headers="ri sync_sco send_poll">no </td>
* <td headers="ri sync_sco rec_reply">yes</td>
* <td headers="ri sync_sco rec_ex">yes</td>
* <td headers="ri sync_sco rec_oth">yes</td>
* </tr>
*
* <tr><th id="rep_stat"><p align="left">reply_status</p></th>
* <td headers="ri rep_stat send_req">no </td>
* <td headers="ri rep_stat send_poll">no </td>
* <td headers="ri rep_stat rec_reply">yes</td>
* <td headers="ri rep_stat rec_ex">yes</td>
* <td headers="ri rep_stat rec_oth">yes</td></tr>
*
* <tr><th id="for_ref"><p align="left">forward_reference</p></th>
* <td headers="ri for_ref send_req">no </td>
* <td headers="ri for_ref send_poll">no </td>
* <td headers="ri for_ref rec_reply">no </td>
* <td headers="ri for_ref rec_ex">no </td>
* <td headers="ri for_ref rec_oth">yes<sub>2</sub>
* </td></tr>
*
* <tr><th id="get_slot"><p align="left">get_slot</p></th>
* <td headers="ri get_slot send_req">yes</td>
* <td headers="ri get_slot send_poll">yes</td>
* <td headers="ri get_slot rec_reply">yes</td>
* <td headers="ri get_slot rec_ex">yes</td>
* <td headers="ri get_slot rec_oth">yes</td></tr>
*
* <tr><th id="grsc"><p align="left">get_request_service_context</p></th>
* <td headers="ri grsc send_req">yes</td>
* <td headers="ri grsc send_poll">no </td>
* <td headers="ri grsc rec_reply">yes</td>
* <td headers="ri grsc rec_ex">yes</td>
* <td headers="ri grsc rec_oth">yes</td></tr>
*
* <tr><th id="gpsc"><p align="left">get_reply_service_context</p></th>
* <td headers="ri gpsc send_req">no </td>
* <td headers="ri gpsc send_poll">no </td>
* <td headers="ri gpsc rec_reply">yes</td>
* <td headers="ri gpsc rec_ex">yes</td>
* <td headers="ri gpsc rec_oth">yes</td>
* </tr>
*
* <tr>
* <td id="cri" colspan=6><i>ClientRequestInfo-specific:</i></td>
* </tr>
*
* <tr><th id="target"><p align="left">target</p></th>
* <td headers="cri target send_req">yes</td>
* <td headers="cri target send_poll">yes</td>
* <td headers="cri target rec_reply">yes</td>
* <td headers="cri target rec_ex">yes</td>
* <td headers="cri target rec_oth">yes</td></tr>
*
* <tr><th id="eftarget"><p align="left">effective_target</p></th>
* <td headers="cri eftarget send_req">yes</td>
* <td headers="cri eftarget send_poll">yes</td>
* <td headers="cri eftarget rec_reply">yes</td>
* <td headers="cri eftarget rec_ex">yes</td>
* <td headers="cri eftarget rec_oth">yes</td>
* </tr>
*
* <tr><th id="efprof"><p align="left">effective_profile</p></th>
* <td headers="cri efprof send_req">yes</td>
* <td headers="cri efprof send_poll">yes</td>
* <td headers="cri efprof rec_reply">yes</td>
* <td headers="cri efprof rec_ex">yes</td>
* <td headers="cri efprof rec_oth">yes</td></tr>
*
* <tr><th id="rxp"><p align="left">received_exception</p></th>
* <td headers="cri rxp send_req">no </td>
* <td headers="cri rxp send_poll">no </td>
* <td headers="cri rxp rec_reply">no </td>
* <td headers="cri rxp rec_ex">yes</td>
* <td headers="cri rxp rec_oth">no </td></tr>
*
* <tr><th id="rei"><p align="left">received_exception_id</p></th>
* <td headers="cri rei send_req">no </td>
* <td headers="cri rei send_poll">no </td>
* <td headers="cri rei rec_reply">no </td>
* <td headers="cri rei rec_ex">yes</td>
* <td headers="cri rei rec_oth">no </td></tr>
*
* <tr><th id="gec"><p align="left">get_effective_component</p></th>
* <td headers="cri gec send_req">yes</td>
* <td headers="cri gec send_poll">no </td>
* <td headers="cri gec rec_reply">yes</td>
* <td headers="cri gec rec_ex">yes</td>
* <td headers="cri gec rec_oth">yes</td></tr>
*
* <tr><th id="gecs"><p align="left">get_effective_components</p></th>
* <td headers="cri gecs send_req">yes</td>
* <td headers="cri gecs send_poll">no </td>
* <td headers="cri gecs rec_reply">yes</td>
* <td headers="cri gecs rec_ex">yes</td>
* <td headers="cri gecs rec_oth">yes</td></tr>
*
* <tr><th id="grpcy"><p align="left">get_request_policy</p></th>
* <td headers="cri grpcy send_req">yes</td>
* <td headers="cri grpcy send_poll">no </td>
* <td headers="cri grpcy rec_reply">yes</td>
* <td headers="cri grpcy rec_ex">yes</td>
* <td headers="cri grpcy rec_oth">yes</td></tr>
*
* <tr><th id="arsc"><p align="left">add_request_service_context</p></th>
* <td headers="cri arsc send_req">yes</td>
* <td headers="cri arsc send_poll">no </td>
* <td headers="cri arsc rec_reply">no </td>
* <td headers="cri arsc rec_ex">no </td>
* <td headers="cri arsc rec_oth">no </td></tr>
*
* </tbody>
* </table>
*
* <ol>
* <li>When <code>ClientRequestInfo</code> is passed to
* <code>send_request</code>, there is an entry in the list for every
* argument, whether in, inout, or out. But only the in and inout
* arguments will be available.</li>
* <li>If the <code>reply_status</code> atribute is not
* <code>LOCATION_FORWARD</code>, accessing this attribute will
* throw <code>BAD_INV_ORDER</code> with a standard minor code of
* 14.</li>
* </ol>
*
* @see ClientRequestInterceptor
*/
public interface ClientRequestInfo extends ClientRequestInfoOperations, org.omg.PortableInterceptor.RequestInfo, org.omg.CORBA.portable.IDLEntity
{
} // interface ClientRequestInfo
| [
"[email protected]"
] | |
d26944ea52fce4a41a983bfc85671a95a9746d8d | 7a9d7cd3555b87903cd38c118d0aa8fba2237493 | /MultiClients/src/Client1.java | 1f7ce4f4e9f307de33387d1d4fd2024d3bc3c45f | [] | no_license | specialOne-coder/JavaProjects | 5b100ff0e276bc905b229811b6502fb295921a4b | ace6d03dbbc14e63a498f915b55ec65ac681b9ef | refs/heads/main | 2023-08-17T09:21:22.617608 | 2021-09-27T20:27:16 | 2021-09-27T20:27:16 | 411,032,118 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 16,256 | java |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.Socket;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.logging.Level;
import java.util.logging.Logger;
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author ferdio
*/
public class Client1 extends javax.swing.JFrame {
String nom,address = "localhost";
ArrayList<String> us = new ArrayList();
int port = 2222;
Boolean con = false;
Socket socc;
BufferedReader entré;
PrintWriter sortie;
/**
* Creates new form Client1
*/
public Client1() {
initComponents();
this.setLocationRelativeTo(null);
}
public void lirethread(){
Thread monthread = new Thread(new Traiteur());
monthread.start();
}
public class Traiteur implements Runnable{
public void run(){
String mes;
try {
while((mes = entré.readLine())!= null){
SendClient(mes);
}
} catch (IOException ex) {
}
}
}
public void SendClient(String message){
Iterator i = us.iterator();
while(i.hasNext()){
try {
PrintWriter w = (PrintWriter) i.next();
w.println(message);
Affichec1.append("Envoi : "+ message + "\n");
w.flush();
Affichec1.setCaretPosition(Affichec1.getDocument().getLength());
} catch (Exception e) {
Affichec1.append("Erreur Erreur Erreur....");
}
}
}
/**
* This method is called from within the constructor to initialize the form.
* WARNING: Do NOT modify this code. The content of this method is always
* regenerated by the Form Editor.
*/
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
jPanel2 = new javax.swing.JPanel();
jScrollPane1 = new javax.swing.JScrollPane();
Affichec1 = new javax.swing.JTextArea();
jLabel2 = new javax.swing.JLabel();
portclient = new javax.swing.JTextField();
connexion = new javax.swing.JButton();
Envoyer = new javax.swing.JButton();
jLabel3 = new javax.swing.JLabel();
AdresseClieent = new javax.swing.JTextField();
jLabel4 = new javax.swing.JLabel();
usernc1 = new javax.swing.JTextField();
jScrollPane2 = new javax.swing.JScrollPane();
gsmc1 = new javax.swing.JTextArea();
deconnexion = new javax.swing.JButton();
jPanel1 = new javax.swing.JPanel();
jLabel1 = new javax.swing.JLabel();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
jPanel2.setBackground(new java.awt.Color(44, 62, 80));
Affichec1.setColumns(20);
Affichec1.setRows(5);
jScrollPane1.setViewportView(Affichec1);
jLabel2.setForeground(new java.awt.Color(255, 255, 255));
jLabel2.setText("Port :");
portclient.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
portclientActionPerformed(evt);
}
});
connexion.setText("Connexion");
connexion.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
connexionActionPerformed(evt);
}
});
Envoyer.setText("Send");
Envoyer.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
EnvoyerActionPerformed(evt);
}
});
jLabel3.setForeground(new java.awt.Color(255, 255, 255));
jLabel3.setText("Addresse:");
jLabel4.setForeground(new java.awt.Color(255, 255, 255));
jLabel4.setText("Username :");
gsmc1.setColumns(20);
gsmc1.setRows(5);
jScrollPane2.setViewportView(gsmc1);
deconnexion.setText("Deconnexion");
javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
jPanel2.setLayout(jPanel2Layout);
jPanel2Layout.setHorizontalGroup(
jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(connexion, javax.swing.GroupLayout.PREFERRED_SIZE, 286, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGroup(jPanel2Layout.createSequentialGroup()
.addGap(47, 47, 47)
.addComponent(jLabel4)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(usernc1, javax.swing.GroupLayout.PREFERRED_SIZE, 286, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGap(0, 61, Short.MAX_VALUE))
.addGroup(jPanel2Layout.createSequentialGroup()
.addGap(50, 50, 50)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(deconnexion, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jScrollPane1)
.addGroup(jPanel2Layout.createSequentialGroup()
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel2)
.addComponent(jLabel3))
.addGap(15, 15, 15)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(AdresseClieent, javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(portclient)))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
.addComponent(jScrollPane2)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(Envoyer, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGap(59, 59, 59))
);
jPanel2Layout.setVerticalGroup(
jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addGap(44, 44, 44)
.addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 232, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(39, 39, 39)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(portclient, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel2))
.addGap(18, 18, 18)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel3)
.addComponent(AdresseClieent, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(27, 27, 27)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel4)
.addComponent(usernc1, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addComponent(connexion)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addGap(38, 38, 38)
.addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(jPanel2Layout.createSequentialGroup()
.addGap(55, 55, 55)
.addComponent(Envoyer, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGap(40, 40, 40)
.addComponent(deconnexion)
.addContainerGap(53, Short.MAX_VALUE))
);
jPanel1.setBackground(new java.awt.Color(248, 148, 6));
jLabel1.setFont(new java.awt.Font("Dialog", 1, 24)); // NOI18N
jLabel1.setForeground(new java.awt.Color(255, 255, 255));
jLabel1.setText("Client1");
javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
jPanel1.setLayout(jPanel1Layout);
jPanel1Layout.setHorizontalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addGap(186, 186, 186)
.addComponent(jLabel1)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
jPanel1Layout.setVerticalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
.addContainerGap(25, Short.MAX_VALUE)
.addComponent(jLabel1)
.addContainerGap())
);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(2, 2, 2)
.addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(14, Short.MAX_VALUE))
);
pack();
}// </editor-fold>//GEN-END:initComponents
private void portclientActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_portclientActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_portclientActionPerformed
private void connexionActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_connexionActionPerformed
if(con == false){
nom = usernc1.getText();
usernc1.setEditable(false);
try{
socc = new Socket(address,port);
InputStreamReader streader = new InputStreamReader(socc.getInputStream());
entré = new BufferedReader(streader);
sortie = new PrintWriter(socc.getOutputStream());
sortie.println(nom + "s'est connecté");
sortie.flush();
con = true;
}catch(Exception e){
Affichec1.append("Vous n'etes pas connecté! Reesayer");
usernc1.setEditable(true);
}
lirethread();
}else{
Affichec1.append("Vous etes déja connecté \n");
}
}//GEN-LAST:event_connexionActionPerformed
private void EnvoyerActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_EnvoyerActionPerformed
String rien = "";
if(gsmc1.getText().equals(rien)){
gsmc1.setText("");
gsmc1.requestFocus();
}else{
try {
sortie.println(nom + ":" +gsmc1.getText());
sortie.flush();
} catch (Exception e) {
Affichec1.append("Message non envoyé \n");
}
gsmc1.setText("");
gsmc1.requestFocus();
}
}//GEN-LAST:event_EnvoyerActionPerformed
/**
* @param args the command line arguments
*/
public static void main(String args[]) {
/* Set the Nimbus look and feel */
//<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
/* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
* For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
*/
try {
for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
if ("Nimbus".equals(info.getName())) {
javax.swing.UIManager.setLookAndFeel(info.getClassName());
break;
}
}
} catch (ClassNotFoundException ex) {
java.util.logging.Logger.getLogger(Client1.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (InstantiationException ex) {
java.util.logging.Logger.getLogger(Client1.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (IllegalAccessException ex) {
java.util.logging.Logger.getLogger(Client1.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (javax.swing.UnsupportedLookAndFeelException ex) {
java.util.logging.Logger.getLogger(Client1.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
}
//</editor-fold>
/* Create and display the form */
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new Client1().setVisible(true);
}
});
}
// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JTextField AdresseClieent;
private javax.swing.JTextArea Affichec1;
private javax.swing.JButton Envoyer;
private javax.swing.JButton connexion;
private javax.swing.JButton deconnexion;
private javax.swing.JTextArea gsmc1;
private javax.swing.JLabel jLabel1;
private javax.swing.JLabel jLabel2;
private javax.swing.JLabel jLabel3;
private javax.swing.JLabel jLabel4;
private javax.swing.JPanel jPanel1;
private javax.swing.JPanel jPanel2;
private javax.swing.JScrollPane jScrollPane1;
private javax.swing.JScrollPane jScrollPane2;
private javax.swing.JTextField portclient;
private javax.swing.JTextField usernc1;
// End of variables declaration//GEN-END:variables
}
| [
"[email protected]"
] | |
c3ad67291fbd0f34fda4cd839d965dc8bb1e20bb | 7d25154a45010c4d559bbefc315b611cb6d5457f | /src/test/java/org/gvh/rfb/web/rest/errors/ExceptionTranslatorIntTest.java | 7ae8362b948183b8d84ec36cb299d0e679eef603 | [] | no_license | Georges73/rfb | 4ca8b364367194269094da4f8df93f0df5af5e67 | 740e89c0b4a7f4bc08b196123a03d2e639f80df2 | refs/heads/master | 2021-05-09T03:46:34.612613 | 2018-01-28T11:43:10 | 2018-01-28T11:43:10 | 119,252,570 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 6,473 | java | package org.gvh.rfb.web.rest.errors;
import org.gvh.rfb.RfbApp;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.http.MediaType;
import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter;
import org.springframework.test.context.junit4.SpringRunner;
import org.springframework.test.web.servlet.MockMvc;
import org.springframework.test.web.servlet.setup.MockMvcBuilders;
import org.zalando.problem.spring.web.advice.MediaTypes;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.post;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.content;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
/**
* Test class for the ExceptionTranslator controller advice.
*
* @see ExceptionTranslator
*/
@RunWith(SpringRunner.class)
@SpringBootTest(classes = RfbApp.class)
public class ExceptionTranslatorIntTest {
@Autowired
private ExceptionTranslatorTestController controller;
@Autowired
private ExceptionTranslator exceptionTranslator;
@Autowired
private MappingJackson2HttpMessageConverter jacksonMessageConverter;
private MockMvc mockMvc;
@Before
public void setup() {
mockMvc = MockMvcBuilders.standaloneSetup(controller)
.setControllerAdvice(exceptionTranslator)
.setMessageConverters(jacksonMessageConverter)
.build();
}
@Test
public void testConcurrencyFailure() throws Exception {
mockMvc.perform(get("/test/concurrency-failure"))
.andExpect(status().isConflict())
.andExpect(content().contentType(MediaTypes.PROBLEM))
.andExpect(jsonPath("$.message").value(ErrorConstants.ERR_CONCURRENCY_FAILURE));
}
@Test
public void testMethodArgumentNotValid() throws Exception {
mockMvc.perform(post("/test/method-argument").content("{}").contentType(MediaType.APPLICATION_JSON))
.andExpect(status().isBadRequest())
.andExpect(content().contentType(MediaTypes.PROBLEM))
.andExpect(jsonPath("$.message").value(ErrorConstants.ERR_VALIDATION))
.andExpect(jsonPath("$.fieldErrors.[0].objectName").value("testDTO"))
.andExpect(jsonPath("$.fieldErrors.[0].field").value("test"))
.andExpect(jsonPath("$.fieldErrors.[0].message").value("NotNull"));
}
@Test
public void testParameterizedError() throws Exception {
mockMvc.perform(get("/test/parameterized-error"))
.andExpect(status().isBadRequest())
.andExpect(content().contentType(MediaTypes.PROBLEM))
.andExpect(jsonPath("$.message").value("test parameterized error"))
.andExpect(jsonPath("$.params.param0").value("param0_value"))
.andExpect(jsonPath("$.params.param1").value("param1_value"));
}
@Test
public void testParameterizedError2() throws Exception {
mockMvc.perform(get("/test/parameterized-error2"))
.andExpect(status().isBadRequest())
.andExpect(content().contentType(MediaTypes.PROBLEM))
.andExpect(jsonPath("$.message").value("test parameterized error"))
.andExpect(jsonPath("$.params.foo").value("foo_value"))
.andExpect(jsonPath("$.params.bar").value("bar_value"));
}
@Test
public void testMissingServletRequestPartException() throws Exception {
mockMvc.perform(get("/test/missing-servlet-request-part"))
.andExpect(status().isBadRequest())
.andExpect(content().contentType(MediaTypes.PROBLEM))
.andExpect(jsonPath("$.message").value("error.http.400"));
}
@Test
public void testMissingServletRequestParameterException() throws Exception {
mockMvc.perform(get("/test/missing-servlet-request-parameter"))
.andExpect(status().isBadRequest())
.andExpect(content().contentType(MediaTypes.PROBLEM))
.andExpect(jsonPath("$.message").value("error.http.400"));
}
@Test
public void testAccessDenied() throws Exception {
mockMvc.perform(get("/test/access-denied"))
.andExpect(status().isForbidden())
.andExpect(content().contentType(MediaTypes.PROBLEM))
.andExpect(jsonPath("$.message").value("error.http.403"))
.andExpect(jsonPath("$.detail").value("test access denied!"));
}
@Test
public void testUnauthorized() throws Exception {
mockMvc.perform(get("/test/unauthorized"))
.andExpect(status().isUnauthorized())
.andExpect(content().contentType(MediaTypes.PROBLEM))
.andExpect(jsonPath("$.message").value("error.http.401"))
.andExpect(jsonPath("$.path").value("/test/unauthorized"))
.andExpect(jsonPath("$.detail").value("test authentication failed!"));
}
@Test
public void testMethodNotSupported() throws Exception {
mockMvc.perform(post("/test/access-denied"))
.andExpect(status().isMethodNotAllowed())
.andExpect(content().contentType(MediaTypes.PROBLEM))
.andExpect(jsonPath("$.message").value("error.http.405"))
.andExpect(jsonPath("$.detail").value("Request method 'POST' not supported"));
}
@Test
public void testExceptionWithResponseStatus() throws Exception {
mockMvc.perform(get("/test/response-status"))
.andExpect(status().isBadRequest())
.andExpect(content().contentType(MediaTypes.PROBLEM))
.andExpect(jsonPath("$.message").value("error.http.400"))
.andExpect(jsonPath("$.title").value("test response status"));
}
@Test
public void testInternalServerError() throws Exception {
mockMvc.perform(get("/test/internal-server-error"))
.andExpect(status().isInternalServerError())
.andExpect(content().contentType(MediaTypes.PROBLEM))
.andExpect(jsonPath("$.message").value("error.http.500"))
.andExpect(jsonPath("$.title").value("Internal Server Error"));
}
}
| [
"[email protected]"
] | |
9e58e86d11c3713c18e3304f418f56e2d0ce268b | 0cc686852aff40c39ee501deec51ef838fe345f8 | /app/src/main/java/com/qixiu/intelligentcommunity/widget/imagepager/ViewPagerAdapter.java | 3385564e1c4b16fd022ff643e6db8ce93cb4486b | [] | no_license | q37141826/community | dd3e62cc6ee3b919682bda025ee12204dcd1dea6 | b9d9d815ee3c16c36554e300a8ccb56048e91524 | refs/heads/master | 2021-07-14T17:44:12.283043 | 2020-10-22T12:20:39 | 2020-10-22T12:20:39 | 210,090,729 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,311 | java | /*
* Copyright (c) 2015.
* 湖南球谱科技有限公司版权所有
* Hunan Qiupu Technology Co., Ltd. all rights reserved.
*/
package com.qixiu.intelligentcommunity.widget.imagepager;
import android.app.Activity;
import android.content.Context;
import android.support.v4.view.PagerAdapter;
import android.view.View;
import android.view.ViewGroup;
import com.bumptech.glide.Glide;
import com.qixiu.intelligentcommunity.R;
import java.util.List;
public class ViewPagerAdapter extends PagerAdapter {
private View view;
private List<String> mUrls;
private Context mContext;
public ViewPagerAdapter(List<String> urls, Context context) {
mUrls = urls;
mContext = context;
}
@Override
public boolean isViewFromObject(View arg0, Object arg1) {
return arg0 == arg1;
}
@Override
public int getCount() {
return mUrls.size();
}
@Override
public void destroyItem(ViewGroup container, int position, Object object) {
container.removeView((View) object);
}
@Override
public void setPrimaryItem(ViewGroup container, int position, Object object) {
view = (View) object;
super.setPrimaryItem(container, position, object);
}
@Override
public int getItemPosition(Object object) {
return POSITION_NONE;
}
public View getPrimaryItem() {
return view;
}
@Override
public Object instantiateItem(ViewGroup container, int position) {
final PhotoView view = new PhotoView(mContext);
view.enable();
Glide.with(view.getContext())
.load(mUrls.get(position))
.placeholder(R.mipmap.ic_launcher)
.error(R.mipmap.ic_launcher)
.thumbnail(0.1f)
.into(view);
view.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View arg0) {
((Activity) mContext).finish();
}
});
view.setOnLongClickListener(new View.OnLongClickListener() {
@Override
public boolean onLongClick(View arg0) {
return false;
}
});
container.addView(view);
view.setId(position);
return view;
}
}; | [
"[email protected]"
] | |
e988cf8be9747618afc8cd1b09c41ab8e17834e0 | db4188b264fcee893bd2db0b3f8f22dcece9caf5 | /src/com/whu/multiThread_tongxin/ThreadBB.java | 69ab1702f5d2ace50daefd3e8a7e3ef46aff0e31 | [] | no_license | shihongliang/TestAlgorithm | d9be544a1340f41e2229c40e2175256fd2e996cb | b8390e3986da031d24a3e7483ade4eb119a80aa9 | refs/heads/master | 2021-01-20T18:32:50.436632 | 2017-08-23T01:29:33 | 2017-08-23T01:29:33 | 90,921,072 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 373 | java | /**
*
*/
package com.whu.multiThread_tongxin;
/**
* @author hongliang
*
*/
public class ThreadBB extends Thread{
private Object lock;
/**
*
*/
public ThreadBB(Object lock) {
this.lock=lock;
}
/* (non-Javadoc)
* @see java.lang.Thread#run()
*/
@Override
public void run() {
Service service=new Service();
service.testMethod(lock);
}
}
| [
"[email protected]"
] | |
b75cd000358b0a4eb2c35b860094c50dd5f81b1e | cb2bc24e5b47f0bc15192903bea41b171172c9fe | /AS1/AS1Questão2/src/Principal.java | 9a4643c00070b1b413979d0f2923ab0f6df502e5 | [
"MIT"
] | permissive | VictorEdsonHomem/Atividades1JAVA | a096e43748ab7cab1e36d34e62a790b535f8db1d | 2390bada891c21b3e5744cecde9d74aa7d75e07b | refs/heads/master | 2022-12-17T20:17:58.312889 | 2020-08-30T22:12:37 | 2020-08-30T22:12:37 | 291,560,181 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Java | false | false | 766 | java | // Síntese Atividade 2
// Objetivo: Programa em Java que leia o valor de uma determinada mercadoria de uma loja. Sabendo que o
//desconto para pagamento ŕ vista é de 10% sobre o valor total, calcule o valor a ser pago ŕ vista. Escreva o
//valor total, o valor do desconto e o valor a ser pago ŕ vista.
// Autor : Victor Edson da Cruz Homem
// Data :25/08/2020
import java.util.Scanner;
public class Principal {
public static void main(String []args) {
Scanner scanner = new Scanner(System.in);
System.out.print("Digite o valor do produto: ");
float valor = scanner.nextFloat();
float pagamento = (valor * 0.9f);
System.out.print("O valor com 10% de desconto para pagamento avista = R$"+pagamento);
scanner.close();
}
}
| [
"[email protected]"
] | |
12558efc11bf421181666d3efaa578edbf135fb3 | 0d8b80c13d711699b0b1e9e0a67fa5e94135f894 | /src/yandAlgh/sprint8/StringInsert.java | c1207d54712bf15cca89a4c5760ac195921f962c | [] | no_license | since85stas/LeetCode | ad3f6513c16af4e025a222cfb3eb772be6a4f82c | 40f793b122f50dd7f1ff24b2c208dcfe0e8e2367 | refs/heads/master | 2021-10-08T18:19:27.443319 | 2021-10-02T20:13:56 | 2021-10-02T20:13:56 | 233,897,117 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,834 | java | package yandAlgh.sprint8;
import java.io.*;
import java.util.*;
public class StringInsert {
public static void main(String[] args) throws IOException {
BufferedReader reader = new BufferedReader(new InputStreamReader(new FileInputStream(new File("input.txt"))));
StringTokenizer tokenizer = new StringTokenizer(reader.readLine());
String s = (tokenizer.nextToken());
tokenizer = new StringTokenizer(reader.readLine());
int n = Integer.parseInt(tokenizer.nextToken());
TreeSet<Insert> inserts = new TreeSet<>();
for (int i = 0; i < n; i++) {
tokenizer = new StringTokenizer(reader.readLine());
String str = tokenizer.nextToken();
int pos = Integer.parseInt(tokenizer.nextToken());
// inserts[i] = new Insert(str, pos);
inserts.add(new Insert(str, pos));
}
// Arrays.sort(inserts);
int offs = 0;
StringBuilder builder = new StringBuilder();
int start = 0;
for (int i = 0; i < n; i++) {
Insert insert = inserts.pollFirst();
// s.insert(insert.start + offs, insert.str);
// offs += insert.str.length;
builder.append(s, start, insert.start).append(insert.str);
start = insert.start;
}
if (start < s.length() && start > 0) builder.append(s, start, s.length());
System.out.println(builder.toString());
}
private static class Insert implements Comparable<Insert>{
char[] str;
int start;
public Insert(String str, int start) {
this.start = start;
this.str = str.toCharArray();
}
@Override
public int compareTo(Insert insert) {
return Integer.compare( start, insert.start);
}
}
}
| [
"[email protected]"
] | |
9cc5c1b5bf18d333c4e7dabf8211e72a3f0c3725 | ae6b81c27beb19b928d39034e2d102f568c4d76b | /ph-csscompress-maven-plugin/src/test/java/com/helger/maven/csscompress/SPITest.java | 3faa0bf28b54434a0fafac349f2d35f553f33a47 | [
"Apache-2.0"
] | permissive | elikonky-houzz/ph-css | 18d771476ffc98f2fe49aa0377b9ccb9bea26faa | f8d558cac89be6fe9162c200072b8696bba02071 | refs/heads/master | 2021-07-22T18:45:38.625018 | 2017-10-16T05:07:52 | 2017-10-16T05:07:52 | 108,165,518 | 0 | 0 | null | 2017-10-24T18:12:08 | 2017-10-24T18:12:07 | null | UTF-8 | Java | false | false | 990 | java | /**
* Copyright (C) 2014-2017 Philip Helger (www.helger.com)
* philip[at]helger[dot]com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.helger.maven.csscompress;
import org.junit.Test;
import com.helger.commons.mock.SPITestHelper;
/**
* Test SPI configuration consistency.
*
* @author Philip Helger
*/
public final class SPITest
{
@Test
public void testBasic () throws Exception
{
SPITestHelper.testIfAllSPIImplementationsAreValid ();
}
}
| [
"[email protected]"
] | |
b2c5e4efac43841aafb797a596e0d5bb6250e061 | 6472018b8a5a2b846fa6960f9fe97c34bffc08c0 | /app/src/test/java/de/fh_kiel/iue/mob/ExampleUnitTest.java | c2608c4b2ad1714426607937abf8650611c9b37d | [] | no_license | JannisWeichler/AndroidApp | 3d7cdd6305c0d99f08a5747a1abe87ee271e3708 | 7d1171fc88761be9b6268435683ebae2b90bbb58 | refs/heads/main | 2023-04-28T04:25:40.357448 | 2021-05-05T14:38:27 | 2021-05-05T14:38:27 | 364,606,683 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 379 | java | package de.fh_kiel.iue.mob;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Example local unit test, which will execute on the development machine (host).
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
public class ExampleUnitTest {
@Test
public void addition_isCorrect() {
assertEquals(4, 2 + 2);
}
} | [
"[email protected]"
] | |
87c517ce33e5e3c913a018f0765be047faa881a2 | 8d0536d36f5b4f9318831e28f408bc1abf433cca | /gamename-desktop/src/Game.java | ff35fb7c8d35c8654f046a2c6417e5ae798c36c0 | [] | no_license | TadejLogar/Multimedia | a8b81e1818389b6592ff2763d397748d3c6c5755 | e265002eb0a0155f18b73599fed51d707a8b303f | refs/heads/master | 2021-01-20T10:42:09.372749 | 2012-01-09T10:32:46 | 2012-01-09T10:32:46 | 2,635,131 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 17,097 | java | import java.awt.event.ComponentEvent;
import java.awt.event.ComponentListener;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.awt.Component;
import javax.media.opengl.GL;
import com.badlogic.gdx.ApplicationListener;
import com.badlogic.gdx.Files.FileType;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Input;
import com.badlogic.gdx.Input.Keys;
import com.badlogic.gdx.audio.Music;
import com.badlogic.gdx.audio.Sound;
import com.badlogic.gdx.files.FileHandle;
import com.badlogic.gdx.graphics.GL10;
import com.badlogic.gdx.graphics.g2d.BitmapFont;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.graphics.g3d.loaders.obj.ObjLoader;
import com.badlogic.gdx.ApplicationListener;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.Camera;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.GL10;
import com.badlogic.gdx.graphics.Mesh;
import com.badlogic.gdx.graphics.OrthographicCamera;
import com.badlogic.gdx.graphics.PerspectiveCamera;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.VertexAttribute;
import com.badlogic.gdx.graphics.VertexAttributes.Usage;
/*
*
Vaja 1 - 3D vsebine (Pametni telefon)
Uporabite knjižnico libgdx (http://code.google.com/p/libgdx/) za prikaz objektov v 3D.
Ustvarite enostaven primer (npr. prikaz trikotnika).
Implementirajte različne poglede (ortogonalni, perspektivni) ter omogočite nadzor nad kamero.
Omogočite interaktivno premikanje objekta po zaslonu in rotacijo objekta okoli svojih osi.
Poleg prikazovanja objekta naj aplikacija omogoča tudi nalaganje in predvajanje zvočnih posnetkov.
Zahteve:
Vzpostavitev 3D pogona in prikaz poljubnega objekta (3T)
Rotacija in translacija (3T)
Vključitev nalaganja in predvajanja zvoka(3T)
Rotacija poljubno prestavljenega objekta okoli lastnih osi (1T)
*
*/
public class Game implements ApplicationListener {
public class Type {
public static final int BOX = 1;
public static final int OBJECT1 = 2;
public static final int OBJECT2 = 3;
}
private int type;
private Mesh[] mesh;
private Camera camera;
private float rotX;
private float rotY;
private float rotZ = 2.0f;
private float zoom = 2;
private float width;
private float height;
private boolean isPerspective = true;
//private boolean first = true;
private Music music;
private String note;
private BitmapFont font;
private SpriteBatch spriteBatch;
private Mesh object;
private Texture texture;
public Game(int type) {
this.type = type;
}
public void setRotX(float rotX) {
this.rotX = rotX;
}
public void setRotY(float rotY) {
this.rotY = rotY;
}
public void setRotZ(float rotZ) {
this.rotZ = rotZ;
}
private void play(String file) {
if (music != null) music.stop();
music = Gdx.audio.newMusic(Gdx.files.getFileHandle("data/" + file, FileType.Internal));
music.play();
music.setLooping(true);
}
@Override
public void create() {
/*if (mesh == null) {
mesh = new Mesh(true, 3, 3, new VertexAttribute(Usage.Position, 3, "a_position"));
mesh.setVertices(new float[] { -0.5f, -0.5f, 0, 0.5f, -0.5f, 0, 0, 0.5f, 0 });
mesh.setIndices(new short[] { 0, 1, 2 });
}*/
if (mesh == null) {
spriteBatch = new SpriteBatch();
FileHandle handle = Gdx.files.getFileHandle("data/note.txt", FileType.Internal);
note = handle.readString();
font = new BitmapFont();
font.setColor(Color.RED);
play("Sidney Samson - 'Fill U Up' (Club Mix).mp3");
mesh = new Mesh[6]; // ploskve
for (int i = 0; i < 6; i++) {
mesh[i] = new Mesh(true, 4, 4,
new VertexAttribute(Usage.Position, 3, "a_position"), // namesto a_position je lahko karkoli
new VertexAttribute(Usage.ColorPacked, 4, "a_color"));
// statično, maksimalno vertikal, maksimalno indeksov, atributi
// 4 vertikale kvadrata
/*
* usage - the usage, used for the fixed function pipeline.
* Generic attributes are not supported in the fixed function pipeline.
* numComponents - the number of components of this attribute, must be between 1 and 4.
* alias - the alias used in a shader for this attribute. Can be changed after construction.
*/
mesh[i].setIndices(new short[] { 0, 1, 2, 3 }); // povezava oglišč
if (i == 0) {
mesh[0].setVertices(new float[] {
0.5f, 0.5f, 0.5f, Color.toFloatBits(0, 10, 255, 255), // x, y, z, barva: rgba
-0.5f, 0.5f, 0.5f, Color.toFloatBits(0, 10, 255, 255),
0.5f, -0.5f, 0.5f, Color.toFloatBits(0, 10, 255, 255),
-0.5f, -0.5f, 0.5f, Color.toFloatBits(0, 10, 255, 255) });
} else if (i == 1) {
mesh[1].setVertices(new float[] {
0.5f, 0.5f, -0.5f, Color.toFloatBits(255, 0, 0, 255),
-0.5f, 0.5f, -0.5f, Color.toFloatBits(255, 0, 0, 255),
0.5f, -0.5f, -0.5f, Color.toFloatBits(255, 0, 0, 255),
-0.5f, -0.5f, -0.5f, Color.toFloatBits(255, 0, 0, 255) });
} else if (i == 2) {
mesh[2].setVertices(new float[] {
0.5f, 0.5f, -0.5f, Color.toFloatBits(0, 255, 0, 255),
-0.5f, 0.5f, -0.5f, Color.toFloatBits(0, 255, 0, 255),
0.5f, 0.5f, 0.5f, Color.toFloatBits(0, 255, 0, 255),
-0.5f, 0.5f, 0.5f, Color.toFloatBits(0, 255, 0, 255) });
} else if (i == 3) {
mesh[3].setVertices(new float[] {
0.5f, -0.5f, -0.5f, Color.toFloatBits(0, 96, 0, 255),
-0.5f, -0.5f, -0.5f, Color.toFloatBits(0, 96, 0, 255),
0.5f, -0.5f, 0.5f, Color.toFloatBits(0, 96, 0, 255),
-0.5f, -0.5f, 0.5f, Color.toFloatBits(0, 96, 0, 255) });
} else if (i == 4) {
mesh[4].setVertices(new float[] {
0.5f, 0.5f, 0.5f, Color.toFloatBits(50, 50, 50, 255),
0.5f, -0.5f, 0.5f, Color.toFloatBits(50, 50, 50, 255),
0.5f, 0.5f, -0.5f, Color.toFloatBits(50, 50, 50, 255),
0.5f, -0.5f, -0.5f, Color.toFloatBits(50, 50, 50, 255) });
} else if (i == 5) {
mesh[5].setVertices(new float[] {
-0.5f, 0.5f, 0.5f, Color.toFloatBits(0, 0, 96, 255),
-0.5f, -0.5f, 0.5f, Color.toFloatBits(0, 0, 96, 255),
-0.5f, 0.5f, -0.5f, Color.toFloatBits(0, 0, 96, 255),
-0.5f, -0.5f, -0.5f, Color.toFloatBits(0, 0, 96, 255) });
}
if (type == Type.OBJECT1) {
object = ObjLoader.loadObj(Gdx.files.internal("data/xerai.obj").read()); // butterfly2.obj
texture = new Texture(Gdx.files.internal("data/x.jpg")); // badlogic.jpg
} else if (type == Type.OBJECT2) {
object = ObjLoader.loadObj(Gdx.files.internal("data/butterfly2.obj").read()); // butterfly2.obj
texture = new Texture(Gdx.files.internal("data/badlogic.jpg")); // badlogic.jpg
}
//cam.update();
//renderer.setProjectionMatrix(cam.combined);
//renderer.identity();
}
}
Gdx.gl.glEnable(GL10.GL_DEPTH_TEST);
}
@Override
public void dispose() { }
@Override
public void pause() { }
/*@Override
public void render() {
camera.translate(rotX, rotY, rotZ);
camera.update();
camera.apply(Gdx.gl10);
Gdx.gl.glClear(GL10.GL_COLOR_BUFFER_BIT);
mesh.render(GL10.GL_TRIANGLES, 0, 3);
}*/
/*private int total = 0;
private float movementIncrement = 0.01f;
private boolean move;*/
protected int lastTouchX;
protected int lastTouchY;
int deltaX;
int deltaY;
float i = 0;
private int angleX;
private int angleY;
private float camY;
private float camX;
private float light = 0.8f;
@Override
public void render() {
camera.position.set(rotX, rotY, rotZ);
camera.update();
boolean cameraPosition = true;
if (Gdx.input.isKeyPressed(Input.Keys.DOWN)) {
rotY += 0.03f;
} else if (Gdx.input.isKeyPressed(Input.Keys.UP)) {
rotY -= 0.03f;
} else if (Gdx.input.isKeyPressed(Input.Keys.LEFT)) {
rotX += 0.03f;
//camera.translate(0, 0, 0);
camera.rotate(0, -0.03f, 0, 0);
camera.translate(0.03f, 0, 0);
//camera.translate(-0.03f, 0, 0);
//camera.rotate(0.5f, -3f, 0, 0);
//camera.position.set(rotX, rotY, rotZ);
} else if (Gdx.input.isKeyPressed(Input.Keys.RIGHT)) {
rotX -= 0.03f;
//camera.translate(0, 0, 0);
//camera.translate(0, 0.03f, 0);
//camera.rotate(0, 0.03f, 0, 0);
//camera.rotate(1, 0, 0, 0);
//camera.position.set(rotX, rotY, rotZ);
} else if (Gdx.input.isKeyPressed(Input.Keys.S)) {
rotZ += 0.03f;
//camera.translate(0, 0, 1);
} else if (Gdx.input.isKeyPressed(Input.Keys.W)) {
rotZ -= 0.03f;
//camera.translate(0, 0, -1);
} else if (Gdx.input.isKeyPressed(Input.Keys.Q)) {
camera.rotate(-0.5f, 0, 0, 1);
} else if (Gdx.input.isKeyPressed(Input.Keys.A)) {
camera.rotate(0.5f, 0, 0, 1);
} else if (Gdx.input.isKeyPressed(Input.Keys.T)) {
//camera.rotate(0.5f, 1, 0, 0);
/*camera.position.x = 0;
camera.position.y = 0;
camera.position.z = 10;*/
rotZ += 0.03f;
camera.translate(0, 0, rotZ);
cameraPosition = false;
//camera.lookAt(0, 0, 0);
} else if (Gdx.input.isKeyPressed(Input.Keys.Z)) {
//camera.rotate(0.5f, 1, 0, 0);
camera.translate(500, 500, 570);
} else if (Gdx.input.isKeyPressed(Input.Keys.NUM_1)) {
play("Sidney Samson - 'Fill U Up' (Club Mix).mp3");
} else if (Gdx.input.isKeyPressed(Input.Keys.NUM_2)) {
play("Roll Deep Ft. Jodie Connor Good Times With Lyrics.mp3");
} else if (Gdx.input.isKeyPressed(Input.Keys.NUM_3)) {
play("David Guetta & Chris Willis ft Fergie & LMFAO - Gettin' Over You.mp3");
} else if (Gdx.input.isKeyPressed(Input.Keys.P)) {
music.play();
} else if (Gdx.input.isKeyPressed(Input.Keys.O)) {
music.pause();
} else if (Gdx.input.isKeyPressed(Input.Keys.N)) {
angleX -= 3;
updateCamera();
} else if (Gdx.input.isKeyPressed(Input.Keys.M)) {
angleX += 3;
updateCamera();
}
/*if (Gdx.input.isKeyPressed(Keys.PLUS)) {
zoom -= 0.1;
}
if (Gdx.input.isKeyPressed(Keys.MINUS)) {
zoom += 0.1;
}*/
//if (first) {
// camera.translate(rotX, rotY, rotZ);
// first = false;
//}/* else {
//camera.translate(0.01f, 0.01f, 0.01f);
//}*/
if (Gdx.input.isKeyPressed(Input.Keys.Y)) {
camera.lookAt(0, 0, 0);
cameraPosition = false;
//rotZ -= 0.03f;
//camera.translate(0, 0, rotZ);
}
if (cameraPosition) {
camera.position.set(rotX, rotY, rotZ);
}
camera.update();
camera.apply(Gdx.gl10);
Gdx.gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT); // počistimo sceno
//Gdx.gl.glEnable(GL10.GL_DEPTH_TEST);
//Gdx.gl.glClear(GL10.GL_COLOR_BUFFER_BIT);
//mesh.render(GL10.GL_TRIANGLES, 0, 3);
if (type == Type.BOX) {
for (Mesh face : mesh) {
face.render(GL10.GL_TRIANGLE_STRIP, 0, 4);
}
} else if (type == Type.OBJECT1 || type == Type.OBJECT2) {
GL10 gl = Gdx.gl10;
gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT);
gl.glEnable(GL10.GL_TEXTURE_2D);
gl.glEnable(GL10.GL_DEPTH_TEST);
gl.glColor4f(light , light, light, light);
// http://code.google.com/p/libgdx-users/wiki/MeshLighting
gl.glEnable(GL10.GL_LIGHTING);
// Enable up to n=8 light sources: GL_LIGHTn
gl.glEnable(GL10.GL_LIGHT0);
gl.glEnable(GL10.GL_LIGHT1);
gl.glEnable(GL10.GL_LIGHT2);
gl.glEnable(GL10.GL_LIGHT3);
gl.glEnable(GL10.GL_LIGHT4);
// light position
gl.glLightfv(GL10.GL_LIGHT0, GL10.GL_POSITION, new float[]{0, 0, 1, 1}, 0);
// Light that has been reflected by other objects and hits the mesh in small amounts
gl.glLightfv(GL10.GL_LIGHT0, GL10.GL_AMBIENT, new float[]{0.005f, 0.005f, 0.005f, 1f}, 0);
// setting diffuse light color like a bulb or neon tube
gl.glLightfv(GL10.GL_LIGHT1, GL10.GL_DIFFUSE, new float[]{0.9f, 0.9f, 0.7f, 1f}, 0);
// setting specular light color like a halogen spot
gl.glLightfv(GL10.GL_LIGHT2, GL10.GL_SPECULAR, new float[]{0.9f, 0.9f, 0.7f, 1f}, 0);
camera.update();
camera.apply(gl);
texture.bind();
object.render(GL10.GL_TRIANGLES);
}
/*total = rotX;
if (total > 5000) {
movementIncrement = -movementIncrement;
total = -2000;
}*/
//if (movementIncrement != 0) {
/*camera.translate(rotX, rotY, rotZ);
camera.rotate(rotX * 20, rotY * 20, rotZ * 20, 0);
rotX = 0;
rotY = 0;
rotZ = 0;*/
//}
/*camera.update();
camera.apply(Gdx.gl10);
Gdx.gl.glClear(GL10.GL_COLOR_BUFFER_BIT);
mesh.render(GL10.GL_TRIANGLES, 0, 3);*/
spriteBatch.begin();
font.drawMultiLine(spriteBatch, note, 20, Gdx.graphics.getHeight() - 20);
spriteBatch.end();
}
/*@Override
public void resize(int width, int height) {
float aspectRatio = (float) width / (float) height;
camera = new OrthographicCamera(2f * aspectRatio, 2f);
}*/
public void resize(int width, int height) {
this.width = width;
this.height = height;
setCamera();
/*float aspectRatio = (float) width / (float) height;
// camera = new OrthographicCamera(2f * aspectRatio, 2f); // ortografska kamera: 2d prostor
camera = new PerspectiveCamera(67, 2f * aspectRatio, 2f); // perspektivna kamera: 3d prostor: globina, dimenzije, oddaljenost
camera.near = 0.2f;
camera.translate(rotX, rotY, rotZ);*/
//setCamera();
}
private void updateCamera()
{
double x = angleX * 2 * Math.PI/360;
double y = angleY * 2 * Math.PI/360;
camera.position.x = (float)Math.sin(x) * zoom * (float)Math.cos(y) + camX;
camera.position.z = (float)Math.cos(x) * zoom * (float)Math.cos(y) ;
camera.position.y = (float)Math.sin(y) * zoom + camY;
camera.lookAt(0, 0, 0);
}
private void setCamera()
{
float aspectRatio = (float) width / (float) height;
camera = isPerspective
? new PerspectiveCamera(67, 2f * aspectRatio, 2f)
: new OrthographicCamera(2f * aspectRatio, 2f);
updateCamera();
}
private void setCameraOld() {
float aspectRatio = (float) width / (float) height;
if (isPerspective) {
camera = new PerspectiveCamera(67, 2f * aspectRatio, 2f);
} else {
camera = new OrthographicCamera(2f * aspectRatio, 2f);
}
camera.near = 0.1f;
camera.translate(0, 0, 0);
updateCamera();
}
private void updateCameraOld() {
/*double x = rotX * 2 * Math.PI / 360;
double y = rotY * 2 * Math.PI / 360;
camera.position.x = (float) Math.sin(x) * zoom * (float) Math.cos(y);
camera.position.z = (float) Math.cos(x) * zoom * (float) Math.cos(y);
camera.position.y = (float) Math.sin(y) * zoom;
camera.lookAt(0, 0, 0);
camera.update();*/
//camera.lookAt(0, 0, 0);
//camera.update();
}
@Override
public void resume() { }
} | [
"[email protected]"
] | |
bc1119aac8b1134bb3115d4ed43a1326df8b64d7 | 09aff8bb344163adfc41643268f5442b2d693db1 | /src/main/java/com/ocean/strategy/uml/Strategy.java | c2b477851c8d81ab449af7b0081e6f2e7042446e | [] | no_license | ocean-bit/design-patterns | 44704a3495039cb3a0a8dd2260d0bdc0c5ae2e3c | fe30304b3f52c9ebc2fa15684c7e32803414a272 | refs/heads/master | 2022-02-18T08:16:57.955823 | 2019-10-15T08:15:49 | 2019-10-15T08:15:49 | 208,934,748 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 264 | java | package com.ocean.strategy.uml;
/**
* @description 抽象策略
* @author OuShen<[email protected]>
* @date 2019-02-21
*/
public abstract class Strategy {
/**
* 统一的算法接口
* @return
*/
public abstract void algorithmMethod();
}
| [
"[email protected]"
] | |
0a60b8fade2be5db478cfebc8b1feae414a83527 | 413afbe8127ad959e937cce62f930e6aab8ed0b4 | /src/ch9J/chapter3_BianryTree/_09Binary_Tree_Maximum_Path_Sum_1.java | 524b338e5f99eec3680a6354c84ac5900942faeb | [] | no_license | zhufuzz/FLAG_leet | 1578a9676209ddb96d07c6a33b6e4e52edce60f9 | 2eec8430e5ac446d92cfdaf08a0d2353d7f82dbf | refs/heads/master | 2021-03-19T12:32:00.837186 | 2017-01-18T20:53:50 | 2017-01-18T20:53:50 | 65,138,096 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,444 | java | package ch9J.chapter3_BianryTree;
public class _09Binary_Tree_Maximum_Path_Sum_1 {
private class ResultType {
// singlePath: 从root往下走到任意点的最大路径,这条路径可以不包含任何点
// maxPath: 从树中任意到任意点的最大路径,这条路径至少包含一个点
int singlePath, maxPath;
ResultType(int singlePath, int maxPath) {
this.singlePath = singlePath;
this.maxPath = maxPath;
}
}
public int maxPathSum(TreeNode root) {
ResultType result = helper(root);
return result.maxPath;
}
private ResultType helper(TreeNode root) {
if (root == null) {
return new ResultType(0, Integer.MIN_VALUE);
}
// Divide
ResultType left = helper(root.left);
ResultType right = helper(root.right);
// Conquer
int singlePath = Math.max(left.singlePath, right.singlePath) + root.val;
singlePath = Math.max(singlePath, 0);
int maxPath = Math.max(left.maxPath, right.maxPath);
maxPath = Math.max(maxPath, left.singlePath + right.singlePath + root.val);
return new ResultType(singlePath, maxPath);
}
}
/*Given a binary tree, find the maximum path sum.
The path may start and end at any node in the tree.
Example: Given the below binary tree:
1
/ \
2 3
return 6.
Tags: Divide and Conquer Dynamic Programming Recursion
Related Problems: Medium Binary Tree Maximum Path Sum II 42 %
Easy Minimum Path Sum 34 %
*/ | [
"[email protected]"
] | |
307fc1e805b0ed08410c38d301efc9bb8115dc60 | 0cd3e2186dbd91362d08c969b9bbe529c6527d6b | /MagicDonny/app/src/test/java/mike/magicdonny_v2/ExampleUnitTest.java | f36dec6defd52d66efcd050daea97a39d4f95d09 | [] | no_license | michaelpiechota/Android-Projects | 37f50a8f45ae7f94ec7e3eb0af8429647047cd25 | f2ab231de4f09c7c00d736ff46c4bdc524ca0789 | refs/heads/master | 2020-06-01T00:32:14.398038 | 2017-11-07T23:28:23 | 2017-11-07T23:28:23 | 94,055,675 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 396 | java | package mike.magicdonny_v2;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Example local unit test, which will execute on the development machine (host).
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
public class ExampleUnitTest {
@Test
public void addition_isCorrect() throws Exception {
assertEquals(4, 2 + 2);
}
} | [
"[email protected]"
] | |
1318e26620f3c6dacfed159048293a9c686d89e8 | f32da0c2ad175f1e2e5be97d9c35fb12683ea622 | /src/NPath.java | 7a240431fd02a2b7b7beb06aef907f38ba389e28 | [] | no_license | MinhTranCA/VGED | 7d3437390af9fe2dc69df37d01320d5937b1f827 | 8af90d890f6f6c3b82cb759bec13bc713131de4a | refs/heads/master | 2021-04-09T13:47:30.038500 | 2018-02-26T18:36:01 | 2018-02-26T18:36:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 319 | java | public class NPath {
private String value;
private int count;
public NPath(String value, int cnt) {
this.value = value;
this.count = cnt;
}
public void increaseCountBy(int addition) {
this.count += addition;
}
public String getValue() {
return value;
}
public int getCount() {
return count;
}
}
| [
"[email protected]"
] | |
8d02c8502a961925045e66914a08140018e664bb | d19eb3927251ffe5a1175ce23b560338a79da4bf | /src/test/java/com/leederedu/elastic/PercolateDemoTest.java | 3ed08ea81fbc77e7d813a81d33f2feea496a8200 | [] | no_license | luwuqiang/elasticsearch-demo | b3bbff9668829f11791719442f027ed8c1ca18d1 | 78fcbb2eebc65337c1010ac93b0569a7d4a41933 | refs/heads/master | 2020-06-28T23:04:21.600915 | 2016-12-01T03:01:32 | 2016-12-01T03:01:32 | 74,460,049 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,297 | java | package com.leederedu.elastic;
import org.elasticsearch.action.percolate.PercolateResponse;
import org.elasticsearch.common.xcontent.XContentBuilder;
import org.elasticsearch.common.xcontent.XContentFactory;
import org.elasticsearch.index.query.QueryBuilder;
import org.junit.Test;
import java.io.IOException;
import static org.elasticsearch.common.xcontent.XContentFactory.jsonBuilder;
import static org.elasticsearch.index.query.QueryBuilders.termQuery;
/**
* Created by liuwuqiang on 2016/11/23.
*/
public class PercolateDemoTest extends AbstractTest {
@Test
public void percolate() throws IOException {
//This is the query we're registering in the percolator
QueryBuilder qb = termQuery("content", "amazing");
//Index the query = register it in the percolator
client.prepareIndex("myIndexName", ".percolator", "myDesignatedQueryName")
.setSource(jsonBuilder()
.startObject()
.field("query", qb) // Register the query
.endObject())
.setRefresh(true) // Needed when the query shall be available immediately
.execute().actionGet();
// ------------------------------------------------------------------
// This indexes the above term query under the name myDesignatedQueryName.
// In order to check a document against the registered queries, use this code:
//Build a document to check against the percolator
XContentBuilder docBuilder = XContentFactory.jsonBuilder().startObject();
docBuilder.field("doc").startObject(); //This is needed to designate the document
docBuilder.field("content", "This is amazing!");
docBuilder.endObject(); //End of the doc field
docBuilder.endObject(); //End of the JSON root object
//Percolate
PercolateResponse response = client.preparePercolate()
.setIndices("myIndexName")
.setDocumentType("myDocumentType")
.setSource(docBuilder).execute().actionGet();
//Iterate over the results
for (PercolateResponse.Match match : response) {
//Handle the result which is the name of
//the query in the percolator
}
}
}
| [
"[email protected]"
] | |
d50db7e589253b6cdfc0094276862644c647c337 | c4ab8a0bbc5a87a76a6a91c8d750d2f1368892cf | /src/main/java/com/michaelyu/playlisttracker/models/TrackInfo.java | b3040038f90f19820e8f376e686bad850543704d | [] | no_license | michael1yu/Playlist-Tracker | 7000cd2e59975f3fbb035645afc7c084b5e143dc | 94f858b3659b329bce0713847b4b184bf950e881 | refs/heads/master | 2022-06-06T00:49:59.708101 | 2019-09-22T05:44:31 | 2019-09-22T05:44:31 | 201,358,093 | 0 | 0 | null | 2022-05-20T21:06:00 | 2019-08-09T00:27:45 | Java | UTF-8 | Java | false | false | 481 | java | package com.michaelyu.playlisttracker.models;
import com.google.gson.annotations.SerializedName;
public class TrackInfo {
@SerializedName("name")
private String name;
@SerializedName("url")
private String url;
@SerializedName("album")
private Album album;
public String getName() {
return name;
}
public String getUrl() {
return url;
}
public Album getAlbum() {
return album;
}
}
| [
"[email protected]"
] | |
ff3b27228cd2895574fe499745f515d8442bb3ba | 2dd80914c888a60163f22a526e94107c6fa13a20 | /src/main/java/com/example/entity/ChooseCourse.java | c93f828d86e6b85b434193efff1163557836a637 | [] | no_license | yangbaoyan/SPM-Website | 0c82842b1eb19ab4d54aae44a16d58a83fd57481 | a1dca8aaf563c52c399441c68a7f1a04c8fc80c1 | refs/heads/master | 2020-03-17T16:50:43.993427 | 2018-05-17T02:32:34 | 2018-05-17T02:32:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 407 | java | package com.example.entity;
public class ChooseCourse {
private Course course;
private Student student;
public Course getCourse() {
return course;
}
public void setCourse(Course course) {
this.course = course;
}
public Student getStudent() {
return student;
}
public void setStudent(Student student) {
this.student = student;
}
} | [
"[email protected]"
] | |
dc0a293b3785358bf91e68a20166c459c5dd3140 | f89849c20b64de16288588cdf4907588d0d30635 | /SavannaPredatorPreySimulation/src/SavannaPredatorPreySimulation/Randomizer.java | 0839583696f6c8fa44adf8c9309a168f1fd0391c | [] | no_license | dkolley/Savanna-Simulation | 8a7f5c922d7f681b54dc5c4de883bb62d1a7487d | 1cbd573a94c725ad4250f3a800b1088de882e474 | refs/heads/master | 2023-05-24T21:20:32.476435 | 2021-06-07T13:03:48 | 2021-06-07T13:03:48 | 374,206,881 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,396 | java | package SavannaPredatorPreySimulation;
import java.util.Random;
/**
* Provide control over the randomization of the simulation. By using the shared, fixed-seed
* randomizer, repeated runs will perform exactly the same (which helps with testing). Set
* 'useShared' to false to get different random behaviour every time.
*
* @author Dennis Kolley
* @version 2021.03.01
*/
public class Randomizer
{
// The default seed for control of randomization.
private static final int SEED = 1111;
// A shared Random object, if required.
private static final Random rand = new Random(SEED);
// Determine whether a shared random generator is to be provided.
private static final boolean useShared = true;
/**
* Constructor for objects of class Randomizer
*/
public Randomizer()
{
}
/**
* Provide a random generator.
* @return A random object.
*/
public static Random getRandom()
{
if(useShared) {
return rand;
}
else {
return new Random();
}
}
/**
* Reset the randomization.
* This will have no effect if randomization is not through
* a shared Random generator.
*/
public static void reset()
{
if(useShared) {
rand.setSeed(SEED);
}
}
}
| [
"[email protected]"
] | |
e87acd63d0cc4eacad4d7ed94de4694417894025 | 25119a580cec6df309e348400d3f58ef419f007d | /src/test/java/com/project/springsecurity/SpringsecurityApplicationTests.java | 3cfbd00354d2f78c8b7c97662b0aed76fb5f861b | [] | no_license | alancci/springsecurity | b97f7aad53d3ed1a2b51ff214a4b13db337142e0 | 9be1272e93295b578c1213d5e74b3dbdbc305d45 | refs/heads/master | 2022-11-28T21:13:18.645104 | 2020-08-06T08:39:51 | 2020-08-06T08:39:51 | 283,913,830 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 235 | java | package com.project.springsecurity;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class SpringsecurityApplicationTests {
@Test
void contextLoads() {
}
}
| [
"[email protected]"
] | |
534e621a58234d1244c208634676306bbcf480b4 | 72960a3e2bdbb01b16245a1ad4cccbdfa0553b93 | /src/SS-SIGES-ejb/src/main/java/com/sofis/business/timer/ITimerScheduler.java | 4559319c0f61b2029068ca01b6bb5e001a9b022a | [] | no_license | AGESIC-UY/siges | 0629afbc42f35add7db4dc10a7189cac79073ce5 | d809ced53759dd82314a3a481a79b731a3e15bc4 | refs/heads/master | 2023-08-04T04:00:56.709793 | 2023-07-20T18:21:51 | 2023-07-20T18:21:51 | 224,908,836 | 2 | 4 | null | 2020-07-02T01:27:26 | 2019-11-29T19:05:15 | Java | UTF-8 | Java | false | false | 273 | java | package com.sofis.business.timer;
import javax.ejb.Remote;
/**
*
* @author Usuario
*/
@Remote
public interface ITimerScheduler {
/** starts the timer */
public void startUpTimer();
/** stops all the timers */
public void shutDownTimer();
}
| [
"[email protected]"
] | |
5d86f7c79d6c0d61a925d122edfca9cf9009d56e | 85587b05bd86875fceac1e5159fdcb11a15dbcc2 | /src/main/java/com/vitja/study/degree/dto/ReviewDTO.java | df31ffc067ec42718a28a5d02e8636c293a2a7dc | [] | no_license | vitjazzz/pathbuilderpub | c450c6adc08ba4ee49b7efe03264aa282b84a52e | b222ef9dbd90a04c9a7d313e1e7220594987c8c4 | refs/heads/master | 2020-03-19T03:29:29.928925 | 2018-06-01T15:21:27 | 2018-06-01T15:21:27 | 135,732,954 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 354 | java | package com.vitja.study.degree.dto;
public class ReviewDTO {
public String venueId;
public String username;
public String review;
public ReviewDTO(String venueId, String username, String review) {
this.venueId = venueId;
this.username = username;
this.review = review;
}
public ReviewDTO() {
}
}
| [
"[email protected]"
] | |
964a5789054b44f57cf3b584e65b348cc1d22b6b | 75f0779fc20beed559ddd170f5fc261970991063 | /fastpizza-admin/app/src/main/java/app/mobilebrainz/fastpizza/admin/fragment/OrderFragment.java | e2152a6da52e12c6f9f85d4067bf94f361a20180 | [] | no_license | OneoKoz/Pizza_App | dc07241df82578d29fe8f2cf6103a07a5118758d | 23a18e45271ff9e515f3900c1fd3d7e3e41176eb | refs/heads/master | 2023-07-11T13:42:20.766115 | 2021-08-16T17:06:07 | 2021-08-16T17:06:07 | 396,890,637 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 9,126 | java | package app.mobilebrainz.fastpizza.admin.fragment;
import android.annotation.SuppressLint;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.firebase.ui.firestore.FirestoreRecyclerOptions;
import com.google.firebase.firestore.CollectionReference;
import com.google.firebase.firestore.DocumentReference;
import com.google.firebase.firestore.DocumentSnapshot;
import com.google.firebase.firestore.FirebaseFirestore;
import com.google.firebase.firestore.ListenerRegistration;
import com.google.firebase.firestore.Query;
import com.google.firebase.firestore.WriteBatch;
import java.text.SimpleDateFormat;
import java.util.List;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.appcompat.view.menu.MenuBuilder;
import androidx.recyclerview.widget.ItemTouchHelper;
import androidx.recyclerview.widget.RecyclerView;
import androidx.swiperefreshlayout.widget.SwipeRefreshLayout;
import app.mobilebrainz.fastpizza.admin.R;
import app.mobilebrainz.fastpizza.admin.adapter.BasketAdapter;
import app.mobilebrainz.fastpizza.admin.model.Basket;
import app.mobilebrainz.fastpizza.admin.model.Order;
import static androidx.recyclerview.widget.ItemTouchHelper.LEFT;
import static androidx.recyclerview.widget.ItemTouchHelper.RIGHT;
import static app.mobilebrainz.fastpizza.admin.fragment.OrderFragmentDirections.toOrdersFragment;
import static app.mobilebrainz.fastpizza.admin.model.Schema.BASKET_COLLECTION;
import static app.mobilebrainz.fastpizza.admin.model.Schema.Basket.ORDER_FIELD;
import static app.mobilebrainz.fastpizza.admin.model.Schema.Basket.SIZE_FIELD;
import static app.mobilebrainz.fastpizza.admin.model.Schema.ORDERS_COLLECTION;
import static app.mobilebrainz.fastpizza.admin.model.Schema.USERS_COLLECTION;
/**
* Фрагмент отображения данных заказа, списка пиц в заказе и кнопки удаления заказа.
*/
public class OrderFragment extends BaseFragment {
private String orderId;
private Order order;
private final FirebaseFirestore db = FirebaseFirestore.getInstance();
private ListenerRegistration registration;
private BasketAdapter basketAdapter;
private List<DocumentSnapshot> basketDocs;
private SwipeRefreshLayout swipeRefreshLayout;
private RecyclerView recyclerView;
private TextView phoneView;
private TextView addressView;
private TextView dateView;
@Override
public void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setHasOptionsMenu(true);
}
@Override
public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View view = inflate(R.layout.fragment_order, container);
swipeRefreshLayout = view.findViewById(R.id.swipeRefreshLayout);
recyclerView = view.findViewById(R.id.recyclerView);
phoneView = view.findViewById(R.id.phoneView);
addressView = view.findViewById(R.id.addressView);
dateView = view.findViewById(R.id.dateView);
swipeRefreshLayout.setEnabled(false);
return view;
}
@Override
public void onActivityCreated(@Nullable Bundle savedInstanceState) {
super.onActivityCreated(savedInstanceState);
if (getArguments() != null) {
OrderFragmentArgs args = OrderFragmentArgs.fromBundle(getArguments());
orderId = args.getId();
loadOrder();
}
}
@Override
@SuppressLint("RestrictedApi")
public void onCreateOptionsMenu(@NonNull Menu menu, @NonNull MenuInflater inflater) {
menu.clear();
inflater.inflate(R.menu.order_fragment_options_menu, menu);
if (menu instanceof MenuBuilder) {
((MenuBuilder) menu).setOptionalIconsVisible(true);
}
super.onCreateOptionsMenu(menu, inflater);
}
@Override
@SuppressLint("NonConstantResourceId")
public boolean onOptionsItemSelected(@NonNull MenuItem item) {
if (item.getItemId() == R.id.delete && orderId != null) {
deleteOrder();
return true;
}
return false;
}
/**
* Загрузить заказ из firestore сервер.
*/
private void loadOrder() {
swipeRefreshLayout.setRefreshing(true);
registration = db.collection(ORDERS_COLLECTION).document(orderId)
.addSnapshotListener((snapshot, error) -> {
swipeRefreshLayout.setRefreshing(false);
if (error != null) {
showErrorSnackbar(R.string.error_app, R.string.snackbar_retry, v -> loadOrder());
return;
}
if (snapshot != null && snapshot.exists()) {
order = snapshot.toObject(Order.class);
initData();
setUpRecyclerView();
}
});
}
private void initData() {
phoneView.setText(getString(R.string.phone_view, order.getPhone()));
addressView.setText(getString(R.string.address_view, order.getAddress()));
@SuppressLint("SimpleDateFormat")
SimpleDateFormat formatter = new SimpleDateFormat("dd/MM/yyyy hh:mm");
String strDate= formatter.format(order.getDate().toDate());
dateView.setText(getString(R.string.date_view, strDate));
}
/**
* Загрузить список пицц из firestore и передать в recyclerView
*/
private void setUpRecyclerView() {
swipeRefreshLayout.setRefreshing(true);
Query query = getBasketCollecion(order.getUser())
.whereEqualTo(ORDER_FIELD, orderId)
.orderBy(SIZE_FIELD);
query.addSnapshotListener((value, error) -> {
swipeRefreshLayout.setRefreshing(false);
if (error != null) {
showErrorSnackbar(R.string.error_app, R.string.snackbar_retry, v -> setUpRecyclerView());
}
if (value != null && !value.isEmpty()) {
basketDocs = value.getDocuments();
}
});
FirestoreRecyclerOptions<Basket> options = new FirestoreRecyclerOptions.Builder<Basket>()
.setQuery(query, Basket.class)
.build();
basketAdapter = new BasketAdapter(options);
recyclerView.setHasFixedSize(true);
recyclerView.setAdapter(basketAdapter);
basketAdapter.startListening();
initDeleteOnSwipe();
}
/**
* Создать удаление пиццы из заказа свайпом влево или вправо.
*/
private void initDeleteOnSwipe() {
new ItemTouchHelper(new ItemTouchHelper.SimpleCallback(0, LEFT | RIGHT) {
@Override
public boolean onMove(@NonNull RecyclerView recyclerView, @NonNull RecyclerView.ViewHolder viewHolder, @NonNull RecyclerView.ViewHolder target) {
return false;
}
@Override
public void onSwiped(@NonNull RecyclerView.ViewHolder viewHolder, int direction) {
basketAdapter.deleteItem(viewHolder.getAdapterPosition());
}
}).attachToRecyclerView(recyclerView);
}
/**
* Delete order and all baskets with orderId
*/
private void deleteOrder() {
WriteBatch batch = db.batch();
// delete baskets with orderId
if (basketDocs != null) {
for (DocumentSnapshot doc : basketDocs) {
DocumentReference basketDoc = getBasketCollecion(order.getUser()).document(doc.getId());
batch.delete(basketDoc);
}
}
// Delete order
DocumentReference orderDoc = db.collection(ORDERS_COLLECTION).document(orderId);
batch.delete(orderDoc);
swipeRefreshLayout.setRefreshing(true);
batch.commit()
.addOnSuccessListener(docRef -> {
swipeRefreshLayout.setRefreshing(false);
navigate(toOrdersFragment());
})
.addOnFailureListener(e -> {
swipeRefreshLayout.setRefreshing(false);
showErrorSnackbar(R.string.error_app, R.string.snackbar_retry, v -> deleteOrder());
});
}
private CollectionReference getBasketCollecion(String userId) {
return db.collection(USERS_COLLECTION).document(userId)
.collection(BASKET_COLLECTION);
}
@Override
public void onStart() {
super.onStart();
if (basketAdapter != null) {
basketAdapter.startListening();
}
}
@Override
public void onStop() {
super.onStop();
basketAdapter.stopListening();
if (registration != null) {
registration.remove();
}
}
} | [
"[email protected]"
] | |
a9c22034140040c151675b1db1071825524334df | 30cab93e6e3ebafa0fa2f69101eab9fa16aff95b | /app/src/main/java/com/element/carbon/HomeActivity.java | 3efae60e6917a4a34ea30c838d4672d1b7c65dc9 | [] | no_license | RahulRajput1999/carbonAndroid | 78ba6cb2a67587ece4bfec00442ba325d295d629 | 07b403b704550dd2e480ca3bcb5cccac93856e53 | refs/heads/master | 2020-04-23T10:01:46.403714 | 2019-02-17T06:56:06 | 2019-02-17T06:56:06 | 171,090,292 | 1 | 1 | null | null | null | null | UTF-8 | Java | false | false | 24,226 | java | package com.element.carbon;
import android.Manifest;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.pm.PackageManager;
import android.hardware.Camera;
import android.os.Build;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.design.bottomappbar.BottomAppBar;
import android.support.design.widget.CoordinatorLayout;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.v4.app.ActivityCompat;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.util.Log;
import android.view.GestureDetector;
import android.view.MotionEvent;
import android.view.ScaleGestureDetector;
import android.view.View;
import android.view.Menu;
import android.view.MenuItem;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.widget.TextView;
import android.widget.Toast;
import com.android.volley.Request;
import com.android.volley.RequestQueue;
import com.android.volley.Response;
import com.android.volley.VolleyError;
import com.android.volley.toolbox.JsonObjectRequest;
import com.android.volley.toolbox.Volley;
import com.element.carbon.camera.CameraSource;
import com.element.carbon.camera.CameraSourcePreview;
import com.element.carbon.camera.GraphicOverlay;
import com.google.android.gms.common.ConnectionResult;
import com.google.android.gms.common.GoogleApiAvailability;
import com.google.android.gms.common.api.CommonStatusCodes;
import com.google.android.gms.vision.MultiProcessor;
import com.google.android.gms.vision.barcode.Barcode;
import com.google.android.gms.vision.barcode.BarcodeDetector;
import org.json.JSONObject;
import java.io.IOException;
public class HomeActivity extends AppCompatActivity implements BarcodeGraphicTracker.BarcodeUpdateListener {
TextView mTextView;
String sessionID;
FloatingActionButton fab;
View root;
RequestQueue requestQueue;
private BottomAppBar bottomAppBar;
private static final String TAG = "Barcode-reader";
private CoordinatorLayout coordinatorLayout;
// intent request code to handle updating play services if needed.
private static final int RC_HANDLE_GMS = 9001;
// permission request codes need to be < 256
private static final int RC_HANDLE_CAMERA_PERM = 2;
// constants used to pass extra data in the intent
public static final String AutoFocus = "AutoFocus";
public static final String UseFlash = "UseFlash";
public static final String BarcodeObject = "Barcode";
private CameraSource mCameraSource;
private CameraSourcePreview mPreview;
private GraphicOverlay<BarcodeGraphic> mGraphicOverlay;
// helper objects for detecting taps and pinches.
private ScaleGestureDetector scaleGestureDetector;
private GestureDetector gestureDetector;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_home);
bottomAppBar = (BottomAppBar) findViewById(R.id.bottomAppBar);
setSupportActionBar(bottomAppBar);
mTextView = (TextView) findViewById(R.id.homeText);
Intent intent = this.getIntent();
Bundle b = intent.getExtras();
sessionID = b.get("sessionID").toString();
requestQueue = Volley.newRequestQueue(this);
fab = (FloatingActionButton) findViewById(R.id.fabHome);
fab.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Intent intent = new Intent(HomeActivity.this,CartActivity.class);
intent.putExtra("sessionID",sessionID);
startActivity(intent);
}
});
mPreview = (CameraSourcePreview) findViewById(R.id.preview);
coordinatorLayout = (CoordinatorLayout) findViewById(R.id.homeCoordinator);
mGraphicOverlay = (GraphicOverlay<BarcodeGraphic>) findViewById(R.id.graphicOverlay);
// read parameters from the intent used to launch the activity.
boolean autoFocus = getIntent().getBooleanExtra(AutoFocus, false);
boolean useFlash = getIntent().getBooleanExtra(UseFlash, false);
// Check for the camera permission before accessing the camera. If the
// permission is not granted yet, request permission.
int rc = ActivityCompat.checkSelfPermission(this, Manifest.permission.CAMERA);
if (rc == PackageManager.PERMISSION_GRANTED) {
createCameraSource(autoFocus, useFlash);
} else {
requestCameraPermission();
}
gestureDetector = new GestureDetector(this, new HomeActivity.CaptureGestureListener());
scaleGestureDetector = new ScaleGestureDetector(this, new HomeActivity.ScaleListener());
}
private void requestCameraPermission() {
Log.w(TAG, "Camera permission is not granted. Requesting permission");
final String[] permissions = new String[]{Manifest.permission.CAMERA};
if (!ActivityCompat.shouldShowRequestPermissionRationale(this,
Manifest.permission.CAMERA)) {
ActivityCompat.requestPermissions(this, permissions, RC_HANDLE_CAMERA_PERM);
return;
}
final Activity thisActivity = this;
View.OnClickListener listener = new View.OnClickListener() {
@Override
public void onClick(View view) {
ActivityCompat.requestPermissions(thisActivity, permissions,
RC_HANDLE_CAMERA_PERM);
}
};
findViewById(R.id.topLayout).setOnClickListener(listener);
Snackbar.make(mGraphicOverlay, R.string.permission_camera_rationale,
Snackbar.LENGTH_INDEFINITE)
.setAction(R.string.ok, listener)
.show();
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.menu_home, menu);
return true;
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
// Handle action bar item clicks here. The action bar will
// automatically handle clicks on the Home/Up button, so long
// as you specify a parent activity in AndroidManifest.xml.
int id = item.getItemId();
//noinspection SimplifiableIfStatement
switch (id){
case R.id.settings:
Snackbar.make(coordinatorLayout,R.string.action_settings,Snackbar.LENGTH_SHORT).show();
break;
case R.id.help:
Snackbar.make(mGraphicOverlay,R.string.action_help,Snackbar.LENGTH_SHORT).show();
break;
case R.id.about:
Snackbar.make(mGraphicOverlay,R.string.action_about,Snackbar.LENGTH_SHORT).show();
break;
case R.id.btn_logout:
ShowLogoutDialog("Do you want to log out?","All items from your cart will be removed!");
break;
default:
break;
}
return super.onOptionsItemSelected(item);
}
public void ShowLogoutDialog(final String message, final String summery) {
AlertDialog.Builder builder = new AlertDialog.Builder(this);
builder.setCancelable(false);
builder.setTitle(message);
builder.setMessage(summery);
builder.setPositiveButton("OK", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialogInterface, int i) {
final String data = "{}";
try {
final String reqBody = "{customerID: '"+ sessionID +"'}";
final JSONObject req = new JSONObject(reqBody);
final String url = "http://192.168.43.113:3000/logout";
JsonObjectRequest jsonObjectRequest = new JsonObjectRequest
(Request.Method.POST, url, req, new Response.Listener<JSONObject>() {
@Override
public void onResponse(JSONObject response) {
try {
if(response.getBoolean("status")) {
CacheHandler.saveFile("data.cache", getCacheDir(), "{}");
finish();
} else {
Snackbar.make(mGraphicOverlay, response.get("error").toString(),Snackbar.LENGTH_LONG).show();
}
} catch (Exception e) {
e.printStackTrace();
}
}
}, new Response.ErrorListener() {
@Override
public void onErrorResponse(VolleyError error) {
mTextView.setText(error.toString());
}
});
requestQueue.add(jsonObjectRequest);
} catch (Exception e){
e.printStackTrace();
}
}
});
builder.setNegativeButton("Cancel", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialogInterface, int i) {
}
});
builder.create().show();
}
@Override
public boolean onTouchEvent(MotionEvent e) {
boolean b = scaleGestureDetector.onTouchEvent(e);
boolean c = gestureDetector.onTouchEvent(e);
return b || c || super.onTouchEvent(e);
}
/**
* Creates and starts the camera. Note that this uses a higher resolution in comparison
* to other detection examples to enable the barcode detector to detect small barcodes
* at long distances.
*
* Suppressing InlinedApi since there is a check that the minimum version is met before using
* the constant.
*/
@SuppressLint("InlinedApi")
private void createCameraSource(boolean autoFocus, boolean useFlash) {
Context context = getApplicationContext();
// A barcode detector is created to track barcodes. An associated multi-processor instance
// is set to receive the barcode detection results, track the barcodes, and maintain
// graphics for each barcode on screen. The factory is used by the multi-processor to
// create a separate tracker instance for each barcode.
BarcodeDetector barcodeDetector = new BarcodeDetector.Builder(context).build();
BarcodeTrackerFactory barcodeFactory = new BarcodeTrackerFactory(mGraphicOverlay, this);
barcodeDetector.setProcessor(
new MultiProcessor.Builder<>(barcodeFactory).build());
if (!barcodeDetector.isOperational()) {
// Note: The first time that an app using the barcode or face API is installed on a
// device, GMS will download a native libraries to the device in order to do detection.
// Usually this completes before the app is run for the first time. But if that
// download has not yet completed, then the above call will not detect any barcodes
// and/or faces.
//
// isOperational() can be used to check if the required native libraries are currently
// available. The detectors will automatically become operational once the library
// downloads complete on device.
Log.w(TAG, "Detector dependencies are not yet available.");
// Check for low storage. If there is low storage, the native library will not be
// downloaded, so detection will not become operational.
IntentFilter lowstorageFilter = new IntentFilter(Intent.ACTION_DEVICE_STORAGE_LOW);
boolean hasLowStorage = registerReceiver(null, lowstorageFilter) != null;
if (hasLowStorage) {
Toast.makeText(this, R.string.low_storage_error, Toast.LENGTH_LONG).show();
Log.w(TAG, getString(R.string.low_storage_error));
}
}
// Creates and starts the camera. Note that this uses a higher resolution in comparison
// to other detection examples to enable the barcode detector to detect small barcodes
// at long distances.
CameraSource.Builder builder = new CameraSource.Builder(getApplicationContext(), barcodeDetector)
.setFacing(CameraSource.CAMERA_FACING_BACK)
.setRequestedPreviewSize(1600, 1024)
.setRequestedFps(15.0f);
// make sure that auto focus is an available option
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) {
builder = builder.setFocusMode(
autoFocus ? Camera.Parameters.FOCUS_MODE_CONTINUOUS_PICTURE : null);
}
mCameraSource = builder
.setFlashMode(useFlash ? Camera.Parameters.FLASH_MODE_TORCH : null)
.build();
}
/**
* Restarts the camera.
*/
@Override
protected void onResume() {
super.onResume();
startCameraSource();
}
/**
* Stops the camera.
*/
@Override
protected void onPause() {
super.onPause();
if (mPreview != null) {
mPreview.stop();
}
}
/**
* Releases the resources associated with the camera source, the associated detectors, and the
* rest of the processing pipeline.
*/
@Override
protected void onDestroy() {
super.onDestroy();
if (mPreview != null) {
mPreview.release();
}
}
/**
* Callback for the result from requesting permissions. This method
* is invoked for every call on {@link #requestPermissions(String[], int)}.
* <p>
* <strong>Note:</strong> It is possible that the permissions request interaction
* with the user is interrupted. In this case you will receive empty permissions
* and results arrays which should be treated as a cancellation.
* </p>
*
* @param requestCode The request code passed in {@link #requestPermissions(String[], int)}.
* @param permissions The requested permissions. Never null.
* @param grantResults The grant results for the corresponding permissions
* which is either {@link PackageManager#PERMISSION_GRANTED}
* or {@link PackageManager#PERMISSION_DENIED}. Never null.
* @see #requestPermissions(String[], int)
*/
@Override
public void onRequestPermissionsResult(int requestCode,
@NonNull String[] permissions,
@NonNull int[] grantResults) {
if (requestCode != RC_HANDLE_CAMERA_PERM) {
Log.d(TAG, "Got unexpected permission result: " + requestCode);
super.onRequestPermissionsResult(requestCode, permissions, grantResults);
return;
}
if (grantResults.length != 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) {
Log.d(TAG, "Camera permission granted - initialize the camera source");
// we have permission, so create the camerasource
boolean autoFocus = getIntent().getBooleanExtra(AutoFocus,false);
boolean useFlash = getIntent().getBooleanExtra(UseFlash, false);
createCameraSource(autoFocus, useFlash);
return;
}
Log.e(TAG, "Permission not granted: results len = " + grantResults.length +
" Result code = " + (grantResults.length > 0 ? grantResults[0] : "(empty)"));
DialogInterface.OnClickListener listener = new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
finish();
}
};
AlertDialog.Builder builder = new AlertDialog.Builder(this);
builder.setTitle("Multitracker sample")
.setMessage(R.string.no_camera_permission)
.setPositiveButton(R.string.ok, listener)
.show();
}
/**
* Starts or restarts the camera source, if it exists. If the camera source doesn't exist yet
* (e.g., because onResume was called before the camera source was created), this will be called
* again when the camera source is created.
*/
private void startCameraSource() throws SecurityException {
// check that the device has play services available.
int code = GoogleApiAvailability.getInstance().isGooglePlayServicesAvailable(
getApplicationContext());
if (code != ConnectionResult.SUCCESS) {
Dialog dlg =
GoogleApiAvailability.getInstance().getErrorDialog(this, code, RC_HANDLE_GMS);
dlg.show();
}
if (mCameraSource != null) {
try {
mPreview.start(mCameraSource, mGraphicOverlay);
} catch (IOException e) {
Log.e(TAG, "Unable to start camera source.", e);
mCameraSource.release();
mCameraSource = null;
}
}
}
/**
* onTap returns the tapped barcode result to the calling Activity.
*
* @param rawX - the raw position of the tap
* @param rawY - the raw position of the tap.
* @return true if the activity is ending.
*/
private boolean onTap(float rawX, float rawY) {
// Find tap point in preview frame coordinates.
int[] location = new int[2];
mGraphicOverlay.getLocationOnScreen(location);
float x = (rawX - location[0]) / mGraphicOverlay.getWidthScaleFactor();
float y = (rawY - location[1]) / mGraphicOverlay.getHeightScaleFactor();
// Find the barcode whose center is closest to the tapped point.
Barcode best = null;
float bestDistance = Float.MAX_VALUE;
for (BarcodeGraphic graphic : mGraphicOverlay.getGraphics()) {
Barcode barcode = graphic.getBarcode();
if (barcode.getBoundingBox().contains((int) x, (int) y)) {
// Exact hit, no need to keep looking.
best = barcode;
break;
}
float dx = x - barcode.getBoundingBox().centerX();
float dy = y - barcode.getBoundingBox().centerY();
float distance = (dx * dx) + (dy * dy); // actually squared distance
if (distance < bestDistance) {
best = barcode;
bestDistance = distance;
}
}
if (best != null) {
Intent data = new Intent();
data.putExtra(BarcodeObject, best);
setResult(CommonStatusCodes.SUCCESS, data);
//finish();
return true;
}
return false;
}
private class CaptureGestureListener extends GestureDetector.SimpleOnGestureListener {
@Override
public boolean onSingleTapConfirmed(MotionEvent e) {
return onTap(e.getRawX(), e.getRawY()) || super.onSingleTapConfirmed(e);
}
}
private class ScaleListener implements ScaleGestureDetector.OnScaleGestureListener {
/**
* Responds to scaling events for a gesture in progress.
* Reported by pointer motion.
*
* @param detector The detector reporting the event - use this to
* retrieve extended info about event state.
* @return Whether or not the detector should consider this event
* as handled. If an event was not handled, the detector
* will continue to accumulate movement until an event is
* handled. This can be useful if an application, for example,
* only wants to update scaling factors if the change is
* greater than 0.01.
*/
@Override
public boolean onScale(ScaleGestureDetector detector) {
return false;
}
/**
* Responds to the beginning of a scaling gesture. Reported by
* new pointers going down.
*
* @param detector The detector reporting the event - use this to
* retrieve extended info about event state.
* @return Whether or not the detector should continue recognizing
* this gesture. For example, if a gesture is beginning
* with a focal point outside of a region where it makes
* sense, onScaleBegin() may return false to ignore the
* rest of the gesture.
*/
@Override
public boolean onScaleBegin(ScaleGestureDetector detector) {
return true;
}
/**
* Responds to the end of a scale gesture. Reported by existing
* pointers going up.
* <p/>
* Once a scale has ended, {@link ScaleGestureDetector#getFocusX()}
* and {@link ScaleGestureDetector#getFocusY()} will return focal point
* of the pointers remaining on the screen.
*
* @param detector The detector reporting the event - use this to
* retrieve extended info about event state.
*/
@Override
public void onScaleEnd(ScaleGestureDetector detector) {
mCameraSource.doZoom(detector.getScaleFactor());
}
}
@Override
public void onBarcodeDetected(Barcode barcode) {
//do something with barcode data returned.
Intent i = new Intent(HomeActivity.this, SelectActivity.class);
String barcodeData = barcode.displayValue;
i.putExtra("barcodeData",barcodeData);
i.putExtra("sessionID",sessionID);
startActivity(i);
/*try{
String url = "http://192.168.43.113:3000/addToCart";
requestQueue = Volley.newRequestQueue(this);
final String reqBody = "{customerID:"+ sessionID +" ,itemID:"+ barcode.displayValue +"}";
JSONObject request = new JSONObject(reqBody);
JsonObjectRequest jsonObjectRequest = new JsonObjectRequest
(Request.Method.POST, url, request, new Response.Listener<JSONObject>() {
@Override
public void onResponse(JSONObject response) {
try {
Snackbar.make(mGraphicOverlay,response.toString(),Snackbar.LENGTH_LONG).show();
} catch (Exception e) {
e.printStackTrace();
}
}
}, new Response.ErrorListener() {
@Override
public void onErrorResponse(VolleyError error) {
mTextView.setText(error.toString());
}
});
requestQueue.add(jsonObjectRequest);
} catch (Exception e) {
}*/
}
}
| [
"[email protected]"
] | |
8d8aaa4440161a6565ac743bb06c58f51c13dc36 | 4edaba49ecbd6640897fe4a6b00c0d8a6a33ecf2 | /app/src/main/java/com/Project/appointmentapp/UserHelperClass_DocEP.java | 1d509d42b9052e6e9b51491f5bd98b0f7a68adff | [] | no_license | Tigdam/appointment_app | 8f368bc515ca465a59654c82ebf0ffcec053b432 | 488d449611cac7a31bf4c4c2afbe9cfab562d97a | refs/heads/master | 2023-07-13T02:00:42.776846 | 2021-08-20T12:08:17 | 2021-08-20T12:08:17 | 379,594,225 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,838 | java | package com.Project.appointmentapp;
public class UserHelperClass_DocEP {
String uid, Doc_Fname, Doc_Email, Doc_Mob, Doc_Gender, Doc_DOB, Doc_Qual, Doc_Exp, Doc_Spec, Doc_FTimme, Doc_TTime, Doc_About, Doc_Add;
public UserHelperClass_DocEP() {
}
public String getUid() {
return uid;
}
public void setUid(String uid) {
this.uid = uid;
}
public String getDoc_Fname() {
return Doc_Fname;
}
public void setDoc_Fname(String doc_Fname) {
Doc_Fname = doc_Fname;
}
public String getDoc_Email() {
return Doc_Email;
}
public void setDoc_Email(String doc_Email) {
Doc_Email = doc_Email;
}
public String getDoc_Mob() {
return Doc_Mob;
}
public void setDoc_Mob(String doc_Mob) {
Doc_Mob = doc_Mob;
}
public String getDoc_Gender() {
return Doc_Gender;
}
public void setDoc_Gender(String doc_Gender) {
Doc_Gender = doc_Gender;
}
public String getDoc_DOB() {
return Doc_DOB;
}
public void setDoc_DOB(String doc_DOB) {
Doc_DOB = doc_DOB;
}
public String getDoc_Qual() {
return Doc_Qual;
}
public void setDoc_Qual(String doc_Qual) {
Doc_Qual = doc_Qual;
}
public String getDoc_Exp() {
return Doc_Exp;
}
public void setDoc_Exp(String doc_Exp) {
Doc_Exp = doc_Exp;
}
public String getDoc_Spec() {
return Doc_Spec;
}
public void setDoc_Spec(String doc_Spec) {
Doc_Spec = doc_Spec;
}
public String getDoc_FTimme() {
return Doc_FTimme;
}
public void setDoc_FTimme(String doc_FTimme) {
Doc_FTimme = doc_FTimme;
}
public String getDoc_TTime() {
return Doc_TTime;
}
public void setDoc_TTime(String doc_TTime) {
Doc_TTime = doc_TTime;
}
public String getDoc_About() {
return Doc_About;
}
public void setDoc_About(String doc_About) {
Doc_About = doc_About;
}
public String getDoc_Add() {
return Doc_Add;
}
public void setDoc_Add(String doc_Add) {
Doc_Add = doc_Add;
}
public UserHelperClass_DocEP(String uid, String doc_Fname, String doc_Email, String doc_Mob, String doc_Gender, String doc_DOB, String doc_Qual, String doc_Exp, String doc_Spec, String doc_FTimme, String doc_TTime, String doc_About, String doc_Add) {
this.uid = uid;
Doc_Fname = doc_Fname;
Doc_Email = doc_Email;
Doc_Mob = doc_Mob;
Doc_Gender = doc_Gender;
Doc_DOB = doc_DOB;
Doc_Qual = doc_Qual;
Doc_Exp = doc_Exp;
Doc_Spec = doc_Spec;
Doc_FTimme = doc_FTimme;
Doc_TTime = doc_TTime;
Doc_About = doc_About;
Doc_Add = doc_Add;
}
}
| [
"[email protected]"
] | |
7df090cfbdeef27aa642dc46ed246092fa1fe348 | 20e58fb02a13b72ce3fb18eac76db14a13133211 | /msf/src/main/java/com/dxc/msf/model/UserDTO.java | 908c9f045e86b2182ef8f6060593864c1508cc5d | [] | no_license | Usernamekidu/MiniFileSharing | 7780db2c8d8c97e9783806431c80a635a84210e5 | 348f907eb96e010c8a0d6df5f5717f4db6d4dc35 | refs/heads/master | 2020-03-16T18:49:18.222587 | 2018-05-12T17:16:05 | 2018-05-12T17:16:05 | 132,888,058 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,806 | java | package com.dxc.msf.model;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import org.hibernate.validator.constraints.Email;
import org.hibernate.validator.constraints.Length;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
@Entity(name = "Users")
public class UserDTO extends AbstractDTO {
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name="userID")
private int userID;
@Column(name = "userName")
@Email
@Length(min = 5, max = 30)
private String userName;
@Column(name = "userPassword")
private String userPassword;
@Column(name = "isAdmin")
private String isAdmin;
@Column(name = "userRank")
private String userRank;
@Column(name = "userActive")
private Integer userActive;
@Column(name = "email")
private String email;
@Column(name = "createDate")
private Date createDate;
@Column(name = "deleteDate")
private Date deleteDate;
@Column(name = "lastModifyDate")
private Date lastModifyDate;
public int getUserID() {
return userID;
}
public void setUserID(int userID) {
this.userID = userID;
}
public String getUserName() {
return userName;
}
public void setUserName(String userName) {
this.userName = userName;
}
public String getUserPassword() {
return userPassword;
}
public void setUserPassword(String userPassword) {
this.userPassword = userPassword;
}
public String getIsAdmin() {
return isAdmin;
}
public void setIsAdmin(String isAdmin) {
this.isAdmin = isAdmin;
}
public String getUserRank() {
return userRank;
}
public void setUserRank(String userRank) {
this.userRank = userRank;
}
public Integer getUserActive() {
return userActive;
}
public void setUserActive(Integer userActive) {
this.userActive = userActive;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public Date getCreateDate() {
return createDate;
}
public void setCreateDate(Date createDate) {
this.createDate = createDate;
}
public Date getDeleteDate() {
return deleteDate;
}
public void setDeleteDate(Date deleteDate) {
this.deleteDate = deleteDate;
}
public Date getLastModifyDate() {
return lastModifyDate;
}
public void setLastModifyDate(Date lastModifyDate) {
this.lastModifyDate = lastModifyDate;
}
public static long getSerialversionuid() {
return serialVersionUID;
}
@Override
public String toJSon() throws JsonProcessingException {
ObjectMapper objectmapper =new ObjectMapper();
return objectmapper.writeValueAsString(this);
}
}
| [
"[email protected]"
] | |
098d3f6499fd06c95bef06fdeb747ad730190c62 | 772356ef639d47a2a27bb0613dcfc7e9b0b6c0c5 | /app/src/main/java/com/example/bfmemiao/myapplication/utils/FragmentFactory.java | 3cb55b1cffa5fb665da449baeaab526234e10770 | [] | no_license | HuangErwin/BFMe- | 00f6458e7bb65aa57d37f067415ae52a6f648311 | 52fb84fd6828c103e9f28688275f4f36e966e68d | refs/heads/master | 2022-08-09T11:30:45.678156 | 2018-03-22T13:06:31 | 2018-03-22T13:06:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,653 | java | package com.example.bfmemiao.myapplication.utils;
import com.example.bfmemiao.myapplication.fragment.BaseFragment;
import com.example.bfmemiao.myapplication.fragment.CategoryFragment;
import com.example.bfmemiao.myapplication.fragment.HomeFragment;
import com.example.bfmemiao.myapplication.fragment.TalkFragment;
import java.util.WeakHashMap;
/**
* Created by Administrator on 2016/11/30.
*/
public class FragmentFactory {
public static final int FRAGEMENT_HOME = 0;
public static final int FRAGEMENT_CATEGORY = 1;
public static final int FRAGEMENT_TALK= 2;
public static FragmentFactory instances;
public static FragmentFactory getInstances(){
if(instances == null){
instances = new FragmentFactory();
}
return instances;
}
private static WeakHashMap<Integer, BaseFragment> mFragmentCache = new WeakHashMap<>();
public BaseFragment createFragment(int position){
BaseFragment fragment = mFragmentCache.get(position);
if (fragment == null) {
switch (position) {
case FRAGEMENT_HOME:
fragment = new HomeFragment();
break;
case FRAGEMENT_CATEGORY:
fragment = new CategoryFragment();
break;
case FRAGEMENT_TALK:
fragment = new TalkFragment();
break;
default:
break;
}
mFragmentCache.put(position,fragment);
}
return fragment;
}
public static void clear(){
mFragmentCache.clear();
}
}
| [
"[email protected]"
] | |
4ad8c4c6666f48a1944f180f8a3bfc303ac11f6a | 1746c10d2767b529a2073e9126b4d3b84b15b15a | /src/main/java/com/nero/spring/log/config/wrapper/ResponseBodyReadWrapper.java | 42936d194e466bdf79c9cd0ea0150395366b249a | [] | no_license | zhangnero/spring-log | 0559bef4fcaaa53b1ea2e69d1e130df75430a97b | e6444801c10f46ace45ce23138d17abe9ba407c3 | refs/heads/master | 2022-12-31T12:24:50.267426 | 2020-10-19T01:10:48 | 2020-10-19T01:10:48 | 305,108,117 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,405 | java | package com.nero.spring.log.config.wrapper;
import javax.servlet.ServletOutputStream;
import javax.servlet.WriteListener;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpServletResponseWrapper;
import java.io.*;
public class ResponseBodyReadWrapper extends HttpServletResponseWrapper {
private ServletOutputStream outputStream;
private PrintWriter printWriter;
private ServletOutputStreamBackup backup;
/**
* Constructs a response adaptor wrapping the given response.
*
* @param response The response to be wrapped
* @throws IllegalArgumentException if the response is null
*/
public ResponseBodyReadWrapper(HttpServletResponse response) throws IOException {
super(response);
}
@Override
public void setContentType(String type) {
super.setContentType(type);
try {
((ServletOutputStreamBackup)getOutputStream()).setNeedBackUp(type == null || type.contains("application/json"));
} catch (IOException e) {
e.printStackTrace();
}
}
@Override
public ServletOutputStream getOutputStream() throws IOException {
if (printWriter != null) {
throw new IllegalStateException("getWriter() has already been called on this response.");
}
if (outputStream == null) {
outputStream = getResponse().getOutputStream();
backup = new ServletOutputStreamBackup(outputStream);
}
return backup;
}
@Override
public PrintWriter getWriter() throws IOException {
if (outputStream != null) {
throw new IllegalStateException("getOutputStream() has already been called on this response.");
}
if (printWriter == null) {
backup = new ServletOutputStreamBackup(getResponse().getOutputStream());
printWriter = new PrintWriter(new OutputStreamWriter(backup, getResponse().getCharacterEncoding()), true);
}
return printWriter;
}
@Override
public void flushBuffer() throws IOException {
if (printWriter != null){
printWriter.flush();
}
if (outputStream != null){
outputStream.flush();
}
}
public byte[] getBackup() {
if (backup != null) {
return backup.getBackup();
} else {
return new byte[0];
}
}
private static class ServletOutputStreamBackup extends ServletOutputStream{
private boolean needBackUp = true;
private OutputStream outputStream;
private ByteArrayOutputStream buckup;
public ServletOutputStreamBackup(OutputStream outputStream) {
this.outputStream = outputStream;
buckup = new ByteArrayOutputStream(1024);
}
@Override
public void write(int b) throws IOException {
outputStream.write(b);
if (needBackUp){
buckup.write(b);
}
}
@Override
public boolean isReady() {
return false;
}
@Override
public void setWriteListener(WriteListener listener) {
}
public byte[] getBackup(){
return buckup.toByteArray();
}
public void setNeedBackUp(boolean needBackUp) {
this.needBackUp = needBackUp;
}
}
}
| [
"[email protected]"
] | |
f50b2262fd356bd405ac3f593991c3fa079f14aa | 8439c47644705a9b462be56048e7ec89c8f6ea99 | /src/test/java/biweekly/io/StreamReaderTest.java | 7ce46b6358b738ddb8fe04bac904f8cacaecbff6 | [
"BSD-2-Clause",
"BSD-2-Clause-Views"
] | permissive | nicky-isaacs/biweekly | 0858fedd991fb5df1e8a5a05347203bd3010a3cd | ed15b5fb540ef656b45fd1be05e8d4d210d2fa1f | refs/heads/master | 2021-01-18T18:26:37.247916 | 2016-01-30T22:13:05 | 2016-01-30T22:13:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 9,315 | java | package biweekly.io;
import static biweekly.util.TestUtils.assertWarnings;
import static biweekly.util.TestUtils.date;
import static biweekly.util.TestUtils.icalDate;
import static biweekly.util.TestUtils.utc;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import java.io.IOException;
import java.util.Collection;
import java.util.Iterator;
import java.util.TimeZone;
import org.junit.ClassRule;
import org.junit.Test;
import biweekly.ICalendar;
import biweekly.component.DaylightSavingsTime;
import biweekly.component.StandardTime;
import biweekly.component.VTimezone;
import biweekly.property.ICalProperty;
import biweekly.util.DateTimeComponents;
import biweekly.util.DefaultTimezoneRule;
import biweekly.util.ICalDate;
import biweekly.util.UtcOffset;
/*
Copyright (c) 2013-2015, Michael Angstadt
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/**
* @author Michael Angstadt
*/
public class StreamReaderTest {
@ClassRule
public static final DefaultTimezoneRule tzRule = new DefaultTimezoneRule(-1, 0);
@Test
public void timezones() throws Exception {
StreamReader reader = new StreamReaderImpl() {
@Override
protected ICalendar _readNext() {
ICalendar ical = new ICalendar();
VTimezone timezone = new VTimezone("tz");
{
StandardTime standard = new StandardTime();
standard.setDateStart(new DateTimeComponents(2014, 9, 1, 2, 0, 0, false));
standard.setTimezoneOffsetFrom(new UtcOffset(true, 10, 0));
standard.setTimezoneOffsetTo(new UtcOffset(true, 9, 0));
timezone.addStandardTime(standard);
DaylightSavingsTime daylight = new DaylightSavingsTime();
daylight.setDateStart(new DateTimeComponents(2014, 1, 1, 2, 0, 0, false));
daylight.setTimezoneOffsetFrom(new UtcOffset(true, 9, 0));
daylight.setTimezoneOffsetTo(new UtcOffset(true, 10, 0));
timezone.addDaylightSavingsTime(daylight);
}
ical.addComponent(timezone);
TestProperty floating = new TestProperty(icalDate("2014-09-21T10:22:00"));
context.addFloatingDate(floating, floating.date);
ical.addProperty(floating);
String tzid = timezone.getTimezoneId().getValue();
TestProperty timezoned = new TestProperty(icalDate("2014-10-01T13:07:00"));
timezoned.getParameters().setTimezoneId(tzid);
context.addTimezonedDate(tzid, timezoned, timezoned.date);
ical.addProperty(timezoned);
tzid = timezone.getTimezoneId().getValue();
timezoned = new TestProperty(icalDate("2014-08-01T13:07:00"));
timezoned.getParameters().setTimezoneId(tzid);
context.addTimezonedDate(tzid, timezoned, timezoned.date);
ical.addProperty(timezoned);
tzid = timezone.getTimezoneId().getValue();
timezoned = new TestProperty(icalDate("2013-12-01T13:07:00"));
timezoned.getParameters().setTimezoneId(tzid);
context.addTimezonedDate(tzid, timezoned, timezoned.date);
ical.addProperty(timezoned);
tzid = "/America/New_York";
timezoned = new TestProperty(icalDate("2014-07-04T09:00:00"));
timezoned.getParameters().setTimezoneId(tzid);
context.addTimezonedDate(tzid, timezoned, timezoned.date);
ical.addProperty(timezoned);
tzid = "America/New_York";
timezoned = new TestProperty(icalDate("2014-07-04T09:00:00"));
timezoned.getParameters().setTimezoneId(tzid);
context.addTimezonedDate(tzid, timezoned, timezoned.date);
ical.addProperty(timezoned);
tzid = "foobar";
timezoned = new TestProperty(icalDate("2014-06-11T14:00:00"));
timezoned.getParameters().setTimezoneId(tzid);
context.addTimezonedDate(tzid, timezoned, timezoned.date);
ical.addProperty(timezoned);
return ical;
}
};
ICalendar ical = reader.readNext();
TimezoneInfo tzinfo = reader.getTimezoneInfo();
Collection<VTimezone> components = tzinfo.getComponents();
assertEquals(1, components.size());
assertEquals(0, ical.getComponents(VTimezone.class).size());
VTimezone component = components.iterator().next();
Iterator<TestProperty> it = ical.getProperties(TestProperty.class).iterator();
//floating-time property
TestProperty property = it.next();
assertTrue(tzinfo.isFloating(property));
assertNull(tzinfo.getComponent(property));
assertNull(tzinfo.getTimeZone(property));
assertNull(property.getParameters().getTimezoneId());
assertEquals(date("2014-09-21 10:22:00"), property.date);
//timezoned property
property = it.next();
assertFalse(tzinfo.isFloating(property));
assertEquals(component, tzinfo.getComponent(property));
assertTrue(tzinfo.getTimeZone(property) instanceof ICalTimeZone);
assertNull(property.getParameters().getTimezoneId());
assertEquals(utc("2014-10-01 04:07:00"), property.date);
//timezoned property
property = it.next();
assertFalse(tzinfo.isFloating(property));
assertEquals(component, tzinfo.getComponent(property));
assertTrue(tzinfo.getTimeZone(property) instanceof ICalTimeZone);
assertNull(property.getParameters().getTimezoneId());
assertEquals(utc("2014-08-01 03:07:00"), property.date);
//timezoned property
property = it.next();
assertFalse(tzinfo.isFloating(property));
assertEquals(component, tzinfo.getComponent(property));
assertTrue(tzinfo.getTimeZone(property) instanceof ICalTimeZone);
assertNull(property.getParameters().getTimezoneId());
assertEquals(utc("2013-12-01 04:07:00"), property.date);
//property with Olsen TZID
property = it.next();
assertFalse(tzinfo.isFloating(property));
assertNull(tzinfo.getComponent(property));
assertEquals(TimeZone.getTimeZone("America/New_York"), tzinfo.getTimeZone(property));
assertNull(property.getParameters().getTimezoneId());
assertEquals(utc("2014-07-04 13:00:00"), property.date);
//property with Olsen TZID that doesn't point to a VTIMEZONE component
property = it.next();
assertFalse(tzinfo.isFloating(property));
assertNull(tzinfo.getComponent(property));
assertEquals(TimeZone.getTimeZone("America/New_York"), tzinfo.getTimeZone(property));
assertNull(property.getParameters().getTimezoneId());
assertEquals(utc("2014-07-04 13:00:00"), property.date);
//property with TZID that doesn't point to a VTIMEZONE component
property = it.next();
assertFalse(tzinfo.isFloating(property));
assertNull(tzinfo.getComponent(property));
assertNull(tzinfo.getTimeZone(property));
assertEquals("foobar", property.getParameters().getTimezoneId());
assertEquals(date("2014-06-11 14:00:00"), property.date);
assertFalse(it.hasNext());
assertWarnings(2, reader);
}
@Test
public void timezone_without_id() throws Exception {
StreamReader reader = new StreamReaderImpl() {
@Override
protected ICalendar _readNext() {
ICalendar ical = new ICalendar();
VTimezone timezone = new VTimezone((String) null);
{
StandardTime standard = new StandardTime();
standard.setDateStart(new DateTimeComponents(2014, 9, 1, 2, 0, 0, false));
standard.setTimezoneOffsetFrom(new UtcOffset(true, 10, 0));
standard.setTimezoneOffsetTo(new UtcOffset(true, 9, 0));
timezone.addStandardTime(standard);
DaylightSavingsTime daylight = new DaylightSavingsTime();
daylight.setDateStart(new DateTimeComponents(2014, 1, 1, 2, 0, 0, false));
daylight.setTimezoneOffsetFrom(new UtcOffset(true, 9, 0));
daylight.setTimezoneOffsetTo(new UtcOffset(true, 10, 0));
timezone.addDaylightSavingsTime(daylight);
}
ical.addComponent(timezone);
return ical;
}
};
ICalendar ical = reader.readNext();
TimezoneInfo tzinfo = reader.getTimezoneInfo();
assertEquals(0, tzinfo.getComponents().size());
assertEquals(1, ical.getComponents(VTimezone.class).size());
assertWarnings(1, reader);
}
private abstract class StreamReaderImpl extends StreamReader {
public void close() throws IOException {
//empty
}
}
private class TestProperty extends ICalProperty {
private final ICalDate date;
public TestProperty(ICalDate date) {
this.date = date;
}
}
}
| [
"[email protected]"
] | |
3a5cc0e4881839e5b3cd4ca7368943f43f2eccc8 | 447520f40e82a060368a0802a391697bc00be96f | /apks/malware/app92/source/com/yongrun/app/sxmn/ui/cp.java | adec808bb2d4d2bc5027adc09e3fd5ea62d08367 | [
"Apache-2.0"
] | permissive | iantal/AndroidPermissions | 7f3343a9c29d82dbcd4ecd98b3a50ddf8d179465 | d623b732734243590b5f004d167e542e2e2ae249 | refs/heads/master | 2023-07-19T01:29:26.689186 | 2019-09-30T19:01:42 | 2019-09-30T19:01:42 | 107,239,248 | 0 | 0 | Apache-2.0 | 2023-07-16T07:41:38 | 2017-10-17T08:22:57 | null | UTF-8 | Java | false | false | 1,464 | java | package com.yongrun.app.sxmn.ui;
import android.app.Activity;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import com.yongrun.app.sxmn.c.c;
import com.yongrun.app.sxmn.common.AppContext;
import com.yongrun.app.sxmn.widget.ClassifyView;
import java.util.List;
public class cp
extends BaseAdapter
{
private Context b;
private LayoutInflater c;
private com.a.a.b.d d;
private List<c> e;
public cp(Context paramContext, List<c> paramList)
{
this.b = paramList;
this.c = ((LayoutInflater)this.b.getSystemService("layout_inflater"));
this.d = ((AppContext)ThirdFragment.b(paramContext).getApplication()).a();
Object localObject;
this.e = localObject;
}
public int getCount()
{
return this.e.size();
}
public Object getItem(int paramInt)
{
return Integer.valueOf(paramInt);
}
public long getItemId(int paramInt)
{
return paramInt;
}
public View getView(int paramInt, View paramView, ViewGroup paramViewGroup)
{
paramView = new ClassifyView(ThirdFragment.b(this.a));
paramViewGroup = (c)this.e.get(paramInt);
paramView.setTitle(paramViewGroup.b());
paramView.setTypeid(paramViewGroup.a());
paramView.a(paramViewGroup.c(), this.d);
paramView.setHeight(com.yongrun.app.sxmn.common.d.a(ThirdFragment.b(this.a)).b() / 3);
return paramView;
}
}
| [
"[email protected]"
] | |
501eb8bb06f57dbb91841ec2d133739daefc92d5 | b8b38238ac0ed2cd829451a45a8e33559718762f | /day1218/src/com/xt/entity/User.java | 24754eb8bb8c9a997606bf769ea3c9c4ebce064b | [] | no_license | kgcnjzym/203007U2 | 2c9d6790854727d06e78219fc186d056e6dcdc30 | ad92468dd76056b93bae6f8376fa87ddf6ca0ea2 | refs/heads/master | 2023-02-09T19:50:50.072495 | 2021-01-07T02:31:46 | 2021-01-07T02:31:46 | 310,059,311 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 368 | java | package com.xt.entity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* @author 杨卫兵
* @version V1.00
* @date 2020/12/16 10:32
* @since V1.00
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class User {
private Integer id;
private String name;
private String email;
private Integer age;
}
| [
"[email protected]"
] | |
fbc60abcb46d8ec6be128d7b9aa47d34d7ebc87b | be73270af6be0a811bca4f1710dc6a038e4a8fd2 | /crash-reproduction-moho/results/XWIKI-13544-18-8-MOEAD-WeightedSum:TestLen:CallDiversity/org/xwiki/velocity/internal/DefaultVelocityEngine_ESTest_scaffolding.java | 42f0f5cacab3d54137cc5b706c30f189b17ba0fc | [] | no_license | STAMP-project/Botsing-multi-objectivization-using-helper-objectives-application | cf118b23ecb87a8bf59643e42f7556b521d1f754 | 3bb39683f9c343b8ec94890a00b8f260d158dfe3 | refs/heads/master | 2022-07-29T14:44:00.774547 | 2020-08-10T15:14:49 | 2020-08-10T15:14:49 | 285,804,495 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 453 | java | /**
* Scaffolding file used to store all the setups needed to run
* tests automatically generated by EvoSuite
* Sun Jan 19 22:55:36 UTC 2020
*/
package org.xwiki.velocity.internal;
import org.evosuite.runtime.annotation.EvoSuiteClassExclude;
import org.junit.BeforeClass;
import org.junit.Before;
import org.junit.After;
@EvoSuiteClassExclude
public class DefaultVelocityEngine_ESTest_scaffolding {
// Empty scaffolding for empty test suite
}
| [
"[email protected]"
] | |
f564732bc90e1a21093c37ae4cf0f4391bcf28b5 | ffd061744b08b2a00385464d02e3eb596d9e3b36 | /muyi-common/muyi-common-security/src/main/java/com/muyi/common/security/annotation/EnableCustomConfig.java | ac2568aa71b4d7c0b9829f1f41e0b62b82363eea | [] | no_license | yangkf1985/MuYi_Cloud | 8a5a1cfca3f648733443807e4ecd9e1fc06edf2c | 75842375198c60b0fb4fad8c2282182dac669fba | refs/heads/master | 2022-11-28T15:28:56.555693 | 2020-07-29T09:04:31 | 2020-07-29T09:04:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,201 | java | package com.muyi.common.security.annotation;
import com.muyi.common.security.config.ApplicationConfig;
import com.muyi.common.security.config.SecurityImportBeanDefinitionRegistrar;
import com.muyi.common.security.feign.OAuth2FeignConfig;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.context.annotation.Import;
import org.springframework.scheduling.annotation.EnableAsync;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
// 表示通过aop框架暴露该代理对象,AopContext能够访问
@EnableAspectJAutoProxy(exposeProxy = true)
// 指定要扫描的Mapper类的包的路径
@MapperScan("com.muyi.**.mapper")
// 开启线程异步执行
@EnableAsync
// 自动加载类
@Import({SecurityImportBeanDefinitionRegistrar.class, OAuth2FeignConfig.class, ApplicationConfig.class})
public @interface EnableCustomConfig {
}
| [
"[email protected]"
] | |
a4b5ec214636d2163ae865ca06b8e896edcde646 | 4b287adf7b74a4ceb1bb8e9359740d9507486b06 | /app/src/main/java/com/leyijf/view/activity/PermissionActivity.java | 3adb0cec3a1945f32873b2076d979eaa9283e2da | [] | no_license | wangmingqi98/Leyi | 8ac6422bd9b50e7d58d954a1ae4cf2c55db81d43 | 1920e1cd74a3b0a916e3428cf1c94f7ce7388f5c | refs/heads/master | 2020-03-19T19:44:31.447169 | 2018-06-11T04:47:53 | 2018-06-11T04:47:53 | 136,872,125 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,520 | java | package com.leyijf.view.activity;
import android.Manifest;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.provider.Settings;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.widget.Toast;
import com.leyijf.service.DownloadService;
import com.leyijf.utils.Constant;
import com.leyijf.utils.PermissionUtil;
/**
* 项目名: AppUpdate
* 文件名: PermissionActivity
* 创建时间: 2018/1/27 on 17:16
* 描述: TODO 用来申请权限的活动
*
* @author WMQ
*/
public class PermissionActivity extends AppCompatActivity {
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
PermissionUtil.requestPermission(this, Constant.PERMISSION_REQUEST_CODE);
}
@Override
public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {
super.onRequestPermissionsResult(requestCode, permissions, grantResults);
if (requestCode == Constant.PERMISSION_REQUEST_CODE) {
if (grantResults[0] == PackageManager.PERMISSION_GRANTED) {
//授予了权限
download();
} else {
//拒绝了
Toast.makeText(PermissionActivity.this, "请允许使用[存储空间]权限!", Toast.LENGTH_LONG).show();
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
if (!shouldShowRequestPermissionRationale(Manifest.permission.WRITE_EXTERNAL_STORAGE)) {
//用户勾选了不在询问
goToAppDetailPage(PermissionActivity.this);
}
}
}
finish();
}
}
/**
* 开始下载
*/
private void download() {
startService(new Intent(this, DownloadService.class));
}
/**
* 跳转至详情界面
*/
private void goToAppDetailPage(Context context) {
Intent intent = new Intent();
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
intent.setAction(Settings.ACTION_APPLICATION_DETAILS_SETTINGS);
intent.setData(Uri.fromParts("package", context.getPackageName(), null));
context.startActivity(intent);
}
}
| [
"[email protected]"
] | |
6482719ba9b902838efddffa850da4444f790b33 | f232c2c7966e5769d1f68af87c83615fe4202870 | /backend/manager/modules/compat/src/test/java/org/ovirt/engine/core/compat/PropertyCompatTest.java | b62a4d8f6dac7c674d74dccaed36bfec64a13692 | [] | no_license | BillTheBest/ovirt-engine | 54d0d3cf5b103c561c4e72e65856948f252b41a1 | 7d5d711b707e080a69920eb042f6f547dfa9443f | refs/heads/master | 2016-08-05T16:52:16.557733 | 2011-11-07T02:49:42 | 2011-11-07T02:49:42 | 2,938,776 | 1 | 1 | null | null | null | null | UTF-8 | Java | false | false | 826 | java | package org.ovirt.engine.core.compat;
import org.ovirt.engine.core.compat.backendcompat.PropertyCompat;
import org.ovirt.engine.core.compat.backendcompat.TypeCompat;
import junit.framework.TestCase;
public class PropertyCompatTest extends TestCase {
public String someValue = "Anakin";
public void testIt() {
PropertyCompat pc = TypeCompat.GetProperty(this.getClass(), "someValue");
String result = (String) pc.GetValue(this, "JarJar");
assertEquals("Standard", "Anakin", result);
this.someValue = null;
result = (String) pc.GetValue(this, "JarJar");
assertEquals("Null Value", "JarJar", result);
}
public String getSomeValue() {
return someValue;
}
public void setSomeValue(String someValue) {
this.someValue = someValue;
}
}
| [
"[email protected]"
] | |
ae8cc6519df3446cdf4ef4030a98144c61e175cc | 419a43737a9141a07c35b862258df4d08a23063c | /ProjetED/src/com/java/dosi/ImpHandler.java | 61fca7dd41aecb8bcd69c7076833f9037ea1c8d5 | [] | no_license | SafaeDosi/ProjetED | 34aa96fccfd7715778b45569caf5bd5844d7d1f4 | 1244daf9ad624349e6cb48b41f85cfff94271633 | refs/heads/master | 2021-01-20T05:04:48.961845 | 2012-10-21T17:32:13 | 2012-10-21T17:32:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 234 | java | package com.java.dosi;
public class ImpHandler implements ContentHandler{
private int compteur=0 ;
public int defaultLine(String content) {
return compteur++ ;
}
public void commentLine(String Comment) {
}
}
| [
"[email protected]"
] | |
6034a9fc2d628a5c66344fd8cd2b62d063b9169f | 52ad10027bb6130a8ca6bff7fe135c80b07ab1a8 | /DesignPattern/src/dp/Factory.java | baa49e6bc584c7096cf836e7aaf83ba023e02f5d | [] | no_license | sravaninallapati1/java1 | 79e7ff13e0b1cf351fef5fc293b96e4b782a1919 | 43d36c9219560dc51d63fcda98885bd7c3080313 | refs/heads/master | 2021-01-12T05:34:27.178477 | 2016-12-22T20:55:45 | 2016-12-22T20:55:45 | 77,131,399 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 818 | java | package dp;
import java.util.*;
interface Shape
{
public void draw();
}
class Rectangle implements Shape
{
public void draw()
{
System.out.println("rectangle shape drawn");
}
}
class Triangle implements Shape
{
public void draw()
{System.out.println("triangle shape is drawn");
}
class ShapeImp
{
public static int gettype(Stringdraw)
{
if(draw==null)
{
return null;
}
elseif(draw.equals("rectangle"));
{
return new Rectangle();
}
elseif(draw.equals("triangle"));
{
return new triangle();
}
class Factory
{
public static void main(String[]args)
{
System.out.println("1.rectangle/2.triangle");
switch(choice)
{
case1:
Shape s= shapeImp.gettype("rectangle");
s.draw();
break;
case2:
Shape s1=shapeImp.gettype("triangle");
s1.draw();
break;
}
}
}} | [
"[email protected]"
] | |
4412f219a6cf4e6b015ba95dc4b57513d8cc2c94 | bc795253729eece9584a82e85e330a6a8088c7bb | /src/dogHouse/login/controller/loginValidServlet.java | 7c9e2374ce544ae7e8134a794e23b88fba262ea1 | [] | no_license | godsungsoo/semiProject | 5b4de07243113a56bc77652ac078b405de944aa4 | 07876bc2ddafdfcd874fc1778a6ee999c9c8652e | refs/heads/master | 2020-04-26T08:18:52.867402 | 2019-03-02T12:03:50 | 2019-03-02T12:03:50 | 173,419,630 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,810 | java | package dogHouse.login.controller;
import java.io.IOException;
import java.util.HashMap;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.google.gson.Gson;
import com.sun.javafx.collections.MappingChange.Map;
/**
* Servlet implementation class loginValidServlet
*/
@WebServlet("/loginValid.do")
public class loginValidServlet extends HttpServlet {
private static final long serialVersionUID = 1L;
/**
* @see HttpServlet#HttpServlet()
*/
public loginValidServlet() {
super();
// TODO Auto-generated constructor stub
}
/**
* @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
*/
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
// TODO Auto-generated method stub
request.setCharacterEncoding("utf-8");
String param = request.getParameter("data");
Gson gson = new Gson();
HashMap<String, Object> paramMap = new HashMap<String, Object>();
paramMap = gson.fromJson(param, paramMap.getClass());
System.out.println(paramMap.get("userId"));
System.out.println(paramMap.get("userPwd"));
//로그인 성공시 메인으로
if(paramMap.get("userId").equals("test")) {
System.out.println("아이디가 test");
RequestDispatcher rd = request.getRequestDispatcher("/WEB-INF/jsp/main/main.jsp");
rd.forward(request, response);
}else {
System.out.println("else");
response.getWriter().append("fail");
RequestDispatcher rd = request.getRequestDispatcher("/WEB-INF/jsp/login/login.jsp");
}
}
}
| [
"[email protected]"
] | |
135c4a655f30bb08098c988a8dfc075b9d2cfa3d | 6c36a3dc096143327273056e5486abfa62bd8440 | /src/com/lanou/action/UserAction.java | e9b7e7c7829496f6618e297a789ba53d8f18fa30 | [] | no_license | jasowei/Spring-01 | 23009d74d1732cedf52c19d41255eb4acde6665e | 007d526bc31430fee9920d1d728ee68e748c8dc4 | refs/heads/master | 2021-07-16T19:47:37.107092 | 2017-10-23T23:53:45 | 2017-10-23T23:53:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,121 | java | package com.lanou.action;
import com.lanou.service.UserService;
import com.lanou.service.impl.UserServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
/**
* Created by dllo on 17/10/23.
*/
/**
* @Controller : action层的bean注解
* @Scope : Action层中的对象定义需要声明为每次自动创建
*/
@Controller("userAction")
@Scope("prototype")
public class UserAction {
/**
* bean 中的属性注入
*/
@Qualifier("userService")
@Autowired
private UserService service ;//service层的访问对象
/**
* 登录
* @return
*/
public String login(){
//调用service层的登录方法
if (service.login("张三","123")){
return "success";
}
return "error";
}
public UserService getService() {
return service;
}
public void setService(UserService service) {
this.service = service;
}
}
| [
"[email protected]"
] | |
b4911ec8ef4742cc9821bfe1a36f7bd9dd0008ea | 44a11edd072501d6f3ac1ccf9380553a4bd2cd7e | /devFw/src/main/java/project/Etc/P002/D002/dao/E_P002_D002DAO.java | 2715338ecc03f9e4a2cacf5ea7573187dc25831e | [] | no_license | sunwooV/project | 5d212e2383a8732eb28df9135e7c11cecb103d1f | 83d46fe67a045e614dd509a81d29910e03f2063c | refs/heads/master | 2022-12-23T19:00:57.292017 | 2019-12-24T02:51:13 | 2019-12-24T02:51:13 | 212,250,398 | 0 | 3 | null | 2022-12-16T03:47:28 | 2019-10-02T03:47:24 | CSS | UTF-8 | Java | false | false | 571 | java | package project.Etc.P002.D002.dao;
import java.util.List;
import java.util.Map;
import org.springframework.dao.DataAccessException;
import project.Etc.P002.D002.vo.E_P002_D002VO;
public interface E_P002_D002DAO {
public List<E_P002_D002VO> searchList(Map<String, Object> searchMap) throws DataAccessException;
public void updateData(Map<String, String> row) throws DataAccessException;
public void insertData(Map<String, String> row) throws DataAccessException;
public void deleteData(Map<String, String> row) throws DataAccessException;
}
| [
"wpsl7@DESKTOP-GLTT0JK"
] | wpsl7@DESKTOP-GLTT0JK |
e59173018568b6b34c3f143e03efb0c49b1a5458 | f7b9bd27ec5260129e16444eaabff46af220356d | /src/terrain/Terrain.java | b37be76ed7a2edc9be208c0677467f6e78da7d7a | [] | no_license | mysterydeveloper/gameEngine | 40607710e34a069f7f2bf7953e94bfcf3ad0bb29 | be5aa197819c5a7bd69889785a366cb92e45ec3d | refs/heads/master | 2016-09-05T20:47:36.354308 | 2015-09-22T15:18:06 | 2015-09-22T15:18:06 | 42,477,851 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,744 | java | package terrain;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import javax.imageio.ImageIO;
import org.lwjgl.util.vector.Vector2f;
import org.lwjgl.util.vector.Vector3f;
import renderEngine.Loader;
import textures.ModelTexture;
import textures.TerrainTexture;
import textures.TerrainTexturePack;
import toolBox.Maths;
import models.RawModel;
public class Terrain {
private static final float SIZE=800;
private static final float MAX_HEIGHT=40;
private static final float MAX_PIXEL_COLOUR =256*256*256;
private float x;
private float z;
private RawModel model;
private TerrainTexturePack texturePack;
private TerrainTexture blendMap;
private float [][] heights;
public Terrain(float gridX ,float d, Loader loader, TerrainTexturePack texturePack,TerrainTexture blendMap,String heightMap){
this.texturePack = texturePack;
this.blendMap=blendMap;
this.x = gridX*SIZE;
this.z = d*SIZE;
this.model= generateTerrain(loader,heightMap);
}
public float getX() {
return x;
}
public float getZ() {
return z;
}
public RawModel getModel() {
return model;
}
public TerrainTexturePack getTexturePack() {
return texturePack;
}
public TerrainTexture getBlendMap() {
return blendMap;
}
public float getHeightOfTerrain(float worldX,float worldZ){
float terrainX=worldX-this.x;
float terrainZ=worldZ-this.z;
float gridSquareSize = SIZE/((float)heights.length-1);
int gridX= (int) Math.floor(terrainX/gridSquareSize);
int gridZ= (int) Math.floor(terrainZ/gridSquareSize);
if(gridX>=heights.length -1|| gridZ >=heights.length -1 || gridX<0 || gridZ <0){
return 0;
}
float xCoord = (terrainX % gridSquareSize/gridSquareSize);
float zCoord = (terrainZ % gridSquareSize/gridSquareSize);
float answer;
if (xCoord <= (1-zCoord)) {
answer = Maths.barryCentric(new Vector3f(0, heights[gridX][gridZ], 0), new Vector3f(1,heights[gridX + 1][gridZ], 0), new Vector3f(0,heights[gridX][gridZ + 1], 1), new Vector2f(xCoord, zCoord));
} else {
answer = Maths.barryCentric(new Vector3f(1, heights[gridX + 1][gridZ], 0), new Vector3f(1,heights[gridX + 1][gridZ + 1], 1), new Vector3f(0,heights[gridX][gridZ + 1], 1), new Vector2f(xCoord, zCoord));
}
return answer;
}
private RawModel generateTerrain(Loader loader, String heightMap){
BufferedImage image = null;
try {
image = ImageIO.read(new File("res/"+heightMap+".png"));
} catch (IOException e) {
e.printStackTrace();
}
int VERTEX_COUNT=image.getHeight();
heights= new float[VERTEX_COUNT][VERTEX_COUNT];
int count = VERTEX_COUNT * VERTEX_COUNT;
float[] vertices = new float[count * 3];
float[] normals = new float[count * 3];
float[] textureCoords = new float[count*2];
int[] indices = new int[6*(VERTEX_COUNT-1)*(VERTEX_COUNT-1)];
int vertexPointer = 0;
for(int i=0;i<VERTEX_COUNT;i++){
for(int j=0;j<VERTEX_COUNT;j++){
vertices[vertexPointer*3] = (float)j/((float)VERTEX_COUNT - 1) * SIZE;
float height=getHeight(j,i,image);
heights[j][i]=height;
vertices[vertexPointer*3+1] = height;
vertices[vertexPointer*3+2] = (float)i/((float)VERTEX_COUNT - 1) * SIZE;
Vector3f normal=calculateNormal(j, i, image);
normals[vertexPointer*3] = normal.x;
normals[vertexPointer*3+1] = normal.y;
normals[vertexPointer*3+2] = normal.z;
textureCoords[vertexPointer*2] = (float)j/((float)VERTEX_COUNT - 1);
textureCoords[vertexPointer*2+1] = (float)i/((float)VERTEX_COUNT - 1);
vertexPointer++;
}
}
int pointer = 0;
for(int gz=0;gz<VERTEX_COUNT-1;gz++){
for(int gx=0;gx<VERTEX_COUNT-1;gx++){
int topLeft = (gz*VERTEX_COUNT)+gx;
int topRight = topLeft + 1;
int bottomLeft = ((gz+1)*VERTEX_COUNT)+gx;
int bottomRight = bottomLeft + 1;
indices[pointer++] = topLeft;
indices[pointer++] = bottomLeft;
indices[pointer++] = topRight;
indices[pointer++] = topRight;
indices[pointer++] = bottomLeft;
indices[pointer++] = bottomRight;
}
}
return loader.loadtoVAO(vertices, textureCoords, normals, indices);
}
private Vector3f calculateNormal(int x, int z, BufferedImage image){
float heightL= getHeight(x-1, z, image);
float heightR= getHeight(x+1, z, image);
float heightD= getHeight(x, z-1, image);
float heightU= getHeight(x, z+1, image);
Vector3f normal = new Vector3f(heightL-heightR,2f,heightD-heightU);
normal.normalise();
return normal;
}
private float getHeight(int x,int z, BufferedImage image){
if(x<0 || x >= image.getHeight()|| z < 0 || z >= image.getHeight()){
return 0;
}
float height= image.getRGB(x, z);
height+=MAX_PIXEL_COLOUR/2f;
height/=MAX_PIXEL_COLOUR/2f;
height*=MAX_HEIGHT;
return height;
}
}
| [
"[email protected]"
] | |
d7044a49e5682330046dbdd7fc46716983b07e00 | 6c28eb8ae3b93f1d1ee75b14c9a0c21c27f9607b | /src/main/java/DAO/employeesDAO.java | 1ac72040cd21e1db75fa447dac597a9f88986af7 | [] | no_license | LemonYuan/WebDemo | 04260720c2ad7642b63c1914ca510ba4731fc36f | fa89f578a5fdd7d4ad8290d3503f703b73c2df27 | refs/heads/master | 2021-01-20T18:51:34.623647 | 2016-08-06T06:44:29 | 2016-08-06T06:44:29 | 64,907,310 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 365 | java | package DAO;
import java.sql.Connection;
import java.sql.SQLException;
import entity.Employee;
public interface employeesDAO {
public void save(Connection conn,Employee employee) throws SQLException;
public void update(Connection conn,long id,Employee employee) throws SQLException;
public void delete(Connection conn,Employee employee)throws SQLException;
}
| [
"[email protected]"
] | |
1c10d8299bf7846fbd74ee96e2e8ab098830c3db | f1f83f36cb1376d3d289d0889e73a483b467de0c | /LeetCode/hard/Maximum_Rectangle/Solution.java | d05c411cbe1b4fe5ace73b833348186df7298220 | [] | no_license | JisooOh94/Algorithm | b2efbe3618a60599d3c5f8a5f05580a7eead75c2 | d2341a1222c068ddcab76c006919492a59e782e6 | refs/heads/master | 2023-03-05T14:55:44.685216 | 2023-02-16T14:04:48 | 2023-02-16T14:04:48 | 233,358,885 | 2 | 0 | null | 2020-10-14T00:16:29 | 2020-01-12T08:08:19 | Java | UTF-8 | Java | false | false | 1,164 | java | package hard.Maximum_Rectangle;
import java.util.Arrays;
import org.junit.Test;
/**
* Runtime : 33ms(5.33%)
* Memory : 42.6mb(73.98%)
*/
public class Solution {
@Test
public void execute() {
char[][] mat = new char[][]{
{'1', '0', '1', '0', '0'},
{'1', '0', '1', '1', '1'},
{'1', '1', '1', '1', '1'},
{'1', '0', '0', '1', '0'}
};
System.out.println(maximalRectangle(mat));
}
public int maximalRectangle(char[][] mat) {
if(mat == null || mat.length == 0 || mat[0].length == 0) return 0;
int y_size = mat.length, x_size = mat[0].length;
int maxSize = 0;
for (int up = 0; up < y_size; ++up) {
int[] histo = new int[x_size];
Arrays.fill(histo, 1);
for (int down = up; down < y_size; ++down) {
for (int x = 0; x < x_size; ++x) histo[x] = mat[down][x] == '0' ? 0 : histo[x];
int curSize = countOneRow(histo) * (down - up + 1);
maxSize = Math.max(maxSize, curSize);
}
}
return maxSize;
}
private int countOneRow(int[] histo) {
int res = 0, length = 0;
for (int i = 0; i < histo.length; ++i) {
length = (histo[i] == 0 ? 0 : length + 1);
res = Math.max(length, res);
}
return res;
}
}
| [
"[email protected]"
] | |
7580228c2f45d579f2da9c11a52796aeaed827a4 | cd36477f80fbe8bc9aa594a5261077d34cb8c311 | /gulimall-product/src/main/java/com/atguigu/gulimall/product/vo/Catelog2Vo.java | 572384fcb1d4eecbb85b199d7741291030036f9f | [] | no_license | min508/gulimall | e507a35ec5b7753c5f19d88dc096bf341481b351 | 95cec1a56e313dd10161581823fd6053164b930f | refs/heads/master | 2023-02-10T09:04:45.335146 | 2021-01-10T04:22:48 | 2021-01-10T04:22:48 | 328,301,584 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 692 | java | package com.atguigu.gulimall.product.vo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.List;
/**
* 2 级分类
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Catelog2Vo {
// 一级父分类
private String catelog1Id;
// 三级子分类
private List<Catelog2Vo.Catelog3Vo> catalog3List;
private String id;
private String name;
/**
* 3 级分类
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public static class Catelog3Vo{
// 父分类,2级分类 id
private String catelog2Id;
private String id;
private String name;
}
}
| [
"[email protected]"
] | |
80786e4d02ca3a79693ca56b5958286bef4c951b | bbf55081e3cb23e9f1cd3eb4b9053e49c7d98549 | /src/main/java/com/suyi/demo/controller/registerController.java | cc101d79016911597114f08b15955ee02022d93a | [] | no_license | sy-1008/demo1 | 327a7ad42b786e4a59679c7bee8a5857f4bde291 | ddbd537b49d7c2ea9727376ac535a0d53b3bf09f | refs/heads/master | 2020-11-26T08:55:54.133349 | 2020-01-05T04:51:13 | 2020-01-05T04:51:13 | 229,021,807 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,466 | java | package com.suyi.demo.controller;
import com.suyi.demo.model.Student;
import com.suyi.demo.model.Teacher;
import com.suyi.demo.model.User;
import com.suyi.demo.service.StudentService;
import com.suyi.demo.service.TeacherService;
import com.suyi.demo.service.UserService;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
@Controller
public class registerController {
@Resource
StudentService studentService;
@Resource
TeacherService teacherService;
@RequestMapping(value = "/studentregister", method = RequestMethod.POST)
public String Studentregister(Student student ,User user) {
studentService.studentregisterByStudentid(student.getStudentId(),student.getName(),user.getPassword(),student.getSex(),student.getMajor(),student.getClassName());
return "common/login.html";
}
@RequestMapping(value ="/teacherregister",method = RequestMethod.POST)
public String Teacherregister(Teacher teacher,User user)
{
teacherService.teacherregisterByteacherID(teacher.getTeacherId(),teacher.getName(),user.getPassword(),user.getRole(),teacher.getSex(),teacher.getProtitle(),teacher.getPhone());
return "common/login.html";
}
}
| [
"[email protected]"
] | |
6d41160c9149b7b13465e5467538d804de8846ba | 6382c58ebbe1670ccc0010979ddb69119ef057d7 | /src/main/java/com/example/springBoot1/services/OrderService.java | fd1dd4f23e83c6df22dc7a32977bc9752fe58073 | [] | no_license | GiovanniSinosini/springBoot1 | a37a4bdde5bc9a9014cc865211f9177b9f023029 | d43149c652c47505dd15642043c5ffbe8ccf82e5 | refs/heads/master | 2021-01-03T00:55:48.371495 | 2020-02-23T07:34:51 | 2020-02-23T07:34:51 | 239,845,209 | 2 | 0 | null | null | null | null | UTF-8 | Java | false | false | 578 | java | package com.example.springBoot1.services;
import java.util.List;
import java.util.Optional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.example.springBoot1.entities.Order;
import com.example.springBoot1.repositories.OrderRepository;
@Service
public class OrderService {
@Autowired
private OrderRepository repository;
public List<Order> findAll(){
return repository.findAll();
}
public Order findById(Long id) {
Optional<Order> obj = repository.findById(id);
return obj.get();
}
}
| [
"[email protected]"
] | |
3bbc693d49c7be023899a8be786f4a57775d2e96 | b8c1a4bae3614dc118ecbc49d1db1dcc0ab3869f | /Embedded/src/com/emb/EmployeeInfo.java | d98130a4b6358312089cea88b54b7b5c15a5d1f2 | [] | no_license | aravindabalan/OmR | c1ee92a1bae23d4da9faef5f411c9afcde6b87d4 | 94dc4fbb3d2326a71738baddc8712d479208a06b | refs/heads/master | 2021-04-27T09:09:43.090397 | 2018-02-22T16:46:41 | 2018-02-22T16:46:41 | 122,508,370 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,100 | java | package com.emb;
/** @EmbeddedId is used for composite primary key.
* i.e. more than one column behaves jointly as primary key.
* We need to create an entity as Embeddable and the EmbeddedId
* Entity can be embedded in other entity to achieve composite primary key.
*/
import java.io.Serializable;
import javax.persistence.AttributeOverride;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;
@Entity
@Table(name="EmployeeInfo")
public class EmployeeInfo implements Serializable {
private static final long serialVersionUID = 1L;
@EmbeddedId
@AttributeOverride(name="firstName", column=@Column(name="f_name"))
private Person id;
@Column(name="location")
private String location;
public EmployeeInfo(Person id, String location){
this.id=id;
this.location=location;
}
public Person getId() {
return id;
}
public void setId(Person id) {
this.id = id;
}
public String getLocation() {
return location;
}
public void setLocation(String location) {
this.location = location;
}
} | [
"[email protected]"
] | |
8fe6f66036ffa22fa8fa4bbf160346e5f69f395c | 717c58d0bbe61b806360796a61ec4ad7ab817191 | /tests/org.jboss.tools.central.ui.bot.test/src/org/jboss/tools/central/test/ui/reddeer/BasicTests.java | 5b0f7d0a24529d8fbfd20fe493b10ff7dd52b2a8 | [] | no_license | robstryker/jbosstools-integration-tests | a4bcd62548c31ae24071d6656fd6a2495421d5fe | eadc2573bfbd61985a1138ad5f6ff14fb9d92481 | refs/heads/master | 2023-08-30T08:00:38.343607 | 2015-07-28T14:26:50 | 2015-07-28T14:49:34 | 39,847,884 | 0 | 0 | null | 2015-07-28T17:23:13 | 2015-07-28T17:23:12 | null | UTF-8 | Java | false | false | 6,010 | java | package org.jboss.tools.central.test.ui.reddeer;
import static org.junit.Assert.assertNotEquals;
import java.util.ArrayList;
import java.util.List;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Control;
import org.jboss.reddeer.common.matcher.RegexMatcher;
import org.jboss.reddeer.common.wait.WaitWhile;
import org.jboss.reddeer.core.condition.JobIsRunning;
import org.jboss.reddeer.core.lookup.WidgetLookup;
import org.jboss.reddeer.core.matcher.WithTooltipTextMatcher;
import org.jboss.reddeer.core.reference.ReferencedComposite;
import org.jboss.reddeer.eclipse.ui.browser.BrowserEditor;
import org.jboss.reddeer.swt.api.Text;
import org.jboss.reddeer.swt.exception.SWTLayerException;
import org.jboss.reddeer.swt.impl.clabel.DefaultCLabel;
import org.jboss.reddeer.swt.impl.menu.ToolItemMenu;
import org.jboss.reddeer.swt.impl.shell.DefaultShell;
import org.jboss.reddeer.swt.impl.text.DefaultText;
import org.jboss.reddeer.swt.impl.toolbar.DefaultToolItem;
import org.jboss.reddeer.swt.keyboard.KeyboardFactory;
import org.jboss.reddeer.uiforms.api.FormText;
import org.jboss.reddeer.uiforms.api.Section;
import org.jboss.reddeer.uiforms.impl.formtext.DefaultFormText;
import org.jboss.reddeer.uiforms.impl.hyperlink.DefaultHyperlink;
import org.jboss.reddeer.uiforms.impl.section.DefaultSection;
import org.jboss.reddeer.workbench.impl.editor.DefaultEditor;
import org.jboss.reddeer.workbench.impl.shell.WorkbenchShell;
import org.jboss.tools.central.editors.xpl.TextSearchControl;
import org.junit.Before;
import org.junit.Test;
public class BasicTests {
@Before
public void setup() {
new DefaultToolItem(new WorkbenchShell(), "JBoss Central").click();
// activate central editor
new DefaultEditor("JBoss Central");
}
@Test
public void documentationTest() {
checkDocumentationLink("JBoss developer website",
"JBoss Developer");
checkDocumentationLink("User Forum", "Space: JBoss Tools | Community");
checkDocumentationLink("Developer Forum",
"Space: JBoss Tools Development | Community");
checkDocumentationLink("Product documentation",
"JBoss Tools - Documentation");
checkDocumentationLink("Videos", "JBoss Tools - Video Tutorials");
KeyboardFactory.getKeyboard().type('\r');
}
@Test
public void jBossToolsHomeToolItemTest() {
new DefaultToolItem("JBoss Tools Home").click();
checkBrowserOpenedAndLoaded("JBoss Tools - Home");
}
@Test
public void favoriteToolItemTest() {
new DefaultToolItem(new WithTooltipTextMatcher(new RegexMatcher("Favorite this.*"))).click();
checkBrowserOpenedAndLoaded(".*Eclipse Marketplace.*");
}
@Test
public void newToolItemTest(){
DefaultToolItem item = new DefaultToolItem("New");
item.click();
new DefaultShell("New").close();
new ToolItemMenu(item, "Other...").select();
new DefaultShell("New").close();
}
@Test
public void projectExamplesToolItemTest(){
new DefaultToolItem("Project Examples Wizard").click();
new DefaultShell("New Project Example").close();
}
@Test
public void runtimeDetectionToolItemTest(){
new DefaultToolItem("JBoss Runtime Detection").click();
DefaultShell defaultShell = new DefaultShell("Preferences");
new DefaultCLabel("JBoss Runtime Detection");
defaultShell.close();
}
@Test
public void wtpRuntimeToolItemTest(){
new DefaultToolItem("WTP Runtime Preferences").click();
DefaultShell defaultShell = new DefaultShell("Preferences");
new DefaultCLabel("Server Runtime Environments");
defaultShell.close();
}
@Test
public void refreshToolItemTest(){
new DefaultToolItem(0, "Refresh").click();
new DefaultToolItem(1, "Refresh").click();
new WaitWhile(new JobIsRunning());
}
@Test
public void buzzToolItemTest(){
new DefaultToolItem("JBoss Buzz").click();
checkBrowserOpenedAndLoaded("JBoss Buzz.*");
}
@Test
public void twitterToolItemTest(){
new DefaultToolItem("Twitter"); //do not click -> it opens external browser
}
@Test
public void buzzFeedIsNotEmptyTest(){
DefaultSection buzzSection = new DefaultSection("JBoss Buzz");
List<FormText> texts = getAllFormTextForSection(buzzSection);
assertNotEquals(texts.size(), 0);
}
@Test
public void ticketMonsterLinkTest(){
DefaultSection tutorialSection = new DefaultSection("Tutorial");
DefaultHyperlink link = new DefaultHyperlink(tutorialSection);
link.activate();
checkBrowserOpenedAndLoaded("Ticket Monster tutorial");
}
@Test
public void searchTest(){
TextSearchControlComposite searchComposite = new TextSearchControlComposite();
Text text = new DefaultText(searchComposite);
text.setText("Pokus");
KeyboardFactory.getKeyboard().type(SWT.CR);
checkBrowserOpenedAndLoaded("Pokus.*");
}
private void checkDocumentationLink(String linkText, String title) {
new DefaultHyperlink(linkText).activate();
checkBrowserOpenedAndLoaded(title);
}
private void checkBrowserOpenedAndLoaded(String title){
new WaitWhile(new JobIsRunning());
BrowserEditor browser = new BrowserEditor(new RegexMatcher(title));
browser.close();
KeyboardFactory.getKeyboard().invokeKeyCombination(SWT.CTRL, SWT.SPACE);
}
private List<FormText> getAllFormTextForSection(Section section) {
List<FormText> list = new ArrayList<FormText>();
boolean found = true;
int index = 0;
do {
try {
list.add(new DefaultFormText(section, index++));
} catch (SWTLayerException e) {
found = false;
}
} while (found);
return list;
}
private class TextSearchControlComposite implements ReferencedComposite{
TextSearchControl widget;
public TextSearchControlComposite() {
try{
widget = WidgetLookup.getInstance().activeWidget(new WorkbenchShell(), TextSearchControl.class, 0);
}catch(SWTLayerException e){
DefaultEditor defaultEditor = new DefaultEditor();
widget = WidgetLookup.getInstance().activeWidget(new WorkbenchShell(), TextSearchControl.class, 0);
defaultEditor.maximize();
}
}
@Override
public Control getControl() {
return widget;
}
}
}
| [
"[email protected]"
] | |
51de7aaeab03967f4b6cadfb5eafc4ba1fe9f81d | fd7160a1023edf3be753558d8a0ec7cbf218cf22 | /src/entity/Article.java | 6a3fccfa9bbd87b3f14144dea9aaec5d1d15015e | [] | no_license | afefbaccouche/pijavaFx | e9da2b3f872d9a2be9bad2b8dae55ae812f3cd68 | eaf2a67e06ea631644303c6393f10a9a614b5456 | refs/heads/main | 2023-03-28T07:05:12.482274 | 2021-03-16T23:35:29 | 2021-03-16T23:35:29 | 348,521,731 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,255 | java | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package entity;
import java.sql.Date;
/**
*
* @author esprit
*/
public class Article {
private int id;
private String title;
private String description;
private String body;
private String image;
private Date createdAt;
private int idUser;
public Article(int id, String title, String description, String body, String image, int idUser) {
this.id = id;
this.title = title;
this.description = description;
this.body = body;
this.image = image;
this.idUser = idUser;
}
public Article(String title, String description, String body, String image, int idUser) {
this.title = title;
this.description = description;
this.body = body;
this.image = image;
this.idUser = idUser;
}
public Article() {
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public String getBody() {
return body;
}
public void setBody(String body) {
this.body = body;
}
public String getImage() {
return image;
}
public void setImage(String image) {
this.image = image;
}
public int getIdUser() {
return idUser;
}
public void setIdUser(int idUser) {
this.idUser = idUser;
}
public Date getCreatedAt() {
return createdAt;
}
public void setCreatedAt(Date createdAt) {
this.createdAt = createdAt;
}
@Override
public String toString() {
return "Article{" + "id=" + id + ", title=" + title + ", description=" + description + ", body=" + body + ", image=" + image + ", createdAt=" + createdAt + ", idUser=" + idUser + '}';
}
}
| [
"[email protected]"
] | |
b74cf5817c69a103178ac80152c7d3d7172cdf66 | a59123b0c3bbb8d46fa3f53d3aff3bd35925ac19 | /weblayer/shell/android/javatests/src/org/chromium/weblayer/test/NavigationTest.java | 622c1e660dab2d3b1e9a70888285347cbac803b6 | [
"BSD-3-Clause"
] | permissive | skyccn/chromium | cb94096dd1df675e71c7a7d9baf47a25c944b79a | ce4b988aa66f46a6663d49d0f57c134a3a009a8e | refs/heads/master | 2023-01-12T12:42:42.239078 | 2019-11-08T17:33:30 | 2019-11-08T17:33:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 10,469 | java | // Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.weblayer.test;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotEquals;
import static org.junit.Assert.assertTrue;
import static org.chromium.content_public.browser.test.util.TestThreadUtils.runOnUiThreadBlocking;
import android.net.Uri;
import android.support.test.filters.SmallTest;
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.chromium.base.test.BaseJUnit4ClassRunner;
import org.chromium.base.test.util.CallbackHelper;
import org.chromium.content_public.browser.test.util.Criteria;
import org.chromium.content_public.browser.test.util.CriteriaHelper;
import org.chromium.weblayer.Navigation;
import org.chromium.weblayer.NavigationCallback;
import org.chromium.weblayer.NavigationController;
import org.chromium.weblayer.shell.InstrumentationActivity;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.concurrent.TimeoutException;
/**
* Example test that just starts the weblayer shell.
*/
@RunWith(BaseJUnit4ClassRunner.class)
public class NavigationTest {
@Rule
public InstrumentationActivityTestRule mActivityTestRule =
new InstrumentationActivityTestRule();
// URLs used for base tests.
private static final String URL1 = "data:text,foo";
private static final String URL2 = "data:text,bar";
private static final String URL3 = "data:text,baz";
private static class Callback extends NavigationCallback {
public static class NavigationCallbackHelper extends CallbackHelper {
private Uri mUri;
private boolean mIsSameDocument;
public void notifyCalled(Uri uri) {
mUri = uri;
notifyCalled();
}
public void notifyCalled(Uri uri, boolean isSameDocument) {
mUri = uri;
mIsSameDocument = isSameDocument;
notifyCalled();
}
public void assertCalledWith(int currentCallCount, String uri) throws TimeoutException {
waitForCallback(currentCallCount);
assertEquals(mUri.toString(), uri);
}
public void assertCalledWith(int currentCallCount, String uri, boolean isSameDocument)
throws TimeoutException {
waitForCallback(currentCallCount);
assertEquals(mUri.toString(), uri);
assertEquals(mIsSameDocument, isSameDocument);
}
}
public static class NavigationCallbackValueRecorder {
private List<String> mObservedValues =
Collections.synchronizedList(new ArrayList<String>());
public void recordValue(String parameter) {
mObservedValues.add(parameter);
}
public List<String> getObservedValues() {
return mObservedValues;
}
public void waitUntilValueObserved(String expectation) {
CriteriaHelper.pollInstrumentationThread(
new Criteria() {
@Override
public boolean isSatisfied() {
return mObservedValues.contains(expectation);
}
},
CriteriaHelper.DEFAULT_MAX_TIME_TO_POLL,
CriteriaHelper.DEFAULT_POLLING_INTERVAL);
}
}
public NavigationCallbackHelper onStartedCallback = new NavigationCallbackHelper();
public NavigationCallbackHelper onReadyToCommitCallback = new NavigationCallbackHelper();
public NavigationCallbackHelper onCompletedCallback = new NavigationCallbackHelper();
public NavigationCallbackValueRecorder loadStateChangedCallback =
new NavigationCallbackValueRecorder();
public NavigationCallbackValueRecorder loadProgressChangedCallback =
new NavigationCallbackValueRecorder();
public CallbackHelper onFirstContentfulPaintCallback = new CallbackHelper();
@Override
public void onNavigationStarted(Navigation navigation) {
onStartedCallback.notifyCalled(navigation.getUri());
}
@Override
public void onReadyToCommitNavigation(Navigation navigation) {
onReadyToCommitCallback.notifyCalled(navigation.getUri());
}
@Override
public void onNavigationCompleted(Navigation navigation) {
onCompletedCallback.notifyCalled(navigation.getUri(), navigation.isSameDocument());
}
@Override
public void onFirstContentfulPaint() {
onFirstContentfulPaintCallback.notifyCalled();
}
@Override
public void onLoadStateChanged(boolean isLoading, boolean toDifferentDocument) {
loadStateChangedCallback.recordValue(
Boolean.toString(isLoading) + " " + Boolean.toString(toDifferentDocument));
}
@Override
public void onLoadProgressChanged(double progress) {
loadProgressChangedCallback.recordValue(
progress == 1 ? "load complete" : "load started");
}
}
private final Callback mCallback = new Callback();
@Test
@SmallTest
public void testNavigationEvents() throws Exception {
InstrumentationActivity activity = mActivityTestRule.launchShellWithUrl(URL1);
setNavigationCallback(activity);
int curStartedCount = mCallback.onStartedCallback.getCallCount();
int curCommittedCount = mCallback.onReadyToCommitCallback.getCallCount();
int curCompletedCount = mCallback.onCompletedCallback.getCallCount();
int curOnFirstContentfulPaintCount =
mCallback.onFirstContentfulPaintCallback.getCallCount();
mActivityTestRule.navigateAndWait(URL2);
mCallback.onStartedCallback.assertCalledWith(curStartedCount, URL2);
mCallback.onReadyToCommitCallback.assertCalledWith(curCommittedCount, URL2);
mCallback.onCompletedCallback.assertCalledWith(curCompletedCount, URL2);
mCallback.onFirstContentfulPaintCallback.waitForCallback(curOnFirstContentfulPaintCount);
}
@Test
@SmallTest
public void testLoadStateUpdates() throws Exception {
InstrumentationActivity activity = mActivityTestRule.launchShellWithUrl(null);
setNavigationCallback(activity);
mActivityTestRule.navigateAndWait(URL1);
/* Wait until the NavigationCallback is notified of load completion. */
mCallback.loadStateChangedCallback.waitUntilValueObserved("false false");
mCallback.loadProgressChangedCallback.waitUntilValueObserved("load complete");
/* Verify that the NavigationCallback was notified of load progress /before/ load
* completion.
*/
int finishStateIndex =
mCallback.loadStateChangedCallback.getObservedValues().indexOf("false false");
int finishProgressIndex =
mCallback.loadProgressChangedCallback.getObservedValues().indexOf("load complete");
int startStateIndex =
mCallback.loadStateChangedCallback.getObservedValues().lastIndexOf("true true");
int startProgressIndex =
mCallback.loadProgressChangedCallback.getObservedValues().lastIndexOf(
"load started");
assertNotEquals(startStateIndex, -1);
assertNotEquals(startProgressIndex, -1);
assertNotEquals(finishStateIndex, -1);
assertNotEquals(finishProgressIndex, -1);
assertTrue(startStateIndex < finishStateIndex);
assertTrue(startProgressIndex < finishProgressIndex);
}
@Test
@SmallTest
public void testGoBackAndForward() throws Exception {
InstrumentationActivity activity = mActivityTestRule.launchShellWithUrl(URL1);
setNavigationCallback(activity);
mActivityTestRule.navigateAndWait(URL2);
mActivityTestRule.navigateAndWait(URL3);
NavigationController navigationController =
runOnUiThreadBlocking(() -> activity.getTab().getNavigationController());
navigateAndWaitForCompletion(URL2, () -> {
assertTrue(navigationController.canGoBack());
navigationController.goBack();
});
navigateAndWaitForCompletion(URL1, () -> {
assertTrue(navigationController.canGoBack());
navigationController.goBack();
});
navigateAndWaitForCompletion(URL2, () -> {
assertFalse(navigationController.canGoBack());
assertTrue(navigationController.canGoForward());
navigationController.goForward();
});
navigateAndWaitForCompletion(URL3, () -> {
assertTrue(navigationController.canGoForward());
navigationController.goForward();
});
runOnUiThreadBlocking(() -> { assertFalse(navigationController.canGoForward()); });
}
@Test
@SmallTest
public void testSameDocument() throws Exception {
InstrumentationActivity activity = mActivityTestRule.launchShellWithUrl(URL1);
setNavigationCallback(activity);
int curCompletedCount = mCallback.onCompletedCallback.getCallCount();
mActivityTestRule.executeScriptSync(
"history.pushState(null, '', '#bar');", true /* useSeparateIsolate */);
mCallback.onCompletedCallback.assertCalledWith(
curCompletedCount, "data:text,foo#bar", true);
}
private void setNavigationCallback(InstrumentationActivity activity) {
runOnUiThreadBlocking(
()
-> activity.getTab().getNavigationController().registerNavigationCallback(
mCallback));
}
private void navigateAndWaitForCompletion(String expectedUrl, Runnable navigateRunnable)
throws Exception {
int currentCallCount = mCallback.onCompletedCallback.getCallCount();
runOnUiThreadBlocking(navigateRunnable);
mCallback.onCompletedCallback.assertCalledWith(currentCallCount, expectedUrl);
}
}
| [
"[email protected]"
] | |
bfcb6d26f111d81b9899e6bfe80fb5f7525f78e3 | 7ca8f2a90dafdc64c6c1b2d32073470f806c163c | /carnival-spring-boot-starter-restful-security/src/main/java/com/github/yingzhuo/carnival/restful/security/token/BytesToken.java | 4fa40c3725aa46b3449421798bc13db8a8ccd552 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | amadousanogo/carnival | f484c1bffd4e5f626ba6b4cf2461b997a7293ef2 | 0ee93cfcff20571fa2171af3abfe84bd4193fb73 | refs/heads/master | 2021-03-24T06:17:43.220091 | 2020-03-14T02:21:23 | 2020-03-14T02:21:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,220 | java | /*
* ____ _ ____ _ _ _____ ___ _
* / ___| / \ | _ \| \ | |_ _\ \ / / \ | |
* | | / _ \ | |_) | \| || | \ \ / / _ \ | |
* | |___/ ___ \| _ <| |\ || | \ V / ___ \| |___
* \____/_/ \_\_| \_\_| \_|___| \_/_/ \_\_____|
*
* https://github.com/yingzhuo/carnival
*/
package com.github.yingzhuo.carnival.restful.security.token;
import java.util.Arrays;
/**
* @author 应卓
* @since 1.3.0
*/
public class BytesToken implements Token {
private final byte[] data;
public static BytesToken of(byte[] data) {
return new BytesToken(data);
}
public BytesToken(byte[] data) {
this.data = data;
}
public byte[] getData() {
return data;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
BytesToken that = (BytesToken) o;
return Arrays.equals(data, that.data);
}
@Override
public int hashCode() {
return Arrays.hashCode(data);
}
@Override
public String toString() {
return "BytesToken{" +
"data=" + Arrays.toString(data) +
'}';
}
}
| [
"[email protected]"
] | |
b68e1c5c19ba7043259c1cfbb5d475ef9260e1ae | 8ab69984acd40a241bfcd3ac2377f92ce8e1db60 | /src/main/java/com/mall/pojo/Footprint.java | d7b409021f6025ed25257d6de8a9352f52cd3786 | [] | no_license | Libbomc/jx | 9ab7af5f3a7eeb2f915e9c39716b4f534ab5c6f6 | 927d2dcfbd8886523a1060e8e79d41b482ffbc22 | refs/heads/master | 2020-03-11T13:53:44.144473 | 2018-05-23T02:57:24 | 2018-05-23T03:36:35 | 129,076,706 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,320 | java | package com.mall.pojo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
* 足迹表:footprint
*/
@ApiModel(value = "Footprint")
public class Footprint {
@ApiModelProperty(value = "ID")
private Integer footprintId;
@ApiModelProperty(value = "足迹用户名")
private String footprintName;
@ApiModelProperty(value = "足迹")
private String footprintFoot;
public Footprint(Integer footprintId, String footprintName, String footprintFoot) {
this.footprintId = footprintId;
this.footprintName = footprintName;
this.footprintFoot = footprintFoot;
}
public Footprint() {
super();
}
public Integer getFootprintId() {
return footprintId;
}
public void setFootprintId(Integer footprintId) {
this.footprintId = footprintId;
}
public String getFootprintName() {
return footprintName;
}
public void setFootprintName(String footprintName) {
this.footprintName = footprintName == null ? null : footprintName.trim();
}
public String getFootprintFoot() {
return footprintFoot;
}
public void setFootprintFoot(String footprintFoot) {
this.footprintFoot = footprintFoot == null ? null : footprintFoot.trim();
}
} | [
"[email protected]"
] | |
eab73dd1d632e032c22f426cf0318b04b0d63056 | 4657b3acf911399ef2952d36db863ffa7c306185 | /src/Interfaces/ProcesandoInfo.java | 5e1dee4e9d9f0798615900916e1c1692b648992c | [] | no_license | reymundotenorio/AnalisisNumerico | 2b1e67aaf83e4b1e5fc45c9ea4b466790ec3dfcc | 9981a10b6a56bde1f9a19766290ea3a1a6c8c29c | refs/heads/master | 2020-06-10T11:23:42.468974 | 2016-12-09T01:19:49 | 2016-12-09T01:19:49 | 75,967,874 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,733 | java | package Interfaces;
import javax.swing.ImageIcon;
/**
*
* @author Reymundo Tenorio
*/
public class ProcesandoInfo extends javax.swing.JDialog {
public ProcesandoInfo() {
this.setUndecorated(true);
try{
// this.setOpacity(0.5F);
}catch(Exception n){}
initComponents();
ImageIcon imageIcon = new ImageIcon(ClassLoader.getSystemResource("Iconos/loading-2.gif"));
LabelGif.setIcon(imageIcon);
LabelGif.setOpaque(false);
this.setSize(imageIcon.getIconHeight(),imageIcon.getIconWidth());
this.setResizable(false);
}
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
LabelGif = new javax.swing.JLabel();
setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
getContentPane().add(LabelGif, java.awt.BorderLayout.CENTER);
setSize(new java.awt.Dimension(418, 444));
setLocationRelativeTo(null);
}// </editor-fold>//GEN-END:initComponents
public static void main(String args[]) {
//<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
/* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
* For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
*/
try {
for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
if ("Nimbus".equals(info.getName())) {
javax.swing.UIManager.setLookAndFeel(info.getClassName());
break;
}
}
} catch (ClassNotFoundException ex) {
java.util.logging.Logger.getLogger(ProcesandoInfo.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (InstantiationException ex) {
java.util.logging.Logger.getLogger(ProcesandoInfo.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (IllegalAccessException ex) {
java.util.logging.Logger.getLogger(ProcesandoInfo.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (javax.swing.UnsupportedLookAndFeelException ex) {
java.util.logging.Logger.getLogger(ProcesandoInfo.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
}
//</editor-fold>
new ProcesandoInfo().setVisible(true);
}
// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JLabel LabelGif;
// End of variables declaration//GEN-END:variables
}
| [
"Reymundo Tenorio"
] | Reymundo Tenorio |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.